Check DM Permissions (V2)
Retrieves the Direct Message (DM) availability status for a list of users. This endpoint checks if the specified accounts can receive messages based on their privacy settings, follow status, or verified permissions.
Back to API Reference
/DM Endpoints
POST
/v2/dm/statusAuthorization
AuthorizationBearer token · headerrequiredGlobal API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Request Body
requiredapplication/jsonArray of
stringstringResponses
200An object mapping user identifiers to their respective DM reachability status.
codeintegerrequiredThe status code of the response.
msgstringrequiredThe message of the response.
dataDMStatusModelV2[]requiredA list of DM status objects.
Show propertiesHide properties
Array of
DMStatusModelV2user_idstring | anyThe ID of the user.
Show propertiesHide properties
Any of:
string
stringany
anyscreen_namestring | anyThe username of the user.
Show propertiesHide properties
Any of:
string
stringany
anyis_blue_verifiedboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anyis_verified_organization_affiliateboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anyverifiedboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anycan_dmboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anycan_dm_on_xchatboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anydm_blockingboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
anypasses_premium_checkboolean | anyShow propertiesHide properties
Any of:
boolean
booleanany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject⚡Interactive ConsolePOST
⚡Interactive Console / Try APIPOSTLive 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 '[
"1696160451770429440",
"elonmusk"
]'const response = await fetch("https://api.twexapi.io/v2/dm/status", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify([
"1696160451770429440",
"elonmusk"
])
});import requests
response = requests.post(
"https://api.twexapi.io/v2/dm/status",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json=[
"1696160451770429440",
"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
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}