get_usage
Aggregate job units for a billing period. Cost class: fast.
credits is what the period bills; units are measured work, including failed and cancelled jobs that are not billed. The admission allowance also counts failed and cancelled work and in-flight reservations, so a quota_exceeded credits_used can exceed credits_total.
pages and bytes_ingested aggregate the per-job processing volume the workers record at completion time. credits sums only jobs whose usage is final; unfinalized_jobs counts the ones still open.
Request
- Base URLhttps://ndi-api.nace.ai
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Start of the billing window, inclusive.
End of the billing window, inclusive.
Restrict to one workspace. Omit to aggregate all jobs for this API key.
Aggregation key: calendar day, job kind, or workspace. tenant is for a partner key sent without X-NDI-Tenant: one bucket per child tenant, keyed by its external_ref.
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.