Contacts
Export contacts
POST/contacts/export
Export all your contacts in CSV format, including all the additional data points you may have synced from third party integrations.
Headers
Content-Type
application/json
Authorization
your-api-key
Body
email is the recipients email to which Polser will send the exported contacts list.
{
"email": "your-email@yourdomain.io"
}Delete a contact
DELETE /contacts/{phone_number}
Delete a contact and all the related data by providing a phone number. Warning: there is no way to recover this data so be mindful when using this operation.
Headers
Content-Type
application/json
Authorization
your-api-key
URL Parameters
phone_number
34XXXXXXXXXXX
Contact phone number with country code but without the plus sign
Response
{
"message": "Contact deleted"
}The contact was deleted successfully, alongside any messages they had exchanged with Polser.
{
"error": "Phone number is required"
}The request is missing the phone number of the contact.
{
"error": "Contact does not exist"
}The customer with the phone number provided could not be found.
{
"error": "Unauthorized"
}The API key is missing or incorrect.
Last updated
Was this helpful?