Skip to main content

Listing threads

Retrieve threads with filtering and pagination:
Response:
The default page size is 20 (max 100). Use nextCursor to paginate.

Looking up threads by username

Find all threads for a prospect by their exact platform username:
Returns a flat array of Thread objects — one per account link that has a conversation with that prospect. No pagination; all matching threads are returned. Scope results to specific connected accounts:
The username must be an exact match (case-insensitive, without the @ prefix). For lookup by platform ID, use GET /threads/lookup instead.

Filtering threads

By Inbox view

The inbox parameter filters by thread state:
Filter threads to specific connected accounts. Pass an array of IDs via accountLinkIds:

By tags

By status

By assignee

By campaign

Sort order

Combined filters

Filters combine with AND logic:

Filter helper

A utility to build filter params:

Pagination

Use cursorId and cursorTimestamp to paginate through all threads:
See Pagination for streaming patterns and error handling.

Looking up a thread

Find an existing thread between an account and a prospect:
The lookup endpoint accepts either externalPlatformId (X user ID) or externalId (Inbox external ID). At least one must be provided along with accountLinkId. Returns the Thread object directly, or null if no thread exists.

Creating a thread

Create a new conversation thread:
Creating a thread doesn’t send a message. Use the messages endpoint to send a DM.
If a thread already exists between the account link and prospect, the API will return an error. Use lookup first to check, or use the lookup-or-create pattern below.

Getting thread details

Returns the Thread object directly — not wrapped in { thread: ... }.

Updating threads

Modify thread assignment and done status:

Deleting threads

Soft-delete a thread:
Deletion is permanent and cannot be undone. The thread is also deleted on the X platform. Consider using done: true to archive instead.

Common workflows

Lookup-or-create pattern

Round-robin assignment

Get threads needing follow-up

List threads

GET /threads

Lookup by username

GET /threads/lookup-by-username

Create thread

POST /threads

Lookup thread

GET /threads/lookup

Update thread

PATCH /threads/

Delete thread

DELETE /threads/

Working with messages

Send and receive messages in threads