CorfedoCorfedoDocs
ReferenceAPI referenceAI

Get AI Run

GET /api/v1/ai/runs/{runId}. Request parameters and response schemas.

GET
/api/v1/ai/runs/{runId}

Authorization

corfedoOAuth corfedo:ai:invoke
headerAuthorizationBearer <token>

Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.

Scope: corfedo:ai:invoke

Path Parameters

runId*string
Formatuuid

Response Body

OK

response?AiRunEventAiRunSnapshotEventapplication/json
Example Request
curl -X GET 'https://example.com/api/v1/ai/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "type": "run.snapshot",  "runId": "78c33d18-170c-44d3-a227-b3194f134f73",  "sequence": "string",  "status": "queued",  "outcome": null,  "failureCategory": null,  "answer": null,  "citations": null,  "usage": null,  "steps": [    {      "step": -2147483648,      "text": "string",      "committed": true    }  ],  "pendingCalls": [    {      "callId": "4722cd84-0ec7-4ef5-8c34-1b0150f45f53",      "name": "string",      "arguments": null,      "deadline": "2019-08-24T14:15:22Z"    }  ]}