Sending messages
Two ways to send messages: within an existing thread, or using quick send.Standard send (existing thread)
Send a message in a thread you’ve already created or looked up:The send message endpoint returns the
Message object directly — not wrapped in { message: ... }.Quick send
Quick send combines thread lookup/creation and message sending in one request:externalPlatformId (the X user ID) or externalId (the Inbox external ID) to identify the prospect.
When to use quick send:
- One-off messages where you don’t need thread details
- Simplifying your code flow
- Sending multiple messages in sequence
- You’re already working with a thread object
Retrieving messages
Get message history for a thread:Determining message direction
There is nodirection field on messages. Use authorId to determine who sent a message:
origin describes where the message entered Inbox, not who sent it. An "external" message could be from the prospect or from your account (sent via the X client). Campaign messages have origin: "internal" with a non-null campaignId. Check campaignId to distinguish campaign messages from messages sent manually through the Inbox UI.Pagination
For long conversations, paginate through messages usingcursorId and cursorTimestamp:
Replying to a specific message
You can reply to a specific message by providingreplyToMessageId:
Editing messages
Edit a message in an X Chat (encrypted DM) thread:The message must have existing text content to be eligible for editing. If a message was sent with only an attachment and no text content, it cannot be edited.
Deleting messages
Delete a message in an X Chat thread:Reactions
Add or remove emoji reactions on messages:Message history
Get the edit history and deletion status of a message:Common workflows
Send a follow-up
Calculate response time
Bulk send messages
Rate limits are per team across all endpoints. Add delays between bulk sends and implement retry logic with exponential backoff when you receive a
429 response. See Rate limits for current limits and backoff strategies.Related endpoints
Send message
POST /threads//messages
Quick send
POST /threads/messages
List messages
GET /threads//messages
Managing threads
Thread operations and filtering