latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

responses

Cancel Response

Cancel a response by ID.

Supports both:

  • Polling IDs (litellm_poll_*): Cancels background response and updates status in Redis
  • Provider response IDs: Passes through to provider API

Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/cancel

# Cancel polling response
curl -X POST http://localhost:4000/v1/responses/litellm_poll_abc123/cancel     -H "Authorization: Bearer sk-1234"

# Cancel provider response
curl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel     -H "Authorization: Bearer sk-1234"
post/v1/responses/{response_id}/cancel

Path parameters

response_idstring required

Response

Successful Response

{"stackTrail":"paths:/v1/responses/{response_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}