Platform

Get per-connection usage

Returns inference spend for the current UTC month for this connection.

get/v1/platform/connections/{connectionId}/usage

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/platform/connections/{connectionId}/usage
  • Auth: HTTP bearer

Path parameters

connectionIdstring uuid required

Response

Usage summary

connection_idstring uuid required
periodstring required

UTC month (YYYY-MM)

inference_spent_usdstring required

Kept for compatibility — this field predates the breakdown below and existing integrations read it. Same number as usage.inference_usd.

period_startstring date-time required
period_endstring date-time required

Exclusive. The period is half-open.

Example response

{
  "usage": {
    "inference_usd": "3.42"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.