Send a message
Send an encrypted text message to a conversation or to a user.
The message is encrypted and signed with your chat key, like on x.com. The first message to a person you have not written to yet starts the encrypted conversation; that person needs X Chat (encrypted messages) on their account. Text only, no media.
Reference: https://www.twittrapi.com/docs/account-actions/client-dm-send
Request
- Base URL: https://api.twittrapi.com
- URL: https://api.twittrapi.com/client/dm/send
- Auth: API key in header X-API-KEY
Query parameters
raw (default): X's JSON passed through. simple: flat camelCase JSON with a fixed schema and a {data, nextCursor, previousCursor, hasNextPage} envelope. Same price. The header X-Response-Format: simple does the same.
Request body
Response
{conversation_id, id (sequence ID), message_id, created_at (Unix milliseconds), text}.
With format=simple: {data: {id, messageId, conversationId, createdAt, text}}. createdAt is RFC 3339.
X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.
Changes
No recorded changes to this operation across all 1 revision of this API.