API reference / Needs you
Answer a teammate's question
Answers what a teammate asked on a task (a task's asks are in GET /tasks/{key}). A decision takes choice (one of its options) or text of your own. An input takes text. An approval takes approve, or changes with text: for an engineering ticket's plan, send the version you read. Once nothing on the task waits for a person, its teammate picks it up again with the answers. Answering twice returns the first answer.
/api/v1/asks/{id}Other ways to call it
troopy asks answertroopy_answer_askIdempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.Path parameters
id*stringA 24-character id
Body
application/jsonchoicestringAt most 200 characters
textstringAt most 4000 characters
versionintegerFor the approval of a plan: the version you read. A newer plan is refused, so read it again first
At least 1
Response
200 · application/jsondata*object14 properties
id*stringA 24-character id
taskId*stringA 24-character id
agent*stringThe teammate asking
kind*enum<string>decisioninputapprovallogin
question*stringoptions*array<string>For a decision: the choices, the teammate's pick first
draftId*string | nullFor an approval: the draft to approve
docobject | nullFor the approval of a plan: the plan and the version to approve
2 properties
kind*enum<string>analysisplan
version*integersitestring | nullFor a login request: the site the teammate needs a login to
status*enum<string>openansweredwithdrawn
answer*object | null2 properties
choice*string | nulltext*string | nullansweredBy*object | null3 properties
type*enum<string>personagentapi
id*stringname*stringansweredAt*string | nullcreatedAt*stringISO 8601 date and time