Agents
Get an agent result
Redeem the result of an async agent run with the `workflow_id` and `task_id` it returned.
Headers: every response carries x-request-id. Pick the body format with ?format= or Accept (application/json, text/yaml, text/markdown, text/plain).
Authorization: send Authorization: Bearer $PLUNGE_API_KEY; X-API-Key: <ozk_ key> is accepted as an alternative.
While the run is still in flight the route answers 404 not_ready; poll again.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
Response
Stored result Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
invalid_format — format must be one of json, yaml, markdown, text
application/json
Missing, invalid, expired or revoked ozk_ key.
Error code: unauthorizedfrom code
not_ready
application/json
The run failed.
Error code: execution_failedfrom code
The run completed without visible content; raise max_tokens to 64 or more.
Error code: empty_completionfrom code