Get the session's answer

GET/o/{org}/p/{project}/sessions/{session}/result
View .md

result is the last finished turn's answer; it is null until a turn finishes. Poll this, follow …/events, or take the webhook.

Authenticate with an org API key or a signed-in session.

Path parameters

orgstringrequired

The org's slug or id. A caller with no role in the org gets 404.

projectstringrequired

A Project's handle (name) or id, resolved inside {org} — OR the reserved sentinel _ meaning "no Project" (a direct-repo / repo-less dispatch on POST; "no Project constraint, resolve by session id alone" everywhere else). A real handle that doesn't match the session's actual Project is 404.

sessionstringrequired

The session's full id (execution_id).

Responses

200The answer beside the run's status.
execution_idstringrequired
statusstringrequired

The run status as stored (a SessionStatus, or dispatching / deferred before admission).

branchstring | nullrequired
pr_urlstring | nullrequired
outputstring | nullrequired

The run's one-line status, e.g. runtime: guest harness completed; at most 50,000 characters.

completed_atstring | nullrequired
Format date-time
resultSessionAnswer | nullrequired

Null until a turn finishes.

3 fields
textstring | nullrequired

The final message as the harness reported it (claude's result, codex's last message).

structuredobject | nullrequired

The answer as the object output_schema describes; null when no schema was sent or none came back.

schema_validboolean | nullrequired

null when no schema was sent; true when the harness produced a schema-conforming object; false when a schema was sent and it did not.

401No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional
404No such resource for the caller, including one that exists in an org the caller cannot see.
errorstringoptional

A sentence for a person.

codestringoptional

Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.

error_codestringoptional

The machine code on routes that name it this way.

messagestringoptional
requestIdstringoptional