Track API usage and request logs

Updated

Who can do this: Super Admins and Creators

The Usage tab shows how many API credits your organization has used against its monthly allocation. The Logs tab lists recent API requests, so you can find a failed call and see why.

Check credit usage

  1. Go to Settings > API. If your Settings menu is grouped into sections, select API & webhooks, then the API tab.

  2. Select the Usage tab.

  3. Choose This period or Last period.

The page shows:

  • Monthly credits: credits used out of your allocation, credits remaining, and the date the allocation resets. When the allocation is used up, it reads "Allocation exhausted — further calls are rejected."

  • Remaining: credits left this period.

  • Run rate: credits used per day, averaged over the days of the period so far.

  • Projected: the credits you'd use by the end of the period at the current run rate, and that figure as a share of your allocation.

  • Usage over time: credits consumed over 7, 30 or 90 days. Select Compare to add the previous window as a reference line.

  • Where credits go: credits by endpoint, with each endpoint's share, errors and Response time (p95). That figure means 95% of calls finished faster.

  • By key: credits, share and errors for each API key.

The line at the top of the tab says how many credits one request uses. Some requests never count against your allocation. The tab lists them at the bottom.

To download the figures, select Export CSV.

Find a request in the logs

  1. On the API page, select the Logs tab.

  2. Choose a time range, from Last hour to Last 90 days.

  3. Narrow the list:

    • Search by path, request ID or error.

    • Filter by Method, Status (2xx, 4xx or 5xx) or Key.

  4. Select a request to open its details.

Each row shows the timestamp, key, method, path, status and duration. Tiles at the top of the tab show the number of requests, the error rate and the p95 response time for the range you chose.

A request's details show its timestamp, duration, API key and request ID, with Request, Response and Headers tabs. Select Copy request as cURL to reproduce it. The copied command has a placeholder where your API key goes.

To download the requests that match your filters, select Export. The CSV file has one row per request, up to 10,000 rows. Each row has the timestamp, method, URL, route, status, response time, key name, request ID and error message.

More in Webhooks & API