Skip to main content

API usage metrics

Overview of API Usage

To view the API usage, follow these steps:

  1. Open Insights > Metrics.
  2. Select API Usage tab.
  3. On this page, you can monitor the following metrics:

Filter data for different APIs

Choose the API you want to monitor from the API drop-down list. You will see the names of the APIs created via. Studio in this dropdown.

Export/Download API data

To download API usage metrics:

  1. Select the API name.
  2. Click the Export button.
  3. Choose the desired API report file(s) you would like to download. To download all the metrics, click the last link. Available options include:
    • API request rate
    • API usage by status code
    • API response rate
  4. Click Export.

Filter API data for a time period

All metrics can be filtered and viewed for a specific time period. Select the time range from the dropdown menu, such as last 7 days or last 90 days.

  • If you want to see metrics for a custom range, click Custom and select the desired range.
drawing

View API usage

The graph below displays API usage categorized by different status codes. This data is calculated on an API level.

Different status codes and their meaning:

  • 200 - Success
  • 201 - Created
  • 400 - Bad request
  • 403 - Forbidden
  • 404 - Not found
  • 500 - Internal Server error
  • 504 - Gateway timeout
drawing

View API request rate

This graph displays the API request rate, which represents the number of API requests made by the bot to other systems in order to retrieve information needed for accurate user intent responses.

drawing

View API latency

API latency measures the amount of time it takes for an API to respond when called from the bot. This metric indicates the speed at which users receive the desired information. Examples include:

  • Track their order
  • Place a refund request
  • Place and order
  • Submit a sales lead
drawing