Skip to main content
GET
/
v1
/
logs
List request logs
curl --request GET \
  --url https://api.scrip.dev/v1/logs \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "auth_type": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "duration_ms": 123,
      "error_code": "<string>",
      "id": "<string>",
      "method": "<string>",
      "path": "<string>",
      "request_id": "<string>",
      "route_pattern": "<string>",
      "status_code": 123
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "YWJjMTIz"
  }
}
Lists API request logs for your organization. Each log entry includes method, path, status_code, duration_ms, and the authentication type used for the request. Results are paginated and returned in reverse-chronological order by default. Filter by method, route_pattern, request_id, status code range, and time range. Use sort_by and sort_dir to order by created_at, duration_ms, or status_code. The route_pattern filter matches against the parameterized path template (e.g., /v1/participants/{id}), not the actual resolved URL, which makes it easier to aggregate logs for a specific endpoint.
For usage patterns and examples, see the Reporting guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Query Parameters

limit
integer

Max results per page (1-100, default 50)

Required range: x >= 1
cursor
string

Pagination cursor from previous response

method
string

Filter by HTTP method (e.g., GET, POST)

route_pattern
string

Filter by route pattern (e.g., /v1/events)

request_id
string

Filter by request ID (with or without req_ prefix)

auth_type
string

Filter by auth type (e.g., api_key, jwt)

status_min
integer

Minimum HTTP status code

status_max
integer

Maximum HTTP status code

from
string<date-time>

Start of time window (RFC 3339)

to
string<date-time>

End of time window (RFC 3339)

sort_by
enum<string>

Sort field

Available options:
created_at,
duration_ms,
status_code
sort_dir
enum<string>

Sort direction

Available options:
asc,
desc

Response

Paginated request logs

data
object[]

Data contains the list of items

pagination
object

Pagination contains cursor information for fetching more results