---
title: "Search & list API Logs"
method: GET
path: "/payment/api/logs"
tags: ["APILogs"]
---

# Search & list API Logs

`GET /payment/api/logs`

Fetch a list of API Logs for the given query parameters.

## Query parameters

- `filter[requestId]` string
- `filter[endpointUrl]` string
- `filter[statusCode]` string
- `filter[method]` string
- `filter[createdAt]` string
- `page[cursor]` string — Cursor for paging results.
- `page[after]` string — Cursor for paging results.
- `page[before]` string — Cursor for paging results.
- `page[size]` integer

## Response `200`

Success.

- object
  - `paging` object — Paging information about the results.
    - `next` string
  - `results` object[] — List of results for the query.
    - `id` string, uuid — Unique identifier of the API Log event in Payrails.
    - `createdAt` string, date-time — Exact date and time when the API Log event happened.
    - `requestID` string, uuid — Unique identifier of the API request.
    - `method` string — Request HTTP method.
    - `statusCode` number — Response HTTP code number.
    - `rawRequest` string — Serialized raw request.
    - `rawResponse` string — Serialized raw response.

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Insufficient Scope.
- `429` — Too Many Requests.

---

[API](https://skmtc.net/payrails/apis/payrails-api-reference.md) · [All operations](https://skmtc.net/payrails/apis/payrails-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payrails/payrails-api-reference/revisions/9dd2f0158582/schema)
