API logging

An API event is logged each time an API operation is invoked and for each API event. You can gain analytic insights into your API activities or debug your APIs through the logged data.

An API event record contains information about the API call and the content of the record depends on your logging preferences for the invoked API. The following types of log content are supported.
  • No logging.
  • Activity: logs invocation, where only the resource URI is recorded.
  • Header: logs the activity and header.
  • Payload: logs the activity, header, and payload.

To generate logs for an API, configure the API definition to enable logging and define the types of content to log. When logging payload data, you must also enable message buffering to ensure that all request and response data is captured.