API ReferenceTenantsIdUsage
Get a tenant's usage
Credits charged to your account for the tenant, its requests and errors, and its jobs, over a window of up to 93 days. Defaults to the current calendar month (UTC). Partner accounts only: call it with your partner account's account-wide key, which needs the admin scope, and without X-Tenant-Id.
AuthorizationBearer <token>
API key in the Authorization header: Authorization: Bearer ace_live_.... Use an ace_test_... key for the free, rate-capped sandbox.
In: header
Path Parameters
id*string
Format
uuidQuery Parameters
from?string
Format
date-timeto?string
Format
date-timeResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage"{ "data": { "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "credits": { "used": 0, "charges": 0 }, "requests": { "total": 0, "errors": 0, "retainedSince": "2019-08-24T14:15:22Z" }, "jobs": { "total": 0, "completed": 0, "partial": 0, "failed": 0 } }}