Skip to main content
GET
Get Latest Phone Number Event

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

phoneNumberId
string
required

The phone number ID

Query Parameters

event
enum<string>

Only return events of this type (default call.inbound)

Available options:
call.started,
call.missed,
call.ended,
call.inbound

Response

object | null

The latest event, or null if none

An event as returned by the polling endpoints: the webhook payload plus id and createdAt.

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