Billing and audit endpoints
Billing usage
Use GET/api/v1/billing/usage.
Request
Response
Credits ledger
Use GET/api/v1/credits/ledger.
Request
Response
Audit events
Use GET/api/v1/audit/events.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Admin and owner billing usage, credits ledger, and audit log API surfaces.
/api/v1/billing/usage.
curl "$MCPFACTORY_BASE_URL/api/v1/billing/usage?organizationId=<organization-id>&windowDays=30" \
-H "Authorization: Bearer $MCPFACTORY_API_KEY"
{
"windowDays": 30,
"requests": 124500,
"cpuMs": 4822330
}
/api/v1/credits/ledger.
curl "$MCPFACTORY_BASE_URL/api/v1/credits/ledger?organizationId=<organization-id>&limit=25" \
-H "Authorization: Bearer $MCPFACTORY_API_KEY"
{
"balance": 17320,
"entries": [
{
"id": "led_123",
"type": "debit",
"amount": 250
}
]
}
/api/v1/audit/events.
curl "$MCPFACTORY_BASE_URL/api/v1/audit/events?organizationId=<organization-id>&limit=25" \
-H "Authorization: Bearer $MCPFACTORY_API_KEY"
{
"events": [
{
"id": "evt_123",
"action": "controlPlane.accessDenied",
"actorId": "usr_123"
}
]
}