Skip to main content

Create Contact Export

POST 

/directories/:directoryId/export-contacts

Exports all the contacts within a directory or contact list that match the criteria provided in the filter.

Filtering with multiple criteria​

The filter object allows you to refine your request by listing criteria that contacts must meet.

When you need to apply multiple criteria, the filter object must include two specific components:

  • conjunction: A property that specifies how to combine your filter criteria. Use and to include only contacts that meet all conditions or use or to include contacts that meet any condition.
  • contactFilterExpressions: An array of objects, each defining a single filter criterion.

Example payload for applying multiple filters​

This setup ensures that only contacts with a non-empty email field and a last modification date later than September 26, 2023, are included:

{
"filter": {
"conjunction": "and",
"contactFilterExpressions": [
{
"filterType": "infoFieldState",
"field": "email",
"comparison": "notEmpty"
},
{
"filterType": "lastModified",
"comparison": "gt",
"value": "2023-09-26 00:00:00"
}
]
}
}

Request​

Responses​

Successful Create Contact Export response