Get View
Returns a single custom View, including the filters that make up its saved search.
The viewId is the id returned by List Views. To list the conversations matching the View, pass it as viewId to List Conversations (v3).
Request
GET /v2/mailboxes/1/views/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1
Authorization: Bearer oauth_token
Path Parameters
/v2/mailboxes/{mailboxId}/views/{viewId}
Response
HTTP/1.1 200 OK
Content-Type: application/hal+json
{
"_links" : {
"self" : {
"href" : "..."
}
},
"id" : "550e8400-e29b-41d4-a716-446655440000",
"name" : "Unanswered VIPs",
"createdBy" : 2,
"visibility" : {
"type" : "public"
},
"favorite" : false,
"activeCount" : 5,
"filters" : [ {
"field" : "subject",
"operator" : "contains",
"value" : "refund"
}, {
"field" : "assignee",
"operator" : "equals",
"value" : 2
}, {
"field" : "hasRatingComments",
"operator" : "notEquals",
"value" : true
}, {
"field" : "status",
"operator" : "hasAny",
"values" : [ "active", "pending" ]
}, {
"field" : "createdAt",
"operator" : "isBefore",
"value" : "2024-05-04T13:45:00Z"
}, {
"field" : "customField",
"customFieldId" : 104,
"operator" : "equals",
"value" : 168
}, {
"field" : "modifiedAt",
"operator" : "isBetween",
"range" : {
"start" : "2023-02-02T02:02:02Z",
"end" : "2024-03-03T03:03:03Z"
}
}, {
"field" : "waitingSince",
"operator" : "inTheLast",
"duration" : {
"value" : 24,
"unit" : "hours"
}
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
id |
String |
Unique identifier, a UUID |
name |
String |
View name |
createdBy |
Number |
ID of the User who created the View |
favorite |
Boolean |
Whether the requesting User marked this View as favorite |
activeCount |
Number |
Number of active conversations matching this View |
visibility.type |
String |
Who can see this View: customprivatepublic |
visibility.limitedTo |
Array |
User and Team IDs the View is visible to, besides its creator. Only present when visibility.type is custom |
filters |
Array |
The criteria that make up this View. Only returned for a single View |
filters[].field |
String |
The field being filtered on |
filters[].customFieldId |
Number |
The Inbox custom field ID, present when field is customField |
filters[].customerPropertySlug |
String |
The customer property slug, present when field is customerProperty |
filters[].operator |
String |
The comparison applied to the field |
filters[].value |
Varies |
The value to filter by: a string, number, boolean or date |
filters[].values |
Array |
The values to filter by, when the filter matches any of several values |
filters[].range |
Object |
The start and end to filter by, for range operators such as isBetween |
filters[].duration |
Object |
The value and unit to filter by, for relative operators such as inTheLast |
Resource Links
| Relation | Description |
|---|---|
customFields |
The Inbox custom fields, present when a filter uses one |
customerProperties |
The customer properties, present when a filter uses one |