Retrieve all conversations for a specific contact.
GET https://api.nexvio.ai/v1/contacts/{contactId}/conversations
Headers
Name
Required
Description
Authorization
Yes
Your API key in the format: Bearer YOUR_API_KEY
Path Parameters
Parameter
Type
Required
Description
contactId
string
Yes
The ID of the contact
Query Parameters
Parameter
Type
Required
Description
limit
integer
No
Maximum number of conversations to return. Default: 50, Max: 100
offset
integer
No
Number of conversations to skip. Used for pagination. Default: 0
Response
{
"status": "success",
"data": {
"conversations": [
{
"id": "conv_789ghi",
"chatbotId": "chatbot_456def",
"contactId": "contact_123abc",
"startedAt": "2023-07-15T14:20:00Z",
"lastMessageAt": "2023-07-15T14:22:31Z",
"messageCount": 6,
"summary": "Customer asked about pricing plans and features for enterprise"
},
// More conversations...
],
"total": 3,
"limit": 50,
"offset": 0
}
}
Error Responses
Authentication Error
{
"status": "error",
"error": {
"code": "unauthorized",
"message": "Invalid API key"
}
}
Not Found Error
{
"status": "error",
"error": {
"code": "not_found",
"message": "Contact not found"
}
}
Validation Error
{
"status": "error",
"error": {
"code": "validation_error",
"message": "Invalid request data",
"details": {
"email": "Must be a valid email address"
}
}
}
Rate Limits
The Contacts API is subject to rate limiting of 100 requests per minute per API key. If you exceed this limit, you’ll receive a 429 Too Many Requests response.