Go SDKFeature Clients

Workflows Client

Accessed via client.Workflows() on the Hatchet client.

WorkflowsClient

WorkflowsClient provides methods for interacting with workflows

Methods:

NameDescription
DeleteDelete removes a workflow by its ID or name.
GetGet retrieves a workflow by its ID or name.
GetIdGetId retrieves a workflow by its name.
ListList retrieves all workflows for the tenant with optional filtering parameters.

Functions

Delete

Delete removes a workflow by its ID or name.

func (w *WorkflowsClient) Delete(ctx context.Context, workflowName string) (*rest.WorkflowDeleteResponse, error)

Parameters:

NameType
ctxcontext.Context
workflowNamestring

Returns:

Type
*rest.WorkflowDeleteResponse
error

Get

Get retrieves a workflow by its ID or name.

func (w *WorkflowsClient) Get(ctx context.Context, workflowName string) (*rest.Workflow, error)

Parameters:

NameType
ctxcontext.Context
workflowNamestring

Returns:

Type
*rest.Workflow
error

GetId

GetId retrieves a workflow by its name.

func (w *WorkflowsClient) GetId(ctx context.Context, workflowName string) (uuid.UUID, error)

Parameters:

NameType
ctxcontext.Context
workflowNamestring

Returns:

Type
uuid.UUID
error

List

List retrieves all workflows for the tenant with optional filtering parameters.

func (w *WorkflowsClient) List(ctx context.Context, opts *rest.WorkflowListParams) (*rest.WorkflowList, error)

Parameters:

NameType
ctxcontext.Context
opts*rest.WorkflowListParams

Returns:

Type
*rest.WorkflowList
error

Last updated on August 24, 2026

On this page