Workers
Create, retrieve, and manage agent worker templates.
Retrieve a worker
client.Workers.Get(ctx, workerID, query) (*Worker, error)
GET/api/workers/{workerId}
Update a worker template
client.Workers.Update(ctx, workerID, body) (*WorkerTemplate, error)
PATCH/api/workers/{workerId}
Delete a worker template
client.Workers.Delete(ctx, workerID) (*DeleteWorkerResponse, error)
DELETE/api/workers/{workerId}
Retrieve a worker email address
client.Workers.GetEmail(ctx, workerID) (*WorkerGetEmailResponse, error)
GET/api/workers/{workerId}/email
WorkersSchedules
Manage future and recurring worker tasks.
List worker schedules
client.Workers.Schedules.List(ctx, workerID) (*WorkerScheduleListResponse, error)
GET/api/workers/{workerId}/schedules
Create a worker schedule
client.Workers.Schedules.New(ctx, workerID, body) (*WorkerScheduleUnion, error)
POST/api/workers/{workerId}/schedules
Cancel a worker schedule
client.Workers.Schedules.Cancel(ctx, scheduleID, body) (*WorkerScheduleCancelResponse, error)
DELETE/api/workers/{workerId}/schedules/{scheduleId}
WorkersWebhooks
Configure outbound webhooks delivered when a worker’s tasks complete.
Retrieve a worker webhook
client.Workers.Webhooks.Get(ctx, workerID) (*Webhook, error)
GET/api/workers/{workerId}/webhook
Update a worker webhook
client.Workers.Webhooks.Update(ctx, workerID, body) (*Webhook, error)
PUT/api/workers/{workerId}/webhook
Delete a worker webhook
client.Workers.Webhooks.Delete(ctx, workerID) (*Webhook, error)
DELETE/api/workers/{workerId}/webhook
Regenerate a worker webhook token
client.Workers.Webhooks.RegenerateToken(ctx, workerID) (*Webhook, error)
POST/api/workers/{workerId}/webhook/regenerate-token
List worker webhook executions
client.Workers.Webhooks.ListExecutions(ctx, workerID, query) (*WebhookExecutionList, error)
GET/api/workers/{workerId}/webhook/executions