API referenceEndpoints
List intercom calls
Returns the calls, newest first or, with `order=oldest`, oldest first: the checkpoint that called, the coach there if any, when the call rang, was answered and ended, who answered and what was decided. **Required permission:** `cycle.coach-cycle:read`
GET
/cycle/v1/intercom-callsReturns the calls, newest first or, with order=oldest, oldest first: the checkpoint that called, the coach there if any, when the call rang, was answered and ended, who answered and what was decided.
Required permission: cycle.coach-cycle:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Query Parameters
status?string
Only the calls standing here.
Value in
- "RINGING"
- "CONNECTED"
- "ENDED"
limit?integer
How many calls, at most 200; 50 when not given.
Format
int32Range
0 <= value <= 200order?string
Which calls come first: newest (when not given) or oldest, so the call that has rung longest is never cut off by the limit.
Value in
- "newest"
- "oldest"
Response Body
*/*
curl -X GET "https://example.com/cycle/v1/intercom-calls"{ "calls": [ { "answered_at": "2019-08-24T14:15:22Z", "answered_by": "string", "checkpoint_id": "string", "decision": "ANSWERED", "ended_at": "2019-08-24T14:15:22Z", "id": "string", "intercom_address": "string", "rang_at": "2019-08-24T14:15:22Z", "status": "RINGING", "vehicle_id": "string" } ]}