Skip to main content
POST
/
api
/
v1
/
runs
/
{id}
/
questions
/
{qid}
/
answer
Submit Run Answer
curl --request POST \
  --url https://api.example.com/api/v1/runs/{id}/questions/{qid}/answer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "kind": "yes"
}'
{
  "errors": [
    {
      "status": "404",
      "title": "Not Found",
      "detail": "Run not found.",
      "code": "access_token_expired",
      "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "leftover_env_keys": [
    "<string>"
  ],
  "removed_env_keys": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Raw dev token passed as Authorization: Bearer fabro_dev_... when server.auth.methods includes dev-token.

Path Parameters

id
string
required

Unique run identifier (ULID).

qid
string
required

Unique identifier of a pending question.

Body

application/json

Request body for submitting an answer to a pending question. The kind discriminator determines which answer shape is submitted.

kind
enum<string>
required

Affirmative answer for yes/no and confirmation questions.

Available options:
yes

Response

Answer accepted