Submit AI Tool Results
POST /api/v1/ai/conversations/{conversationId}/tool-results. Request parameters and response schemas.
POST
corfedoOAuth corfedo:ai:invokeheader
AuthorizationBearer <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
conversationId*stringFormat
uuidapplication/json- body
after?|Canonical UInt64 decimal string (0 through 18446744073709551615).
Match
^(0|[1-9][0-9]*)$Length
length <= 20results*array<>stream?null|booleanOK
- response
runId*stringFormat
uuidconversationId*stringFormat
uuidmessageId?|Format
uuidstatus*AiRunStatusValue in
"queued""running""waitingForClient""cancelRequested""ended"outcome?null|failureCategory?null|stringanswer?null|JsonElementcitations?null|usage?null|requiredCalls*array<>sequence*stringCanonical UInt64 decimal string (0 through 18446744073709551615).
Match
^(0|[1-9][0-9]*)$Length
length <= 20outcomes?null|array<>curl -X POST 'https://example.com/api/v1/ai/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/tool-results' \ -H 'Content-Type: application/json' \ -d '{ "results": [ { "callId": "4722cd84-0ec7-4ef5-8c34-1b0150f45f53" } ]}'Example Response
{ "runId": "78c33d18-170c-44d3-a227-b3194f134f73", "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a", "messageId": null, "status": "queued", "outcome": null, "failureCategory": null, "answer": null, "citations": null, "usage": null, "requiredCalls": [ { "callId": "4722cd84-0ec7-4ef5-8c34-1b0150f45f53", "name": "string", "arguments": null, "deadline": "2019-08-24T14:15:22Z" } ], "sequence": "string", "outcomes": null}