Skip to content

WorkflowClient Reference

The WorkflowClient provides HTTP client functionality for interacting with the Integra verification API. All methods return promises and handle error responses appropriately.

import { WorkflowClient, getWorkflowClient } from '@/api/workflowClient';
// Use singleton instance
const client = getWorkflowClient();
// Or create custom instance
const client = new WorkflowClient('https://api.integra.dev');

Create new workflow and start verification process.

Retrieve complete workflow state and navigation information.

saveMetadata(workflowId: string, metadata: SaveMetadataRequest)

Section titled “saveMetadata(workflowId: string, metadata: SaveMetadataRequest)”

Save business metadata for workflow.

saveUISchema(workflowId: string, uiSchema: SaveUISchemaRequest)

Section titled “saveUISchema(workflowId: string, uiSchema: SaveUISchemaRequest)”

Save UI customization settings.

Skip UI customization with defaults.

Publish workflow to blockchain registry.

Retry failed workflow.

Get parsed contract ABI.

Delete workflow permanently.

All methods throw WorkflowClientError with structured error information including codes, messages, and optional details for debugging.