v1
latestOpenAPI 3.1.02026-08-042453938.9 KBUsage
Record internal usage (no billing)
Record a usage event for internal visibility tracking only. No billing or charges are created.
Requires a secret key (sk_*) with at least the OPERATOR role.
Use cases:
- Track internal team usage without charging
- Pilot programs where you want visibility before billing
- Usage tracking before customer has on-chain wallet setup
This endpoint:
- Does NOT create a Charge record
- Does NOT require customer balance
- Does NOT require blockchain/wallet setup for internal customers
- Works with both internal and regular customers
For billing customers, use POST /v1/usage or POST /v1/usage/async instead.
post/v1/usage/internal
Request body
Example request
{
"customerId": "cus_abc123def456",
"externalCustomerId": "user_42",
"stripeCustomerId": "cus_NffrFeUfNV2Hib",
"usageType": "api_call",
"quantity": 100,
"units": "API calls",
"description": "Eligibility check for Pharmacy ABC (workflow: insurance_verify)",
"idempotencyKey": "req_20240115_abc123",
"metadata": {
"endpoint": "/v1/chat",
"model": "gpt-4"
}
}Response
Internal usage recorded
Example response
{
"success": true,
"message": "Usage recorded for internal visibility (no charge created)"
}