Skip to main content
POST
/
x
/
communities
Create community
curl --request POST \
  --url https://api.example.com/x/communities \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account": "<string>",
  "name": "<string>",
  "description": "<string>"
}
'
10 credits per call · All plans from $0.00012/credit
curl -X POST https://xquik.com/api/v1/x/communities \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "account": "myxhandle",
    "name": "Crypto Traders Hub",
    "description": "A community for crypto traders to share insights and strategies."
  }' | 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.

Body

account
string
required
The connected X account to create the community as. Must be a username you have connected to your Xquik account.
name
string
required
The name for the new community.
description
string
Optional description for the community explaining its purpose.

Response

communityId
string
The unique ID of the newly created community.
communityName
string
The name of the created community. Omitted if unavailable.
success
boolean
Always true on success.
{
  "communityId": "1893726451023847424",
  "communityName": "My Community",
  "success": true
}
Related endpoints: Delete Community to remove a community, Join Community to join an existing community, Leave Community to leave a community.