Skip to main content
GET
List Recent Agent Events

Headers

Authorization
string
required

A client API key (Agency dashboard → Clients → select a client → API Access tab) or the agency API key. Client keys can only manage their own client's subscriptions, agents and phone numbers.

Path Parameters

agentId
string
required

The agent ID

Query Parameters

event
enum<string>

Only return events of this type

Available options:
call.started,
call.missed,
call.ended,
call.inbound
limit
integer
default:10

Maximum number of events to return (default 10, max 100)

Required range: x <= 100

Response

Recent events

id
string

Event ID

createdAt
string<date-time>

When the event was generated

event
enum<string>
Available options:
call.started,
call.missed,
call.ended,
call.inbound
conversation
object

Fields present depend on the event: call.started has the call identifiers only; call.missed adds endedReason and endedAt; call.ended has everything.

agentNumber
string

call.inbound only: the number that was called

customerNumber
string

call.inbound only: the caller's number