XChat (encrypted messaging)

[AUTHENTICATED READ] Can Dm

Check if users can receive X Chat encrypted DMs. Returns chat permissions including whether they have X Chat enabled and a public key for encryption. Use this endpoint to verify recipients before attempting to send encrypted messages.

post/tw-v2/xchat/can-dm

Request

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

Request body

authTokenstring required

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

proxystring
userIdsSnowflakeId[] required

Example request

{
  "authToken": "YOUR_AUTH_TOKEN",
  "proxy": "proxy.example.com:8080@username:password",
  "userIds": [
    "1234567890"
  ]
}

Response

Successful response

usersobject[] required

Changes

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