Skip to main content

Get Usage History

GET /api/v1/organizations/usage/runs — request parameters and responses from the Menace Voice API schema.
3 min read
get/api/v1/organizations/usage/runs
Request example
Response
get/api/v1/organizations/usage/runs

See authentication for workspace API access. Public embed and artifact endpoints use their documented session or access tokens.

Query parameters

start_datestring · null#
ISO 8601 date-time string (UTC). Lower bound (inclusive) on created_at.
end_datestring · null#
ISO 8601 date-time string (UTC). Upper bound (inclusive) on created_at.
pageinteger#

Default: 1

Range: >= 1

limitinteger#

Default: 50

Range: 1–100

filtersstring · null#

JSON-encoded array of filter objects. Each object has the shape:

Supported attribute / type / value combinations:

attributetypevalue shapematches
runIdnumber{ "value": 12345 }exact run id
workflowIdnumber{ "value": 42 }exact agent (workflow) id
campaignIdnumber{ "value": 7 }exact campaign id
callerNumbertext{ "value": "415555" }substring match on initial_context.caller_number
calledNumbertext{ "value": "9911848" }substring match on initial_context.called_number
dispositionCodemultiSelect{ "codes": ["XFER", "DNC"] }any of the codes in gathered_context.mapped_call_disposition
durationnumberRange{ "min": 60, "max": 300 }call duration (seconds), inclusive bounds
callDirectionradio{ "status": "inbound" }inbound or outbound; any other value matches all
callChannelradio{ "status": "telephony" }telephony, web, or chat — the group of run modes for that channel

Unknown attributes and unsupported type values are silently ignored.

Date filtering on this endpoint is done via the dedicated start_date / end_date query params, not via a dateRange filter object.

sort_bystring · null#
Field to sort by ('duration'). Defaults to created_at.
sort_orderstring#
Sort order ('asc' or 'desc').

Default: "desc"

Pattern: ^(asc|desc)$

Headers

authorizationstring · null#
X-API-Keystring · null#

Responses

application/json
Successful Response
runsobject[]required#
Show child attributes
idintegerrequired#
workflow_idintegerrequired#
workflow_namestring · nullrequired#
Show child attributes
namestringrequired#
created_atstringrequired#
dograh_token_usagenumberrequired#
call_duration_secondsintegerrequired#
recording_urlstring · null#
Show child attributes
transcript_urlstring · null#
Show child attributes
user_recording_urlstring · null#
Show child attributes
bot_recording_urlstring · null#
Show child attributes
recording_public_urlstring · null#
Show child attributes
transcript_public_urlstring · null#
Show child attributes
user_recording_public_urlstring · null#
Show child attributes
bot_recording_public_urlstring · null#
Show child attributes
public_access_tokenstring · null#
Show child attributes
phone_numberstring · nulldeprecated#
Deprecated. Use caller_number and called_number instead.
Show child attributes
caller_numberstring · null#
Show child attributes
called_numberstring · null#
Show child attributes
call_typestring · null#
Show child attributes
modestring · null#
Show child attributes
dispositionstring · null#
Show child attributes
initial_contextobject · null#
Show child attributes
gathered_contextobject · null#
Show child attributes
charge_usdnumber · null#
Show child attributes
total_dograh_tokensnumberrequired#
total_duration_secondsintegerrequired#
total_countintegerrequired#
pageintegerrequired#
limitintegerrequired#
total_pagesintegerrequired#