logoAccess

List logs

GET
/api/v1/logs/

Returns a paginated list of log made with this merchant's API keys.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Query Parameters

cursor?string

Pagination cursor (log ID) from the previous response's next_cursor

limit?number

Number of records to return per page (1-100)

Range1 <= value <= 100
Default20
method?string
Value in"GET""POST""PATCH""DELETE"
status_code?number

Filter by HTTP response status code

endpoint?string

Filter by endpoint path (partial match)

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
data*array<>
has_more*boolean
next_cursor*string|null
curl -X GET 'https://api.tryaccess.xyz/api/v1/logs/' \  -H 'x-api-key: string'
{  "data": [    {      "id": "string",      "method": "string",      "endpoint": "string",      "status_code": 0,      "duration_ms": 0,      "ip_address": "string",      "user_agent": "string",      "trace_id": "string",      "request_id": "string",      "apikey_id": "string",      "created_at": "string"    }  ],  "has_more": true,  "next_cursor": "string"}

How is this guide?