Report usage and optionally charge user

Reports usage data and optionally charges the user. This is the main endpoint for tracking AI agent usage.

Charging Users:

  • Set chargeUser: true to charge the user for the usage
  • When charging is enabled, the user's billing account will be charged the totalCost amount
  • Use the preview endpoint first to check if the charge will succeed

Authentication Required:

  • Client Credentials (Basic Auth)
  • OAuth Access Token with usage_reporting permission
  • OAuth Access Token with payment permission (when chargeUser: true)
Language
Credentials
:
URL
Click Try It! to start a request and see the response here!