Skip to main content
GET
/
api
/
call-history
# API_KEY=your_api_key

curl -H "X-API-Key:vaani_3916d7d1d8736c2883582d8ab005be31" https://api.vaaniresearch.com/api/call-history


{
  "calls": [
    {
      "call_id": "call_123",
      "contact_number": "+919876543210",
      "timestamp": "2024-01-15T10:30:00Z",
      "status": "completed"
    }
  ]
}

Get Call History

Get call history for a client. Shows all calls for the client if the user belongs to that client.
Super-admins can see all calls.

Parameters

Request Example

# API_KEY=your_api_key

curl -H "X-API-Key:vaani_3916d7d1d8736c2883582d8ab005be31" https://api.vaaniresearch.com/api/call-history


Response

Success Response (200)

{
  "calls": [
    {
      "call_id": "call_123",
      "contact_number": "+919876543210",
      "timestamp": "2024-01-15T10:30:00Z",
      "status": "completed"
    }
  ]
}
The response follows the CallHistoryResponse schema. Additional fields may be returned depending on implementation.

Validation Error (422)

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