Skip to main content
DELETE
/
x
/
communities
/
{id}
/
join
Leave community
curl --request DELETE \
  --url https://api.example.com/x/communities/{id}/join \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account": "<string>"
}
'
10 credits per call · All plans from $0.00012/credit
curl -X DELETE https://xquik.com/api/v1/x/communities/1893726451023847424/join \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "account": "myxhandle"
  }' | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Path parameters

id
string
required
The ID of the community to leave.

Body

account
string
required
The connected X account to remove from the community. Must be a username you have connected to your Xquik account.

Response

communityId
string
The ID of the community left.
communityName
string
The name of the community left.
success
boolean
Always true on success.
{
  "communityId": "1893726451023847424",
  "communityName": "Crypto Traders Hub",
  "success": true
}
Related endpoints: Join Community to join a community, Create Community to create a new community, Delete Community to remove a community you own.