Skip to main content
POST
Create contact view
Required scope: CRM_WRITE

Body fields

See Filters for the fields and operators you can use.

Response

Returns 201 with the view.

Errors

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 255
Example:

"Hot leads"

filters
object[]

Conditions combined with AND. At most 50

Maximum array length: 50
sort
object[]

Up to 2 entries. Sortable built-in fields: name, company, job_title, website, created_at, updated_at, last_activity. A sortable custom field key from GET /v2/api/crm/attributes also works

Maximum array length: 2
owner_type
enum<string>
default:USER

USER is private to the API key's user. TEAM is shared with the user's team; it returns 400 USER_HAS_NO_TEAM when the user has no team.

Available options:
USER,
TEAM
Example:

"USER"

Response

The view that was created

data
object

A saved view: a named filter and sort over people. Views created in the Allo app and with the API are the same objects.