Get a Managed Agent build
Returns the state of a build: still running, waiting for answers or a reply, or finished. nextAction says what to do next. Builds are kept for 24 hours; the agent and its build history stay after that.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
managed-agents. buildAndPublishOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API version.
v3v3Path Parameters
Build ID
b7a1f0e2-4c3d-4e5f-8a9b-0c1d2e3f4a5bQuery Parameters
Location (sub-account) the build belongs to
ve9EPM428h8vShlRW1KTResponse
Build state
Build id to poll and to continue the build with
b7a1f0e2-4c3d-4e5f-8a9b-0c1d2e3f4a5bRUNNING: still building. NEEDS_INPUT: answer questions. NEEDS_REPLY: the builder asked something in message; send the reply as a new message on this build. ANSWERS_STALE: the questions changed, so send the request again. COMPLETED: done (changed tells whether the agent was saved). FAILED: see error.
RUNNINGNEEDS_INPUTNEEDS_REPLYANSWERS_STALECOMPLETEDFAILEDRUNNINGWhat to do next. POLL: call get build again after pollAfterMs. ASK_USER: show the user the questions or message and send their answer. REVIEW: the draft was saved; review it, then publish when ready. USE_RESULT: use message as the answer; nothing changed. RETRY: nothing was applied (see error or staleReason); send the request again with a new Idempotency-Key.
POLLASK_USERREVIEWUSE_RESULTRETRYPOLLMilliseconds to wait before polling again (RUNNING only)
5000The agent this build creates or edits, once known
027ee957-ae94-40ad-89a3-b25c985f729bCOMPLETED only: true when the agent draft was saved, false when the builder only answered
trueThe builder's message: its summary, its answer, or the question it needs answered
I built a lead qualifier that books qualified leads into your Sales calendar.NEEDS_INPUT only: the questions to answer
ANSWERS_STALE only: why the answers no longer apply
no_pending_roundexpiredconfig_changedwrong_targetround_mismatchexpiredFAILED only: why the build failed
Whether the agent has a published version
falseWhether the saved draft differs from the published version
trueWhen the build started
2026-10-29T12:00:00.000ZWhen the build last changed state
2026-10-29T12:01:30.000Z