costs
Submit cost and/or usage data
Ingests a batch of cost records. Each record is either a pre-computed cost (caller supplies amount + currency) or a usage record (caller supplies vendor/model/token counts and Paid prices it server-side). The batch is all-or-nothing: if any record fails validation, the entire request is rejected with a 400 and nothing is persisted.
post/costs/bulk
Request
- Base URL: https://api.agentpaid.io/api/v2
- URL: https://api.agentpaid.io/api/v2/costs/bulk
- Auth: HTTP bearer
Request body
Response
200
Changes
No recorded changes to this operation across all 1 revision of this API.