コンテンツにスキップ
Twexapi
日本語
Esc
↑↓移動↵開く⌘Jプレビュー

委任招待を承認

Accept a pending invitation for the account identified by cookie. Use membership_id from the invitations endpoint or username of the inviting account. A non-empty membership_id takes precedence over username, with no username fallback if the ID is not found. If neither selector is provided, acceptance occurs only when exactly one invitation is pending. No match, no invitations, or multiple invitations without a selector returns HTTP 500 in the current implementation. Success returns the selected invitation metadata. Requires a TwexAPI Bearer key and the recipient account’s authorized X credentials.

POST/twitter/delegate/accept
API 認証
AuthorizationBearer token · header必須
TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須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必須
プロパティを表示
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キー + Twitter Cookie)

1. TwexAPIプラットフォームキー (Bearer Token): 下記の「API認証」に入力してください(API呼び出しと課金認証に使用)。

2. TwitterアカウントCookie: ツイート・いいね・フォロー等の書き込み操作のため、下記リクエストボディの cookie フィールドに対象TwitterアカウントのCookie(例: auth_token=...; ct0=...)を入力してください。

🔑API 認証
📝リクエストボディapplication/json
📡
暂无响应数据

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

リクエスト例
curl -X POST "https://api.twexapi.io/twitter/delegate/accept" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN",
  "membership_id": "1234567890123456789"
}'
レスポンス例
{
  "code": 200,
  "msg": "success",
  "data": {
    "membership_id": "1234567890123456789",
    "role": "Contributor",
    "screen_name": "example_owner",
    "name": "Example Owner",
    "user_id": "1234567890123456788"
  }
}