List Dialogs
Retrieve a list of chat dialogs. You can list dialogs using specific search criteria.
Recipes
Filter dialogs by custom field
Filter dialogs by custom field
1. Set a custom object class
CoolDialog custom object class.See this section to learn how to create a custom object class.2. Set a custom object field
friends field of the CoolDialog custom object class.3. As a result, the API returns all dialogs by the specified custom object field.
Display total number of all dialogs
Display total number of all dialogs
1. Specify if you want to count dialogs
count to 1.2. As a result, the API returns a total number of all dialogs that exist in the system.
Get dialog by dialog ID
Get dialog by dialog ID
1. Set the dialog ID
2. As a result, the specified dialog is returned
Filter dialogs by type
Filter dialogs by type
1. Set a search operator for a field
in operator is applied to a type field.2. Set a sort operator for a field
sort_desc operator is applied to the last_message_date_sent field.3. Set a limit for a number of dialogs on the page
limit parameter.Here, the number of dialogs on the page is limited to 3.4. As a result, the API returns all public and group dialogs.
Get dialogs with API key
Get dialogs with API key
1. Use 'Authorization' header to pass API key
2. Use 'On-Behalf-Of' header to pass user_id
3. As a result, the API returns all public and group dialogs.
Query Parameters
Added in v2.4.5.
Headers
ApiKey {your_api_key}. Must be used either QB-Token or Authorization.