AllowanceCharge

Book one chat action against the caller's org

Records a single chat action on the AI spend ledger. Takes no body: the kind is fixed and the org comes from auth, so a caller can only add spend to themselves. Exists for the eve chat channel, which cannot reach the ledger in-process; not intended for general API use.

POST
/allowance/charge

Records a single chat action on the AI spend ledger. Takes no body: the kind is fixed and the org comes from auth, so a caller can only add spend to themselves. Exists for the eve chat channel, which cannot reach the ledger in-process; not intended for general API use.

AuthorizationBearer <token>

API key (sk_live_... prefix). Generate keys in the UI under Settings > API Keys, then send it as Authorization: Bearer sk_live_...

In: header

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/allowance/charge"
{
  "data": {
    "charged": true
  }
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}