GET
/
api
/
v1
/
customer-billing
curl --request GET \
  --url https://prod.oneloop.ai/api/v1/customer-billing \
  --header 'Authorization: Bearer <token>'
{
  "billing": {
    "id": "<string>",
    "totalCredits": "<string>",
    "usedCredits": "<string>",
    "allowOverages": true,
    "spendCap": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspaceId
string
required

The workspace id.

externalMeterId
string
required

The external meter id.

Response

200
application/json
Customer billing
billing
object | null
required