API Total Usage

API Total usage events contain details about Platform SOAP API, Platform REST API, and Bulk API requests.

For details about event monitoring, see the Trailhead Event Monitoring module or REST API Developer’s Guide.

Fields 

API_CLIENT_CATEGORY 

  • Type: String

  • Description: The category of the client making the API request.

  • Possible values:

    • AGENTFORCE_AGENT - API request is from an Agentforce agent.
    • EXTERNAL_APPLICATION - API request is from an external app defined in the org.
    • LIGHTNING_UI - API request is from the Lightning UI.
    • SALESFORCE - API request is from an internal Salesforce app or service.
    • UNKNOWN - API request is from an unrecognized category.
    • SALESFORCE_HOSTED_MCP - API request is from a Salesforce Hosted MCP Server.

API_FAMILY 

  • Type: String
  • Description: The API family. Possible values are REST, SOAP, Bulk, ApexREST, DirectApexREST or DirectAura. ApexREST indicates an Apex REST call. DirectApexREST indicates an Apex REST Agent Action call. DirectAura indicates an AuraEnabled Apex Agent Action call.

API_RESOURCE 

  • Type: String
  • Description: The API method or resource. For example, describeSObjects for SOAP, or /v21.0/sobjects/Account/001xx000003DGQW for REST.

API_VERSION 

  • Type: Number
  • Description: The API version.
  • Example: 21.0

CLIENT_IP 

  • Type: String
  • Description: The IP address of the client that’s using Salesforce services. A Salesforce internal IP (such as a login from AppExchange) is shown as “Salesforce.com IP”.
  • Example: 96.43.144.26

CLIENT_NAME 

  • Type: String
  • Description: The name of the client making the API request. Includes values passed via the Sforce-Call-Options header.

CONNECTED_APP_ID 

  • Type: String
  • Description: The ID of the connected app making the API request. If the connected app ID includes the prefix 0H4, append it to the connected app ID in the My Domain URL to access app details (https://MyDomainName.my.salesforce.com/0H4xxxxxxxxxxxx). If, however, the connected app ID uses the prefix 888, contact Salesforce Customer Support for app details.

CONNECTED_APP_NAME 

  • Type: String
  • Description: The name of the connected app making the API request.

COUNTS_AGAINST_API_LIMIT 

  • Type: Boolean
  • Description: Whether the request counted against the API limit (true) or not (false).

ENTITY_NAME 

  • Type: Set
  • Description: The name of the object accessed by the API request.
  • Examples: Account, Opportunity, Contact, and so on.

EVENT_TYPE 

  • Type: String
  • Description: The type of event. The value is always ApiTotalUsage.

HTTP_METHOD 

  • Type: String
  • Description: The HTTP method.
  • Example: GET

ORGANIZATION_ID 

  • Type: Id
  • Description: The 15-character ID of the organization.
  • Example: 00D000000000123

REQUEST_ID 

  • Type: String
  • Description: The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same REQUEST_ID.
  • Example: 3nWgxWbDKWWDIk0FKfF5DV

STATUS_CODE 

  • Type: Number
  • Description: The HTTP response status code for the request.

TIMESTAMP 

  • Type: String
  • Description: The access time of Salesforce services in GMT.
  • Example: 20130715233322.670

TIMESTAMP_DERIVED 

  • Type: DateTime
  • Description: The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ). The timezone is GMT.
  • Example: 2015-07-27T11:32:59.555Z

USER_ID 

  • Type: Id
  • Description: The 15-character ID of the user who’s using Salesforce services through the API.
  • Example: 00530000009M943

USER_NAME 

  • Type: String
  • Description: The username of the user who’s using Salesforce services through the API.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!