Skip to main content

Get Call History

Get call history for a client. Authentication: Requires X-API-Key header Shows all calls for the client if user belongs to that client. Super-admin can see all calls.

Request Example

curl -X GET 'https://api.vaaniresearch.com/api/call-history/my-client' \
  -H 'X-API-Key: YOUR_API_KEY'

Response

Success Response (200)

Returns a JSON object containing call history data. The exact structure may vary based on the implementation.
{
  "calls": [
    {
      "call_id": "call_123",
      "client_name": "my-client",
      "contact_number": "+919876543210",
      "timestamp": "2024-01-15T10:30:00Z",
      "status": "completed"
    }
  ]
}
The response structure follows the CallHistoryResponse schema, which is an object with additional properties. The exact fields may vary based on your implementation.

Validation Error Response (422)

{
  "detail": [
    {
      "loc": ["path", "client_name"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}
detail
array
Array of validation error details