XChat (encrypted messaging)

[CREDENTIALS] Setup

Initialize X Chat (encrypted DMs) for your account. This is a required first step before sending encrypted messages. You must have X Chat already set up in the official app before using this endpoint.

post/tw-v2/xchat/setup

Request

  • Base URL: https://api.tweetapi.com
  • URL: https://api.tweetapi.com/tw-v2/xchat/setup
  • Auth: API key in header X-API-Key

Request body

authTokenstring required

Caller-supplied auth_token cookie value. Treat it as a secret.

proxystring
userIdstring required
pinstring required

Example request

{
  "authToken": "YOUR_AUTH_TOKEN",
  "proxy": "proxy.example.com:8080@username:password",
  "userId": "1234567890",
  "pin": "1234"
}

Response

Successful response

status'ready' required
userIdstring required
publicKeyVersionstring required
messagestring required

Changes

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