curl --request GET \
--url https://api.credira.com/v1/calls?invoice_id=inv_987654321 \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
{
"success": true,
"data": [
{
"id": "call_123456789",
"invoice_id": "inv_987654321",
"duration": 180,
"status": "completed",
"from": "+1234567890",
"to": "+0987654321",
"transcription_url": "https://api.credira.com/transcriptions/call_123456789.txt",
"call_recording_url": "https://api.credira.com/recordings/call_123456789.mp3",
"confidence_score": 0.95,
"voice_agent_id": "agent_456789123",
"timezone": "America/New_York",
"account_id": "acc_789123456",
"created_time": "2024-01-15T10:30:00Z"
}
],
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789",
"total_calls": 1
}
}
Retrieve calls associated with an invoice
curl --request GET \
--url https://api.credira.com/v1/calls?invoice_id=inv_987654321 \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
{
"success": true,
"data": [
{
"id": "call_123456789",
"invoice_id": "inv_987654321",
"duration": 180,
"status": "completed",
"from": "+1234567890",
"to": "+0987654321",
"transcription_url": "https://api.credira.com/transcriptions/call_123456789.txt",
"call_recording_url": "https://api.credira.com/recordings/call_123456789.mp3",
"confidence_score": 0.95,
"voice_agent_id": "agent_456789123",
"timezone": "America/New_York",
"account_id": "acc_789123456",
"created_time": "2024-01-15T10:30:00Z"
}
],
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789",
"total_calls": 1
}
}
false if no calls exist for the given invoice ID, or
an array of call objects if calls are found.curl --request GET \
--url https://api.credira.com/v1/calls?invoice_id=inv_987654321 \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
{
"success": true,
"data": [
{
"id": "call_123456789",
"invoice_id": "inv_987654321",
"duration": 180,
"status": "completed",
"from": "+1234567890",
"to": "+0987654321",
"transcription_url": "https://api.credira.com/transcriptions/call_123456789.txt",
"call_recording_url": "https://api.credira.com/recordings/call_123456789.mp3",
"confidence_score": 0.95,
"voice_agent_id": "agent_456789123",
"timezone": "America/New_York",
"account_id": "acc_789123456",
"created_time": "2024-01-15T10:30:00Z"
}
],
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789",
"total_calls": 1
}
}
{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "Missing required parameter: invoice_id"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Invoice not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}
{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}