Skip to main content
GET
Workspace voice consumption (API token)
Get the total voice cost of one workspace over a date range. The figure is the sum of the actual cost of every voice agent call in the workspace for the range, returned in credits. Use List Workspaces to find the workspaceId to pass.

API Endpoint

GET /api/v1/global/workspace-voice-consumption/{workspaceId} Base URL: https://www.tryunleashx.com Authentication: Required (Token header: token or api_access_token)

Path Parameters

Query Parameters

endDate must be on or after startDate, and no more than 31 days after it.

Success Response

Status Code: 200 OK

Response Fields

What Is Counted

  • Only calls made by voice agents (agent type 3) in the workspace.
  • The cost is the final charged cost of each call, converted to credits in your company’s base currency. Each call is rounded up to a whole credit before it is added, the same way the consumption tables in the app work.
  • Calls are matched on the time the call started, inside the date range.

Access Control

The workspace must belong to the company of the API token. A token for one company can never read the consumption of another company’s workspace, and an unknown or foreign workspaceId returns the same “not found” error.

Errors

Example cURL

Voice cost for November 2026

A single day

Notes

  • Use several requests to cover a longer period, for example one per month.
  • The result covers voice agent calls only. Chatbot, video and other agent usage is not included.
  • The same data is available inside the app at /api/transactions/workspace-voice-consumption/{workspaceId} for signed-in users, who must also be an active member of the workspace.

Headers

token
string
required

API token for authentication

Path Parameters

workspaceId
integer
required

Workspace to report on

Query Parameters

startDate
string<date>
required

First day of the range, YYYY-MM-DD (from 00:00:00)

endDate
string<date>
required

Last day of the range, YYYY-MM-DD (inclusive, to 23:59:59)

Response

Voice consumption retrieved successfully

workspaceId
string
startDate
string
endDate
string
totalCost
number

Total voice cost for the range, in credits

unit
string
Example:

"credits"