Calls by source
GET
/api/v1/calls/report
const url = 'https://digize.com/api/v1/calls/report';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/calls/report \ --header 'x-api-key: <x-api-key>'Calls to the workspace’s numbers over a period, by the source each number tracks and by the channel of the site visit they came from, with the latest 100 of them.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
The start; 30 days ago when left out.
string format: date-time
The start; 30 days ago when left out.
to
The end; now when left out.
string format: date-time
The end; now when left out.
Responses
Section titled “Responses”Done
Media typeapplication/json
object
bySource
required
Array<object>
object
source
required
string
calls
required
number
answered
required
number
missed
required
number
fromSites
required
Calls tied to a site visit.
number
callers
required
number
seconds
required
Talk time, all answered calls together.
number
byChannel
required
Array<object>
object
channel
required
string
calls
required
number
answered
required
number
missed
required
number
recent
required
Array<object>
object
id
required
string
contactId
required
string
conversationId
required
string
from
required
string
to
required
string
status
required
string
source
required
string | null
landingPage
required
string | null
campaign
required
string | null
menuChoice
required
string | null
durationSeconds
required
number
startedAt
required
string format: date-time
Example
{ "byChannel": [ { "channel": "direct" } ], "recent": [ { "status": "ringing", "channel": "direct" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}