Get Delegate Groups
List every delegation group the account identified by cookie belongs to. Each group is described by the account it acts for: user_id, screen_name, name, avatar and role (Owner, Admin or Contributor). The account’s own group is included with role Owner. Requires a TwexAPI Bearer key and the account’s authorized X cookie or auth_token.
Back to API Reference
/Delegate Endpoints
POST
/twitter/delegate/groupsAuthorization
AuthorizationBearer token · headerrequiredGlobal API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Request Body
requiredapplication/jsoncookiestringrequiredAuthorized X session cookie or auth_token for the account the call acts for. Required in addition to the TwexAPI Bearer key.
min length 1
proxystring | anyShow propertiesHide properties
Any of:
string
stringany
anyResponses
200Success
codeintegerrequiredmsgstringrequireddataDelegateAccount[]requiredShow propertiesHide properties
Array of
DelegateAccountuser_idstringrequiredscreen_namestringrequirednamestringrequiredavatarstring | anyrequiredProfile image URL.
Show propertiesHide properties
Any of:
string
stringany
anyrolestring | anyrequiredOwner, Admin or Contributor.
Show propertiesHide properties
Any of:
string
stringany
any403Authentication or credit access denied
codeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
Any of:
any[]
Array of
anyanyany
any422Invalid request
codeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
Any of:
any[]
Array of
anyanyany
any500Upstream or server error
codeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
Any of:
any[]
Array of
anyanyany
any⚡Interactive ConsolePOST
⚡Interactive Console / Try APIPOSTLive Console
🌐Target Server:
https://api.twexapi.io● Production Ready
✍️
Write Operation Credentials Guide (TwexAPI Key + Twitter Cookie)
1. TwexAPI Platform Key (Bearer Token): Enter under "API Authorization" below for request billing & authentication.
2. Twitter Account Cookie: For write operations (tweet, like, follow, etc.), provide the target Twitter account's Cookie (e.g. auth_token=...; ct0=...) in the cookie field of Request Body below.
🔑API Authorization
📝Request Bodyapplication/json
📡
No Response Yet
Configure parameters in the Request tab and click Send Request below.
Request
curl -X POST "https://api.twexapi.io/twitter/delegate/groups" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN"
}'const response = await fetch("https://api.twexapi.io/twitter/delegate/groups", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN"
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/delegate/groups",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN"
},
)Response
{
"code": 200,
"msg": "success",
"data": [
{
"user_id": "1234567890123456788",
"screen_name": "example_owner",
"name": "Example Owner",
"avatar": "https://pbs.twimg.com/profile_images/owner_normal.jpg",
"role": "Owner"
},
{
"user_id": "1234567890123456789",
"screen_name": "example_brand",
"name": "Example Brand",
"avatar": "https://pbs.twimg.com/profile_images/brand_normal.jpg",
"role": "Contributor"
}
]
}{
"code": 403,
"msg": "Authentication or credit access denied",
"data": []
}{
"code": 422,
"msg": "Invalid request",
"data": []
}{
"code": 500,
"msg": "Upstream or server error",
"data": []
}