Skip to content
Navigation

Pause an agent run

Interrupts a run at its next safe point without discarding its work.

POST
https://api.cloudraker.com/v1/agent-runs/{id}/pause
Try it
Path parameters
Query parameters
Header parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    minLength: 1

Query parameters

  • wait
    optional
    integer

    How many seconds to hold the request open. Releases early the moment the run finishes or blocks on a person. Maximum 120; 0 returns immediately.

    maximum: 120 · minimum: 0 · default: 60

Header parameters

  • idempotency-key
    optional
    string

    Retries with the same key replay the first applied mutation.

    maxLength: 255 · minLength: 1

Returns

200

The run state after the pause request.

JSON
  • object
    string
    required
  • action
    steer
    or
    pause
    or
    resume
    or
    cancel
    required
  • run
    object
    required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      waiting
      or
      paused
      or
      completed
      or
      failed
      +2 more
      required

      Where the agent run is in its life.

      Status Meaning
      queued Accepted; its files are still being prepared
      processing The agent is working
      waiting Blocked on a person — see waiting, approvals and tasks[]
      paused Stopped short of finishing and resumable; not a failure
      completed Finished; result and output are populated
      failed Finished without producing a result
      cancelled Stopped on request
      expired Reached its expiresAt without finishing

      completed, failed, cancelled and expired are terminal. A completed run that still had outstanding work also carries incomplete: true.

    • statusUrl
      string
      required

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

401

Missing or invalid credentials.
JSON
  • code
    string
    required
  • message
    string
    required
  • retryable
    boolean
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

403

The credential is valid but cannot administer this organization.
JSON
  • code
    string
    required
  • message
    string
    required
  • retryable
    boolean
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

404

Unknown run id.

409

The run cannot be paused in its current state.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close