跳到内容
Twexapi
简体中文
Esc
↑↓导航↵打开⌘J预览

查询待处理的委托邀请

查询 cookie 所属账号收到的待处理账号委托邀请。必须同时提供 TwexAPI Bearer API Key 和接收邀请账号的有效 X Cookie 或 auth_token。没有待处理邀请时返回空数组。username 和 membership_id 不会筛选列表。此读取操作涉及私密邀请,因此也需要账号凭据。

返回 API 接口列表
/Delegate Endpoints
POST/twitter/delegate/invites
API 鉴权
AuthorizationBearer token · header必填
TwexAPI 平台的全局身份凭据 (Bearer Token)。所有接口调用均需在 Header 中携带:Authorization: Bearer <YOUR_TWEXAPI_KEY>。可在 TwexAPI 用户控制台获取。
请求体
必填application/json
cookiestring必填
Authorized X session cookie or auth_token for the account receiving the invitation. Required in addition to the TwexAPI Bearer key.
min length 1
proxystring | any
展开属性
Any of:
string
string
any
any
usernamestring | any
展开属性
Any of:
string
string
any
any
membership_idstring | any
展开属性
Any of:
string
string
any
any
响应结果
200Success
codeinteger必填
msgstring必填
dataDelegateInvite[]必填
展开属性
Array of DelegateInvite
membership_idstring必填
rolestring必填
screen_namestring必填
Username of the account that sent the delegation invitation.
namestring必填
user_idstring必填
403Authentication or credit access denied
codeinteger必填
msgstring必填
dataany[] | any必填
展开属性
Any of:
any[]
Array of any
any
any
any
422Invalid request
codeinteger必填
msgstring必填
dataany[] | any必填
展开属性
Any of:
any[]
Array of any
any
any
any
500Upstream or server error
codeinteger必填
msgstring必填
dataany[] | any必填
展开属性
Any of:
any[]
Array of any
any
any
any
⚡交互式测试POST
⚡交互式测试 / Try APIPOST
Live Console
🌐目标服务器:https://api.twexapi.io
● 生产环境就绪
✍️
写入接口凭证指引(TwexAPI 密钥 + 目标推特 Cookie)

1. TwexAPI 平台密钥 (Bearer Token):在下方「API 鉴权」中填入,用于 TwexAPI 计费与接口调用鉴权。

2. 推特账号 Cookie:本接口为代发/点赞/关注等写操作,需在下方请求体 (Request Body) 的 cookie 字段中填入目标 Twitter 账号的 Cookie 凭据(如 auth_token=...; ct0=...)。

🔑API 鉴权
📝请求体application/json
📡
暂无响应数据

请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。

请求示例
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"
}'
响应示例
{
  "code": 200,
  "msg": "success",
  "data": []
}