cURL
curl --request DELETE \ --url https://api.example.com/api/v1/user-sessions/{user_session_id}/agent-sessions/{agent_session_id}/messages/{message_id} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Cancel a pending message in the queue before it’s delivered to the AI.
Only pending messages (delivered_at IS NULL) can be canceled. Returns 204 on success, 404 if message not found or already processed.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response