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": "+1234567890",
  "to_number": "+0987654321",
  "direction": "outbound",
  "call_id": "cmbbvrg8wzi487w02m2bc7dji",
  "agent_id": "bvrg8wzi487w02m2bc7dh0ev",
  "call_status": "ended",
  "customer_id": "customer_001",
  "start_timestamp": 1678886400000,
  "end_timestamp": 1678886700000,
  "duration_ms": 300000,
  "transcript": [
    [
      "assistant",
      "Hello! How can I help you today?"
    ],
    [
      "user",
      "I'd like to schedule an appointment."
    ],
    [
      "assistant",
      "I'd be happy to help you schedule an appointment. What type of service are you looking for?"
    ]
  ],
  "recording_url": "https://recordings.openmic.ai/call_98765.mp3",
  "latency": {
    "e2e_min_latency": 0.5,
    "e2e_median_latency": 1.2,
    "e2e_p90_latency": 2.1,
    "llm_min_latency": 0.3,
    "llm_median_latency": 0.8,
    "llm_p90_latency": 1.5,
    "tts_min_latency": 0.2,
    "tts_median_latency": 0.4,
    "tts_p90_latency": 0.6
  },
  "call_analysis": {
    "summary": "Customer called to schedule an appointment and was successfully assisted.",
    "is_successful": true,
    "success_evaluation": "excellent",
    "extracted_data": null
  },
  "call_cost": {
    "total_cost": 0.0822,
    "llm_cost": 0.0052548,
    "tts_cost": 0.0242269,
    "stt_cost": 0.0527183
  },
  "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

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" }