Skip to main content
GET
/
v3
/
agents
/
{agent_key}
/
schedules
/
{schedule_id}
curl https://api.orq.ai/v3/agents/customer_digest/schedules/01KPN29WWKSK0VDPJNTKZPVNRB \
  -H "Authorization: Bearer $ORQ_API_KEY"
{
  "_id": "01KPN29WWKSK0VDPJNTKZPVNRB",
  "workspace_id": "cd185327-a8a5-4e55-ac9e-51c8e8b7f0e5",
  "agent_key": "customer_digest",
  "agent_tag": "v2",
  "type": "cron",
  "expression": "0 0 9 * * mon-fri",
  "is_active": true,
  "generation": 2,
  "payload": {
    "input": "Generate the morning briefing for {{region}}",
    "variables": { "region": "EMEA" },
    "metadata": { "run_source": "daily-briefing" }
  },
  "created_by_id": "apk_01KPM5XHYF7NXZ1S3XK2J8Q4B7",
  "created": "2026-04-15T12:00:00Z",
  "updated": "2026-04-20T09:30:00Z",
  "last_triggered_at": "2026-04-20T09:00:02Z",
  "trigger_count": 12
}
Returns the full schedule document, including trigger_count, last_triggered_at, and the current generation counter. Useful for checking state after creation or verifying a schedule fired as expected. See Agent Schedules for field semantics.
curl https://api.orq.ai/v3/agents/customer_digest/schedules/01KPN29WWKSK0VDPJNTKZPVNRB \
  -H "Authorization: Bearer $ORQ_API_KEY"
{
  "_id": "01KPN29WWKSK0VDPJNTKZPVNRB",
  "workspace_id": "cd185327-a8a5-4e55-ac9e-51c8e8b7f0e5",
  "agent_key": "customer_digest",
  "agent_tag": "v2",
  "type": "cron",
  "expression": "0 0 9 * * mon-fri",
  "is_active": true,
  "generation": 2,
  "payload": {
    "input": "Generate the morning briefing for {{region}}",
    "variables": { "region": "EMEA" },
    "metadata": { "run_source": "daily-briefing" }
  },
  "created_by_id": "apk_01KPM5XHYF7NXZ1S3XK2J8Q4B7",
  "created": "2026-04-15T12:00:00Z",
  "updated": "2026-04-20T09:30:00Z",
  "last_triggered_at": "2026-04-20T09:00:02Z",
  "trigger_count": 12
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_key
string
required

The unique routing key of the agent the schedule belongs to.

schedule_id
string
required

The schedule's ULID, as returned from create.

Response

Schedule retrieved.

_id
string
required

ULID identifying this schedule.

agent_key
string
required
created
string<date-time>
required
created_by_id
string
required

ID of the API key that created the schedule.

expression
string
required

Cron expression (6-field, seconds required), @every duration, @at RFC3339 timestamp, or a predefined descriptor like @hourly/@daily.

generation
integer<int64>
required

Monotonic counter bumped when the schedule's firing cadence changes. Used by the consumer to skip stale in-flight triggers.

is_active
boolean
required

Whether the schedule is currently firing. once schedules flip to false automatically after firing.

payload
object
required
trigger_count
integer<int64>
required

Total firings since creation or last expression/type change.

type
enum<string>
required

Schedule type.

Available options:
cron,
once,
interval
updated
string<date-time>
required
workspace_id
string
required
agent_tag
string

Pinned agent version. Omit to always run the agent's current active version.

last_triggered_at
string<date-time>

Timestamp of the most recent firing, if any.