Skip to main content
POST
/
events
Create Agent
curl --request POST \
  --url https://api.zo.computer/events/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rrule": "<string>",
  "instruction": "<string>",
  "title": "<string>",
  "result_delivery_method": "email",
  "model": "<string>"
}
'
{
  "id": "<string>",
  "rrule": "<string>",
  "instruction": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "next_run": "<string>",
  "utc": true,
  "title": "<string>",
  "result_delivery_method": "email",
  "model": "<string>",
  "active": true
}

Authorizations

Authorization
string
header
required

Zo API key (zo_sk_...)

Body

application/json

Request body for creating an agent.

rrule
string
required
instruction
string
required
title
string | null
result_delivery_method
enum<string> | null
Available options:
email,
sms
model
string | null

Response

Successful Response

An agent (scheduled automated task).

id
string
required
rrule
string
required
instruction
string
required
created_at
string
required
updated_at
string
required
next_run
string | null
required
utc
boolean | null
title
string | null
result_delivery_method
enum<string> | null
Available options:
email,
sms
model
string | null
active
boolean
default:true