Admin Billing Spend Reports

Get admin spend drilldown records

Returns paginated billable line items across all organizations behind admin spend report totals. Rows include organization_name for cross-organization drilldown.

get/api/v1/admin/billing/spend/records

Request

  • Base URL: https://api.sanifu.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.sanifu.ai/api/v1/admin/billing/spend/records
  • Auth: one of:
    • OAuth 2 (password, token URL auth/jwt/login)
    • HTTP basic

Query parameters

pageinteger nullable
per_pageinteger nullable
searchstring nullable
filterstring nullable
orderbystring[] nullable
tzstring nullable

IANA timezone name for interpreting date-only filters (e.g., 'UTC', 'Africa/Nairobi')

exportstring nullable
preset'mtd' | 'qtd' | 'ytd' | 'last_7d' | 'last_30d' | 'last_90d' | 'last_365d' | 'all_time' | 'custom'

Preset date range for drilldown records.

start_datestring date nullable

Inclusive start date. Required when preset=custom.

end_datestring date nullable

Inclusive end date. Required when preset=custom.

source_typestring[] nullable

Filter by source: execution or builder.

providerstring[] nullable

Filter by provider.

model_namestring[] nullable

Filter by model name.

item_typestring[] nullable

Filter by usage item type.

transaction_typestring[] nullable

Filter by transaction type.

environmentstring[] nullable

Filter by billing environment: production or sandbox.

organization_idinteger[] nullable

Filter by organization ID. Most useful with the admin organization lookup endpoint for unique organization selection.

organization_namestring[] nullable

Filter by organization name. Most useful on admin reports.

agent_namestring[] nullable

Filter by AI/builder agent name, not data app name.

data_app_namestring[] nullable

Filter by data app name.

workflow_namestring[] nullable

Filter by workflow name.

component_namestring[] nullable

Filter by workflow component name.

record_categorystring[] nullable

Filter by record category.

container_slugstring[] nullable

Filter by runtime container tier.

execution_contextstring[] nullable

Filter by execution context.

loop_typestring[] nullable

Filter by loop type.

app_typestring[] nullable

Filter by triggering app type.

integration_patternstring[] nullable

Filter by integration pattern.

Response

Successful Response

Example response

{
  "data": [
    {
      "component_name": "ai_classifier",
      "cost_credits": "360.00000000",
      "cost_usd": "0.03600000",
      "created_at": "2026-05-01T12:34:56Z",
      "data_app_name": "Invoice Processor",
      "description": "llm - input_tokens",
      "execution_context": "direct",
      "execution_count": 1,
      "item_type": "input_tokens",
      "model_name": "gpt-6-sol",
      "organization_name": "Acme Corp",
      "provider": "openai",
      "quantity": "12000.0000",
      "record_category": "component",
      "source_type": "execution",
      "subscription_event_id": 501,
      "transaction_id": 1024,
      "transaction_type": "workflow_execution",
      "unit_price": "0.000003000",
      "usage_line_item_id": 2291,
      "usage_record_id": 881,
      "workflow_name": "Extract invoice fields"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.