logoAccess

Get log

GET
/api/v1/logs/{id}

Returns a single log entry by ID.

Authorization

apiKeyHeader
headerx-api-key<token>

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

Path Parameters

id*string

Unique log entry ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
method*string
endpoint*string
status_code*number
duration_ms*number
ip_address*string
user_agent*string
trace_id*string
request_id*string
apikey_id*string
created_at*string
curl -X GET 'https://api.tryaccess.xyz/api/v1/logs/log_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string'
{  "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"}

How is this guide?