Skip to content
Navigation

Decide an approval raised by a work session

Approves or rejects an action a turn proposed. The platform runs it; the agent never holds the credential. A rejection needs a note saying why — the agent reads it and takes another route.

An EGRESS approval releases a credentialed request the agent already formed, so its parameters cannot be edited (422 egress_not_editable) and only an approver the agent version names may decide it (403 not_an_approver).

If approval ownership cannot be resolved the call fails closed with 503: releasing a credentialed request without that check is never safe.

Learn more: Work sessions

POST
https://api.cloudraker.com/v1/work-sessions/{id}/approvals/{approvalId}
Try it
Path parameters
Request body
Live API request

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    maxLength: 128 · minLength: 1
  • approvalId
    string
    required
    maxLength: 128 · minLength: 1

Request body JSON required

  • decision
    approve
    or
    reject
    required
  • note
    optional
    string
    maxLength: 2000
  • editedParams
    optional
    map of
    unknown
  • edits
    optional
    map of
    unknown

Returns

200

The decided approval.

400

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

401

Missing or invalid credential.

403

not_an_approver — this credential may not decide egress requests.

404

Unknown session or approval.

422

egress_not_editable — an egress approval cannot be edited; note_required — a rejection needs a reason.

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

503

approval_owner_unavailable — ownership could not be resolved.

Type to search…

↑↓ navigate↵ selectEsc close