Export contacts
Changed onREQUIRED SCOPES <code>['contacts:read']</code><br> Exports the account's contacts to a CSV file. Under 1000 contacts the file is built right away and <code>url</code> holds the download link. From 1000 contacts the export is queued: <code>url</code> is null and <code>queued</code> is true. In both cases the link is also emailed to the user.
Request
- Base URLhttps://api.salesmessage.com/pub/v2.3
- URLhttps://api.salesmessage.com/pub/v2.3/contacts/export
- AuthHTTP bearer
Query parameters
Columns to export, in file order: contact fields (e.g. first_name, number, email, tags, created_at) or custom.<key> for custom fields. Default: first_name, last_name, number, email, created_at.
[ "first_name" ]
Contact column to sort by. Default: newest contacts first.
Sort direction.
Search term, as in the Contacts list.
Export only these contacts.
[ 1234 ]
Response
OK
Example response
{
"url": "https://salesmessage.s3.us-west-2.amazonaws.com/app/users/1/files/export/export-2026-09-16.csv",
"records_count": 42
}Changes
- breaking
the response's body type changed from
arraytoobjectfor status - info
added the new optional
queryrequest parametercontactIds[] - info
added the new optional
queryrequest parametercontact_columns[] - info
added the new optional
queryrequest parametersearch - info
added the new optional
queryrequest parametersortBy - info
added the new optional
queryrequest parametersortOrder - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking