Skip to main content
POST
Create a routine

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Path Parameters

workspaceId
string<uuid>
required

Workspace UUID. Caller must have access.

agentId
string<uuid>
required

Agent id.

Body

application/json
prompt
string
required
Required string length: 1 - 8192
cadenceMinutes
integer
required
Required range: 5 <= x <= 525600
name
string

The routine's display name. Omitted or blank, it is the first 60 characters of the prompt.

Maximum string length: 80
firstRunAt
string<date-time>

The first run; default one cadence from now.

Response

The routine

data
object
required