Get all chats for a specific customer
GET
/openapi/chat/chatsbycustomer/{customerId}
const url = 'https://open-api.replyco.com/openapi/chat/chatsbycustomer/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://open-api.replyco.com/openapi/chat/chatsbycustomer/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Returns all chat conversations associated with a customer. Useful for viewing a customer’s chat history. Results are ordered by creation date (newest first).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”customerId
required
string format: uuid
Customer ID to retrieve chats for
Responses
Section titled “Responses”Returns the list of customer chats
User is not authenticated or authorized
Customer with the specified ID was not found