Consultar invitaciones de delegación pendientes
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.
Volver a la referencia de API
/Delegate Endpoints
POST
/twitter/delegate/invitesAutorización de API
AuthorizationBearer token · headerrequeridoToken Bearer global para TwexAPI. Incluido como: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Cuerpo de la solicitud
requeridoapplication/jsoncookiestringrequeridoAuthorized X session cookie or auth_token for the account receiving the invitation. Required in addition to the TwexAPI Bearer key.
min length 1
proxystring | anyMostrar propiedadesOcultar propiedades
Any of:
string
stringany
anyusernamestring | anyMostrar propiedadesOcultar propiedades
Any of:
string
stringany
anymembership_idstring | anyMostrar propiedadesOcultar propiedades
Any of:
string
stringany
anyRespuestas
200Success
codeintegerrequeridomsgstringrequeridodataDelegateInvite[]requeridoMostrar propiedadesOcultar propiedades
Array of
DelegateInvitemembership_idstringrequeridorolestringrequeridoscreen_namestringrequeridoUsername of the account that sent the delegation invitation.
namestringrequeridouser_idstringrequerido403Authentication or credit access denied
codeintegerrequeridomsgstringrequeridodataany[] | anyrequeridoMostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
any422Invalid request
codeintegerrequeridomsgstringrequeridodataany[] | anyrequeridoMostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
any500Upstream or server error
codeintegerrequeridomsgstringrequeridodataany[] | anyrequeridoMostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
any⚡Consola interactivaPOST
⚡Consola interactiva / Probar APIPOSTLive Console
🌐Servidor objetivo:
https://api.twexapi.io● Producción lista
✍️
Guía de credenciales de escritura (Clave TwexAPI + Cookie de Twitter)
1. Clave de TwexAPI (Bearer Token): Ingrésela en "Autorización API" abajo para facturación y autenticación.
2. Cookie de cuenta Twitter: Para operaciones de escritura (tuitear, dar me gusta, seguir), ingrese la Cookie (ej. auth_token=...; ct0=...) en el campo cookie abajo.
🔑Autorización API
📝Cuerpo de la solicitudapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
Solicitud
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"
},
)Respuesta
{
"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": []
}