v1

latestOpenAPI 3.1.02026-07-1371926.0 KB
Request logs

Get Request Logs

Get request log data for an app. With pagination. Requests to endpoints that have been excluded in the dashboard are excluded here as well.

get/v1/apps/{app_id}/request-logs

Path parameters

app_idinteger required

App ID

App ID

Query parameters

app_env_idinteger nullable

Filter to environment ID, if provided.

Filter to environment ID, if provided.

consumer_idinteger nullable

Filter to consumer ID, if provided.

Filter to consumer ID, if provided.

methodstring nullable

Filter to HTTP method(s), comma-separated.

Example:GET,POST

Filter to HTTP method(s), comma-separated.

pathstring nullable

Filter to path pattern, supports wildcards (*).

Example:/api/v1/*

Filter to path pattern, supports wildcards (*).

status_codestring nullable

Filter to HTTP status code(s), comma-separated. Can include code classes (e.g., '4xx').

Example:2xx,400

Filter to HTTP status code(s), comma-separated. Can include code classes (e.g., '4xx').

startstring date-time nullable

Start date and time in ISO 8601 format. Defaults to 24 hours ago.

Example:2025-05-14T00:00:00Z

Start date and time in ISO 8601 format. Defaults to 24 hours ago.

endstring date-time nullable

End date and time in ISO 8601 format. Defaults to now.

Example:2025-05-15T00:00:00Z

End date and time in ISO 8601 format. Defaults to now.

limitinteger

Maximum number of records to return per page.

Maximum number of records to return per page.

next_tokenstring nullable

Token to fetch the next page of records, as returned by a previous request.

Token to fetch the next page of records, as returned by a previous request.

Response

Successful Response

has_moreboolean required

Whether there are more records to fetch.

next_tokenstring nullable required

Token to fetch the next page of records, if there are more.

Example response

{
  "data": [
    {
      "env": "prod",
      "consumer": "user-123",
      "method": "GET",
      "path": "/v1/users/{user_id}",
      "url": "https://api.example.com/v1/users/1",
      "status_code": 200,
      "client_ip": "203.45.123.67",
      "client_country_iso_code": "US"
    }
  ]
}