Skip to main content
GET

Recipes

1

1. Set a custom object class

You need to refer to the specific custom object class in the request.In this case, we refer to the CoolDialog custom object class.See this section to learn how to create a custom object class.
2

2. Set a custom object field

Refer to a specific custom object field in the query.Here, we refer to the friends field of the CoolDialog custom object class.
3

3. As a result, the API returns all dialogs by the specified custom object field.

1

1. Specify if you want to count dialogs

You can display the total number of all dialogs in the system by setting the count to 1.
2

2. As a result, the API returns a total number of all dialogs that exist in the system.

1

1. Set the dialog ID

You can get a dialog by its ID. Just specify the ID of the dialog in the request.
2

2. As a result, the specified dialog is returned

1

1. Set a search operator for a field

Use a search operator to perform a query. Here, the in operator is applied to a type field.
2

2. Set a sort operator for a field

Use a sort operator to order the search results by the field. Here, the sort_desc operator is applied to the last_message_date_sent field.
3

3. Set a limit for a number of dialogs on the page

You can limit search results on the page using the limit parameter.Here, the number of dialogs on the page is limited to 3.
4

4. As a result, the API returns all public and group dialogs.

The request will return the latest 3 records sorted by the last_message_date_sent field in descending order.
1

1. Use 'Authorization' header to pass API key

2

2. Use 'On-Behalf-Of' header to pass user_id

To execute a request on behalf of a specific user.
3

3. As a result, the API returns all public and group dialogs.

Search Operators The request can contain all, some or none of the next search operators. Sort Operators Next sorting operators are allowed:

Query Parameters

{dialog_field_N}
string
Search records with the field that contains the specified value. Can be many 1..N.
{dialog_field_N}[{search_operator}]
string
Filters records with field that contains the value according to the specified value and operator. Can be many 1..N.
include_unread_message_count
integer
default:"Defaults to 1"
Unread message count is calculated for dialogs by default. Set to 0 to skip calculation, which will speed up the request.
Added in v2.4.5.
limit
integer
default:"Defaults to 100"
Limit search results to N records. Useful for pagination.
skip
string
default:"Defaults to 0"
Skip N records in search results. Useful for pagination.
count
string
Count search results. Set to 1 to apply. Response will contain only count of records found. If not passed, the response will contain all available dialog records along with their count.
sort_desc
string
Search results will be sorted by the specified field in descending order.
sort_asc
string
Search results will be sorted by the specified field in ascending order.
data[class_name]
string
Class name in Custom Objects.
data[{class_field_N}]
string
Field name of class in Custom Objects. Can be many 1..N.

Headers

QB-Token
string
required
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Authorization
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
On-Behalf-Of
string
User ID. The user ID of the user on whose behalf the request is being made.

Responses

A successful response
total_entries
integer
skip
integer
limit
integer
items
array of objects