latestOpenAPI 3.1.02026-08-226994571.1 MB
1e929292ddd5
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/responses/{response_id}/cancel
Path parameters
response_idstring required
Response
Successful Response
{"stackTrail":"paths:/responses/{response_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}