Skip to content
Navigation

Get an agent

Returns one agent: its steps, the actions it may take, their approval gates, and the version a new run will snapshot.

Read this before starting a run to know which steps will come back to you as human work, and which actions will ask for a sign-off.

Note: An agent's id is opaque — treat it as a string and do not parse it.

**Learn more:** [Agents guide](/paperwork/capabilities/agents)
GET
https://api.cloudraker.com/v1/agents/{id}
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    minLength: 1

Returns

200

The agent.

JSON
  • object
    string
    required
  • id
    string
    required
  • name
    string
    required
  • description
    string
    required
  • version
    number
    required
  • tasks
    array of
    object
    required
    • id
      string
      required
    • title
      string
      required
    • executor
      agent
      or
      human
      required

      Who performs the step: agent runs by itself, human waits for a person to complete it.

    • dependsOn
      array of
      string
      required
  • actions
    array of
    object
    required
    • name
      string | null
      required
    • approval
      auto
      or
      before
      or
      output
      or
      both
      required

      When a person has to sign off on this step.

      • auto — no sign-off.
      • before — approve the proposed inputs before it runs.
      • output — approve the result before it is used.
      • both — both gates.
  • updatedAt
    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 agent id, or an agent that is not active.

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