Delegate Endpoints

Accept a Delegate Invitation

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

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/twitter/delegate/accept
  • Auth: HTTP bearer

Request body

cookiestring required

Authorized X session cookie or auth_token for the account receiving the invitation. Required in addition to the TwexAPI Bearer key.

proxystring nullable

Optional HTTP proxy URL.

usernamestring nullable

Inviting account username, @handle or X profile URL. Matched case-insensitively.

membership_idstring nullable

Pending invitation membership ID. Takes precedence over username when non-empty.

Response

Success

codeinteger required
msgstring required

Changes

No recorded changes to this operation across all 1 revision of this API.