Record run costs
Changed onRecords costs from outside connic on a run, such as a translation or OCR service.
The items show on the run and count in its cost, in Budgets, spend alerts and limits, and dashboards. connic never bills them. An item with an external_id that the run already holds replaces that item, so retries and corrected prices don't count twice. A run holds at most 1000 items; each request records 1 to 100.
Required permission: runs.costs.record.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Run ID from GET /runs.
Request body
Response
Successful Response
Where the cost comes from, for example translation or ocr.
Short note on what the cost is for. Empty after the run is deleted.
Amount as a decimal string with 12 decimal places.
How much was used, as a decimal string, for example translated characters.
Unit of quantity, for example characters or pages.
Your identifier for the cost. Recording the same external_id on a run again replaces the item.
When the item was first recorded. Budgets count it in this period.
Changes
- info
endpoint added
- info