Skip to main content
GET
/
h
/
v2
/
calls
List calls
curl --request GET \
  --url https://api.openmic.ai/h/v2/calls \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "calls": [
    {
      "id": "<string>",
      "from_number": "<string>",
      "to_number": "<string>",
      "call_status": "registered",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "call_type": "phonecall",
      "agent_uid": "<string>",
      "customer_id": "<string>",
      "dynamic_variables": {},
      "callback_url": "<string>"
    }
  ],
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API key obtained from the OpenMic dashboard.

Query Parameters

page_size
integer

Number of records per page (default 50, max 100).

Required range: 1 <= x <= 100
cursor
string

Opaque pagination cursor returned by the previous response.

customer_id
string
from_number
string
to_number
string
agent_uid
string
from_date
string<date-time>

Filter calls on or after this ISO 8601 timestamp.

to_date
string<date-time>

Filter calls on or before this ISO 8601 timestamp.

call_status
enum<string>
Available options:
registered,
ongoing,
ended,
error
call_type
enum<string>
Available options:
phonecall,
webcall

Response

Paginated list of calls.

has_more
boolean
required

Whether more records exist after this page.

calls
object[]
required
next_cursor
string

Opaque cursor to pass as cursor in the next request.