Skip to content
Twexapi
English
Esc
↑↓navigate↵open⌘Jpreview

Check DM Permissions (V2)

Check DM status signals for user IDs or usernames. Accept either an object with users and an optional sender cookie, or the original string array. When cookie is supplied, both username resolution and permission queries use that sender session. Omitting cookie uses service-managed accounts. A supplied invalid session never falls back to those accounts.

cookie accepts the complete X Cookie header value or the raw auth_token. Empty strings, whitespace-only values, null, and non-string values return HTTP 422. Results retain the existing fields and batch/credit limits. can_dm_on_xchat=false alone does not mean ordinary DMs are unavailable; the returned signals do not guarantee that sending will succeed.

With a sender session:

{"users":["44196397","elonmusk"],"cookie":"auth_token=YOUR_X_AUTH_TOKEN; ct0=YOUR_CT0"}

The original request remains supported:

["44196397","elonmusk"]
POST/v2/dm/status
Authorization
AuthorizationBearer token · headerrequired
Global API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Request Body
requiredapplication/json
Any of:
object
usersstring[]required
User IDs or usernames to check. Send numeric user IDs as strings.
cookiestring
Optional actual sender's authorized X Cookie header value or raw auth_token. Omit to use service-managed accounts. Blank, null, or non-string values are invalid; authentication failures never fall back to the account pool.
matches \S
string[]
Array of string
string
Responses
200A list of user DM status and verification metadata.
codeintegerrequired
The status code of the response.
msgstringrequired
The message of the response.
dataDMStatusModelV2[]required
A list of DM status objects.
Show properties
Array of DMStatusModelV2
user_idstring | any
The ID of the user.
Show properties
Any of:
string
string
any
any
screen_namestring | any
The username of the user.
Show properties
Any of:
string
string
any
any
is_blue_verifiedboolean | any
Show properties
Any of:
boolean
boolean
any
any
is_verified_organization_affiliateboolean | any
Show properties
Any of:
boolean
boolean
any
any
verifiedboolean | any
Show properties
Any of:
boolean
boolean
any
any
can_dmboolean | any
Show properties
Any of:
boolean
boolean
any
any
can_dm_on_xchatboolean | any
Show properties
Any of:
boolean
boolean
any
any
dm_blockingboolean | any
Show properties
Any of:
boolean
boolean
any
any
passes_premium_checkboolean | any
Show properties
Any of:
boolean
boolean
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
⚡Interactive ConsolePOST
⚡Interactive Console / Try APIPOST
Live Console
🌐Target Server:https://api.twexapi.io
● Production Ready
🔍
Public Data Read (TwexAPI Key Only, No Twitter Cookie Required)

This endpoint queries public Twitter data — no Twitter account or Cookie required! Simply enter your TwexAPI Platform Key (Bearer Token) in the "API Authorization" section below to test.

🔑API Authorization
📝Request Bodyapplication/json
📡
No Response Yet

Configure parameters in the Request tab and click Send Request below.

Request
curl -X POST "https://api.twexapi.io/v2/dm/status" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "users": [
    "44196397",
    "elonmusk"
  ]
}'
Response
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "user_id": "string",
      "screen_name": "string",
      "is_blue_verified": true,
      "is_verified_organization_affiliate": true,
      "verified": true,
      "can_dm": true,
      "can_dm_on_xchat": true,
      "dm_blocking": true,
      "passes_premium_check": true
    }
  ]
}