Search Chats
Search for chats based on various query parameters. The most common use case is searching by the contact’s phone number using the search parameter.
Required token scopes: List all chats
Results are sorted by last message time (newest first). Note: the chat objects returned by this endpoint do not include the lastMessage preview field.
All status values, type enums and the ID cheat sheet: Enums & Common Fields.
הרשאות
API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.
פרמטרי שאילתה
Search by contact phone number or name (case-insensitive, minimum 2 characters)
2Filter by channel name. Must be used together with channel[accountId]
whatsapp, messenger, instagram, website_chat, email Filter by channel account ID. Must be used together with channel[name]
Filter chats by label ID. Repeat the parameter to match multiple labels (chats matching any of the labels are returned). Up to 100 unique labels
100Filter chats by status name. Repeat the parameter to include multiple statuses (same behavior as labels[]). Note: use ASSIGNED (shown as "Taken" in Texter) and RESOLVED - values like SOLVED or TAKEN are rejected
5BOT, PENDING, ASSIGNED, RESOLVED, BULK Whether to include chats with no messages. By default, only chats that contain messages are returned
1, true, 0, false The maximum number of results to return (1-10000). Defaults to 30
^\d+$The number of results to skip before starting to return records
^\d+$תגובה
The matching chats and the total count. Field-by-field reference: The Chat object