Scheduled agents

Enable a scheduled agent

Changed on
post/scheduled-agents/{id}/enable

Request

  • Base URL
    https://origami.chat/api/v2
  • URL
    https://origami.chat/api/v2/scheduled-agents/{id}/enable
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Transport-level replay protection: any v2 POST may send it (1-255 printable ASCII characters; UUIDs recommended). The first response for a key is recorded and replayed verbatim for retries with the same key + method/path/body for 24 hours; replayed responses carry the Idempotency-Replay: true response header. Reusing a key with a different request, or retrying while the original is still in flight, returns 409 IDEMPOTENCY_ERROR. 5xx responses are never recorded (the retry re-executes).

Response

The updated scheduled agent.

object'scheduled_agent' required
idstring uuid required
workspaceIdstring uuid nullable required

Deprecated container anchor - the legacy workspace, else the origin chat session whose links seed each run; null for container-less agents.

slugstring required
namestring required
descriptionstring nullable required
promptstring required
cronstring required
modelstring nullable required
enabledboolean required
budgetCreditsinteger nullable required

Hard per-run credit budget (whole credits). Each run of this agent is capped at this many credits and stops spending once it hits it. Null means no cap. Size it to comfortably cover the leads a run is expected to fetch (cost-per-lead × expected leads, plus margin).

planBlockedboolean required

True when the org cannot currently run scheduled tasks (gated at dispatch).

nextRunAtstring date-time nullable required
lastRunAtstring date-time nullable required
urlstring uri required
handoffobject

Present when planBlocked; points the caller at the upgrade flow.

Changes

    • breaking

      the response property became nullable for the status

    • info

      added the non-success response with the status

    • info

      response property workspaceId deprecated

    • info

      added the required property to the response with the status