The Customer archive API allows you to archive a customer with their related information and chat messages. Once archived, the existing customer data is subsequently deleted from both Sendbird server and the Desk server and is irreversible after the deletion. Then, you can only retrieve customer archives or request a download link to a specific archive.
Note: Customers from social media can't be archived.
The following table shows the list of properties in a customer archive resource.
Property name
Type
Description
id
int
The unique ID of the customer archive.
project
int
The unique ID of the project.
customerId
int
The unique ID of the archived customer. The value is null if a customer only has a Sendbird ID.
sendbirdId
string
The unique Sendbird ID of the customer, which is identical to a user ID in Sendbird Chat.
createdAt
string
The date and time when the customer archive is created, in ISO 8601 format.
archiveStatus
string
The status that indicates whether the customer is archived. Valid values are the following: PENDING, IN_PROGRESS, DONE, and FAILED. Once the value changes to DONE, the archived customer data is downloadable through the provided URL.
deletionStatus
string
The status that indicates whether the customer information is deleted from the Desk server. Valid values are the following: PENDING, IN_PROGRESS, DONE, and FAILED. The deletion process begins once the value of archiveStatus changes to DONE.
API endpoints are relative to the base URL allocated to your application. On this page, the /customers endpoint refers to https://desk-api-{application_id}.sendbird.com/platform/v1/customers.
Note: If you want to know your application ID, sign in to your dashboard, go to the Settings > Application > General, and then check the Application ID.
It's recommended that the parameter values in API URLs be urlencoded, such as {customer_archive_id}.