POST
/v1/agents/{agentKey}/runs

Starts a run of an agent your publication has already set up, and returns straight away. A run takes several minutes, so poll GET /v1/agents/{agentKey}/runs/{runId} for the drafts. Nothing publishes: a run produces drafts for someone to review in the app.

Authorization

apiKey
headerAuthorizationBearer <token>

API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.

Path Parameters

agentKey*string

Which agent, such as changelog

Request Body

Body

application/json
  1. body
idempotencyKey*string

Your own key for this request. Sending it again returns the same run instead of starting a second one.

Length1 <= length <= 200
instructions?string

A note to steer this one run

Lengthlength <= 2000

Response Body

Run started

application/json
  1. response
runId*string

Identifier for the run you just started

status*string

Where the run has got to

Value in"queued""running""succeeded""completed_with_warnings""failed""blocked""canceled"
curl -X POST "https://example.com/v1/agents/string/runs" \  -H "Content-Type: application/json" \  -d '{    "idempotencyKey": "string"  }'
{  "runId": "string",  "status": "queued"}