WorkflowClient Reference
WorkflowClient Reference
Section titled “WorkflowClient Reference”Overview
Section titled “Overview”The WorkflowClient provides HTTP client functionality for interacting with the Integra verification API. All methods return promises and handle error responses appropriately.
Client Setup
Section titled “Client Setup”import { WorkflowClient, getWorkflowClient } from '@/api/workflowClient';
// Use singleton instanceconst client = getWorkflowClient();
// Or create custom instanceconst client = new WorkflowClient('https://api.integra.dev');Methods
Section titled “Methods”create(params: CreateWorkflowRequest)
Section titled “create(params: CreateWorkflowRequest)”Create new workflow and start verification process.
get(workflowId: string)
Section titled “get(workflowId: string)”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.
skipUISchema(workflowId: string)
Section titled “skipUISchema(workflowId: string)”Skip UI customization with defaults.
publish(workflowId: string)
Section titled “publish(workflowId: string)”Publish workflow to blockchain registry.
retry(workflowId: string)
Section titled “retry(workflowId: string)”Retry failed workflow.
getABI(workflowId: string)
Section titled “getABI(workflowId: string)”Get parsed contract ABI.
delete(workflowId: string)
Section titled “delete(workflowId: string)”Delete workflow permanently.
Error Handling
Section titled “Error Handling”All methods throw WorkflowClientError with structured error information including codes, messages, and optional details for debugging.