See the question
To learn that a job asked a question without polling, use a webhook:job.needs_input carries the question and protected_input_url, and job.input_expiring arrives when 3 minutes are left.
The job reads status needs_input, and input_request holds the question. On Instacart, a run might ask for a delivery window:
choice, multi_choice, text, confirm, secret, login and browser_handoff. A choice, multi_choice or text question asked while a tool is built or changed may carry recommended, the answer Pomerado recommends, or null. Send it as your answer to accept it. The page at answer_url shows it already chosen or filled in. A recommendation is never your answer: left unanswered, the build or change may go on with it, but it never counts as your consent to change anything on the website. A browser_handoff is no question to answer here: a person finishes a step in the job’s browser at answer_url. See Hand off to a person.
Answer it
Answer every question at once withPOST /v1/jobs/{id}/answers or answer_job:
Keep secrets out of chat
Never ask for a password in chat. A secret or login sent through the API or MCP reaches your client and its model provider. Give the personanswer_url instead: it opens a protected Pomerado page that keeps the value out of the conversation. Never send authenticator seeds or durable tokens.
Answer in time
A question waits at most 10 minutes, and a hand-off 30. Unanswered, it fails a run and can end a build. A failed run ends withno_response and is never retried. A keyless run, one without a Pomerado account, can’t answer questions: a question from its tool ends it at once with question_needs_account. An unanswered question never permits a change to the website. A build pauses instead when the unanswered question decides whether it may change the website, is asked while the build is signed in, or follows two questions already left unanswered, and when a sign-in code, an approval or the login a sign-in asks for goes unanswered. Answering a paused build’s question resumes it as the same job, until its pause expires. A build still fails with no_response when the unanswered question corrects a login the website refused, asks for a login outside a sign-in, or comes from the tool’s own example run, and so does a build while it publishes. A requested change to a tool pauses only when the login its sign-in asks for goes unanswered before it changed anything, and answering resumes it. It sends no pause events. If the tool needs a repair meanwhile, the change waits for it and then starts again by itself, asking for the login again if it still needs it. A change to a tool goes on with its recommended answer, or its own best judgment, when a question that only decides how the tool works goes unanswered, such as which field holds a value. Any other unanswered question fails a change with no_response, and a change that fails on its login says so: details.question is login. A run or build that ends with no_response names the question that went unanswered, as it was asked: error.message leads with it and details.question_prompt holds it, on a read that includes results, for up to 60 minutes after the job ended.
Correct a rejected saved login
When the website rejects a saved login before anything changed, the job waits instead of failing. It readsneeds_input with input_request null and error.code credentials_rejected, whose details.login_id names the login.
Give the user the page to correct it: MCP’s next names it as answer_url. Anyone who can edit that login can correct it. The job then resumes as the same job, so don’t submit it again. Uncorrected after 60 minutes, it fails with credentials_rejected.
Details
Details
- Answer formats: an option ID for
choice, an array of option IDs formulti_choice, a string fortextandsecret,{"confirmed": true}forconfirm, and{"username", "identifier_kind", "password", "save_login"}forlogin, with only the fields the question’sfieldslists. Whenfieldslists several identifiers, such asemailandphone, send whichever one you have asusernameand name it inidentifier_kind. Achoicealso takes{"other": text}whenallow_otherand{"option": id, "note": text}whenallow_note. - An answer that doesn’t fit is refused with
invalid_answer, and the question stays open. A question whose time ran out answersinput_expired, and one that closed otherwise, such as an earlier version of it, answersinput_not_pending; read the job again. - Sending the same answers again counts as one answer.
- A login that another of your jobs is using right now is refused with
login_in_use, and the question stays open. Send the same answer again once that job ends, before the question expires. A build asking for a login it doesn’t have takes it instead, and waits up to 10 minutes for that job to end before it signs in. - A login given in the call itself, or a rejected one-time code, fails the job instead of waiting. See saved logins.