CoderHelm Docs
APIRuns

Answer a run's questions

POST
/api/runs/{run_id}/answer

Answers the questions a needs_input run asked (its questions) and continues the work: the answers are posted on the ticket or issue as a reply from you, kept on the run, and the ticket starts again as a new run whose plan reads them word for word. The old run becomes retried with continued_run_id set. A run that isn't needs_input any more (answered, retried or closed meanwhile) is refused with 409.

Authorization

api_key runs
headerAuthorizationBearer <token>

A team API key, made by an admin under Settings, API keys. Send it as Authorization: Bearer chk_....

Scope: runs

Path Parameters

run_id*string

The run's id.

Request Body

application/json
  1. body

Answers to a run's questions.

answers*array<>

One entry per question answered. Questions left out (or blank) stay open; at least one needs an answer.

Response Body

The work continues with the answers.

application/json
  1. response

What answering did.

comment_url?|

The reply on the ticket or issue, when its address is known.

Example"https://github.com/acme/web/issues/42#issuecomment-2211"
posted*boolean

Whether the answers were posted on the ticket or issue.

Exampletrue
run_id*string

The id of the run that continues the work. It shows in GET /api/runs/{run_id} once it starts, within seconds.

Example"01JB8Z3N5Q7S9V1X3Z5B7D9F1H"
status*string

continuing: the ticket is queued again with the answers.

Example"continuing"
curl -X POST 'https://api.coderhelm.com/api/runs/01JB8X6F4M2C9QZ3T7V5W1K0HA/answer' \  -H "Authorization: Bearer $CODERHELM_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "answers": [    {      "answer": "Production only. Staging keeps the old limit.",      "question_id": "q1"    }  ]}'
{  "comment_url": "https://github.com/acme/web/issues/42#issuecomment-2211",  "posted": true,  "run_id": "01JB8Z3N5Q7S9V1X3Z5B7D9F1H",  "status": "continuing"}
Edit on GitHub