Skip to main content
DELETE
/
2
/
connections
Terminate multiple connections
curl --request DELETE \
  --url https://api.x.com/2/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuids": [
    "<string>"
  ]
}
'
{
  "data": {
    "failed_kills": 123,
    "results": [
      {
        "error_message": "<string>",
        "success": true,
        "uuid": "<string>"
      }
    ],
    "successful_kills": 123
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
uuids
string[]
required

Array of connection UUIDs to terminate

Required array length: 1 - 100 elements

Response

The request has succeeded.

data
object
errors
object[]
Minimum array length: 1