Skip to main content
GET
/
v1
/
call
/
{id}
Get Call
curl --request GET \
  --url https://api.openmic.ai/v1/call/{id} \
  --header 'Authorization: Bearer <token>'
{
  "call_type": "phonecall",
  "from_number": "<string>",
  "to_number": "<string>",
  "direction": "inbound",
  "call_id": "<string>",
  "agent_id": "<string>",
  "call_status": "registered",
  "customer_id": "<string>",
  "telephony_identifier": {},
  "start_timestamp": 123,
  "end_timestamp": 123,
  "duration_ms": 123,
  "transcript": [
    [
      "<string>"
    ]
  ],
  "recording_url": "<string>",
  "latency": {
    "e2e_min_latency": 123,
    "e2e_median_latency": 123,
    "e2e_p90_latency": 123,
    "llm_min_latency": 123,
    "llm_median_latency": 123,
    "llm_p90_latency": 123,
    "tts_min_latency": 123,
    "tts_median_latency": 123,
    "tts_p90_latency": 123
  },
  "call_analysis": {
    "summary": "<string>",
    "is_successful": true,
    "success_evaluation": "<string>",
    "extracted_data": {}
  },
  "call_cost": {
    "total_cost": 123,
    "llm_cost": 123,
    "tts_cost": 123,
    "stt_cost": 123
  },
  "dynamic_variables": {
    "name": "John"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication using API key. Find it at: https://chat.openmic.ai/api-key

Path Parameters

id
string
required

The unique identifier of the call

Response

Call details retrieved successfully

call_type
enum<string>
required

Type of call

Available options:
phonecall,
webcall
from_number
string
required

Originating phone number

to_number
string
required

Destination phone number

direction
enum<string>
required

Call direction

Available options:
inbound,
outbound
call_id
string
required

Unique call identifier

agent_id
string
required

Bot/agent identifier

call_status
enum<string>
required

Current call status

Available options:
registered,
ongoing,
ended,
error
customer_id
string

Customer identifier

telephony_identifier
object

Telephony system identifiers

start_timestamp
integer

Call start time (Unix timestamp in milliseconds)

end_timestamp
integer

Call end time (Unix timestamp in milliseconds)

duration_ms
integer

Call duration in milliseconds

transcript
string[][]

Call transcript as array of [speaker, message] pairs

Transcript entry with [speaker, message] format

Required array length: 2 elements
recording_url
string

URL to call recording

latency
object

Latency metrics for different components

call_analysis
object

Post-call analysis results including summary and success metrics

call_cost
object

Detailed cost breakdown for the call

dynamic_variables
object

Send dynamic variables in key value pairs to replace in the prompt.

Example:
{ "name": "John" }