Get Pending Delegate Invitations
List pending account-delegation invitations received by the account identified by cookie. Requires both a TwexAPI Bearer key and the recipient account’s authorized X cookie or auth_token. Returns an empty array when no pending invitations are found. username and membership_id do not filter this list. This read operation requires account credentials because invitations are private.
/twitter/delegate/invitesAuthorizationBearer token · headerrequiredapplication/jsoncookiestringrequiredproxystring | anyShow propertiesHide properties
stringanyusernamestring | anyShow propertiesHide properties
stringanymembership_idstring | anyShow propertiesHide properties
stringanycodeintegerrequiredmsgstringrequireddataDelegateInvite[]requiredShow propertiesHide properties
DelegateInvitemembership_idstringrequiredrolestringrequiredscreen_namestringrequirednamestringrequireduser_idstringrequiredcodeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
anyanyanycodeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
anyanyanycodeintegerrequiredmsgstringrequireddataany[] | anyrequiredShow propertiesHide properties
anyanyany⚡Interactive Console / Try APIPOSTLive Console
https://api.twexapi.io1. 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.
Configure parameters in the Request tab and click Send Request below.
curl -X POST "https://api.twexapi.io/twitter/delegate/invites" \
-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/invites", {
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/invites",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN"
},
){
"code": 200,
"msg": "success",
"data": []
}{
"code": 403,
"msg": "Authentication or credit access denied",
"data": []
}{
"code": 422,
"msg": "Invalid request",
"data": []
}{
"code": 500,
"msg": "Upstream or server error",
"data": []
}