Report a task outcome

Says, after the answer, whether a request or the agent run it belongs to succeeded. Name the request by the X-Request-Id (or chatcmpl_ id) its answer carried, or the run by the trace id its requests arrived with in traceparent; exactly one. Any key of the workspace may report, within 31 days of the request (for a run, its most recent request). A later report replaces the earlier one; a request's own outcome wins over its run's. Usage counts cost per successful task only from reported outcomes.

post/v1/outcomes

Request

Request body

OR

Response

What was recorded and how many requests it applies to.

outcome'success' | 'failure'
requestsinteger

Changes

No recorded changes to this operation across all 1 revision of this API.