Skip to content
Navigation

Send a reply to a run

POST
/v1/runs/{runId}/reply

Record the first reply to a Wait for Reply run before its deadline, including while the run is queued. Simplcron resumes the same run. Server calls require a bearer API key with runs:write from the run's workspace, project, and environment. The signed-in console can use its same-origin session. A retry of the same JSON payload is safe even after the run finishes. Object key order is ignored for this check.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Path parameters

  • runId
    string
    required

    ID returned at submission.

    pattern: ^run_[a-f0-9]{32}$

Request body JSON required

  • payload
    object
    required

    Reply data to pass to the handler. Up to 2 KiB of normalized JSON data.

Returns

200

The same payload was already accepted. The original reply is retained.

JSON
  • runId
    string
    required
    pattern: ^run_[a-f0-9]{32}$
  • accepted
    boolean
    required

    True if this request recorded the reply. A retry of previously accepted data returns false.

202

First reply accepted. The existing run will resume.

JSON
  • runId
    string
    required
    pattern: ^run_[a-f0-9]{32}$
  • accepted
    boolean
    required

    True if this request recorded the reply. A retry of previously accepted data returns false.

400

Invalid JSON or missing object payload
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

404

Run not found in the credential's scope
JSON
  • error
    string
    required

409

Reply conflicts with a prior reply or the run cannot accept a reply
JSON
  • error
    string
    required

413

Reply payload exceeds 2 KiB of normalized JSON data or request exceeds the body limit
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close