We use cookies

We use cookies and similar technologies for analytics and marketing. You can allow these cookies or continue with only essential cookies.

By clicking "Accept", you agree to our use of cookies.
Learn more.

Typescript SDKFeature Clients

Workflows Client

The workflows client is a client for managing workflows programmatically within Hatchet.

NOTE: that workflows are the declaration, not the individual runs. If you're looking for runs, use the RunsClient instead.

Methods

delete()

Delete a workflow by its name, ID, or object.

Parameters

ParameterTypeDescription
workflowstring | BaseWorkflowDeclaration<any, any> | WorkflowThe workflow name, ID, or object.

Returns

Promise<void>

A promise that resolves to the deleted workflow.

get()

Get a workflow by its name, ID, or object.

Parameters

ParameterTypeDescription
workflowstring | BaseWorkflowDeclaration<any, any> | WorkflowThe workflow name, ID, or object.

Returns

Promise<Workflow>

A promise that resolves to the workflow.

getWorkflowIdFromName()

Gets the workflow ID from a workflow name, ID, or object. If the input is not a valid UUID, it will look up the workflow by name.

Parameters

ParameterTypeDescription
workflow| string | WorkflowDefinition | BaseWorkflowDeclaration<any, any> | WorkflowThe workflow name, ID, or object.

Returns

Promise<string>

The workflow ID as a string.

list()

List all workflows in the tenant.

Parameters

ParameterTypeDescription
opts?{ limit?: number; name?: string; offset?: number; }The options for the list operation.
opts.limit?numberThe number to limit by Format int Default 50
opts.name?stringSearch by name
opts.offset?numberThe number to skip Format int Default 0

Returns

Promise<WorkflowList>

A promise that resolves to the list of workflows.

Last updated on August 11, 2026

On this page