responses

`POST /v1/responses/{response_id}/cancel` — cancel an in-progress background response. Per OpenAI's spec, returns 400 if the response is not in background mode. Idempotent for already-terminal rows.

post/api/v1/responses/{response_id}/cancel

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/responses/{response_id}/cancel
  • Auth: HTTP bearer

Path parameters

response_idstring required

ID of the response to cancel

Response

The cancelled response object

Changes

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