Skip to main content
POST
Cancel messages that have not gone out

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of cancel_messages.

sid
string | null

One message that has not gone out (failed, or queued and not taken by the provider yet) to cancel. Exactly one of sid | filter, else 422 invalid_input.

Required string length: 18
Pattern: ^ub_ms_
filter
object | null

Fan-out arm: cancel every matching message that has not gone out (the backend ANDs state in [failed, queued] in), so { conversation_sid: { eq } } cancels everything still waiting on one thread.

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
object | null
required
result
object
required
meta
object
required