본문으로 건너뛰기
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.

API 참조로 돌아가기
/Delegate Endpoints
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
⚡대화형 콘솔 / API 테스트POST
Live Console
🌐대상 서버:https://api.twexapi.io
● 프로덕션 준비 완료
✍️
쓰기 작업 인증 정보 가이드 (TwexAPI 키 + Twitter 쿠키)

1. TwexAPI 플랫폼 키 (Bearer Token): 요청 과금 및 인증을 위해 아래 "API 인증"에 입력하세요.

2. 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"
  }
}