Retrieve a list of contacts for a chatbot with pagination support.
GET https://www.chatbase.co/api/v1/chatbots/{chatbotId}/contacts
<YOUR_API_KEY>
Show Contact Object
{ "message": "Success", "data": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "external_id": "kX2b8YpI-jRmN3vQ5", "name": "John Doe", "email": "john.doe@example.com", "phonenumber": "+1234567890", "stripe_accounts": [ { "label": "Team 1", "stripe_id": "cus_1234567890", "stripe_email": "john.doe@example.com" } ], "custom_attributes": { "age": 30, "location": "New York" }, "created_at": 1571672154, "updated_at": 1571672154 } // ... more contacts ], "total": 150, "pages": { "page": 1, "per_page": 100, "total_pages": 2 } }
{ "message": "Invalid request parameters", "issues": [ { "field": "per_page", "message": "Number must be greater than or equal to 10" } ] }
{ "message": "Unauthorized access" }
{ "message": "Chatbot not found" }
{ "message": "Rate limit exceeded" }
{ "message": "Error retrieving chatbot contacts" }
curl -X GET 'https://www.chatbase.co/api/v1/chatbots/5ba682d23d7cf92bef87bfd4/contacts?per_page=100&page=1' \ -H 'Authorization: Bearer <YOUR_API_KEY>'