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
unauthorized — missing, invalid or revoked ozk_ key
Error code: unauthorizedfrom code
application/json
not_ready — the result is not stored yet (still running): poll again; not_found — no route for this method on this path: every other method answers it
application/json
execution_failed — the run failed; the message is the run error
Error code: execution_failedfrom code
application/json
empty_completion — the run completed but produced no visible content (hint: max_tokens >= 64)
Error code: empty_completionfrom code
application/json