🔗 Console REST APIRequest Logs

Gets raw request logs with flexible filtering for the current organization

Returns raw request log entries for your organization with flexible filtering options. Use for detailed analysis, UI display, and export. Status code filtering: 1-digit (e.g., '4') for 4xx range, 2-digit (e.g., '40') for 40x range, 3-digit (e.g., '404') for exact match.

GET
/api/request-logs/query
Authorization<token>

API Key is required to access the endpoints

In: header

Query Parameters

apiKeyId?string

Optional API key ID filter

Formatuuid
traceId?string

Optional trace ID filter

service?string

Optional service name filter

route?string

Optional route filter

statusCode?string

Optional status code filter (1-digit: 4xx range, 2-digit: 40x range, 3-digit: exact match)

timeStart?string

Start time for the query range

Formatdate-time
timeEnd?string

End time for the query range

Formatdate-time
minutes?integer

Minutes back from now (alternative to timeStart/timeEnd)

Formatint32
limit?integer

Maximum number of records to return

Default1000
Formatint32

Response Body

curl -X GET "https://api-console.apibricks.io/api/request-logs/query"

{
  "hostname": "api-server-01",
  "service": "coinapi-rest",
  "environment": "production",
  "eventDate": "2024-01-15T00:00:00.0000000Z",
  "eventTime": "2024-01-15T14:30:25.0000000Z",
  "eventTimeMicroseconds": "2024-01-15T14:30:25.1234560Z",
  "requestStartTime": "2024-01-15T14:30:25.0000000Z",
  "requestStartTimeMicroseconds": "2024-01-15T14:30:25.1234560Z",
  "requestDurationMs": 145,
  "timeToFirstByteMs": 0,
  "serverToClientDurationMs": 0,
  "httpMethod": "GET",
  "scheme": "https",
  "isSecure": 1,
  "host": "rest.coinapi.io",
  "path": "/v1/exchanges",
  "route": "/v1/exchanges",
  "queryString": "filter_exchange_id=BINANCE",
  "requestUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
  "requestReferer": "https://coinapi.io",
  "requestContentType": "application/json",
  "requestXForwardedFor": "203.0.113.195",
  "requestBytes": 512,
  "idempotencyKey": "idmp_7f9a8b2c1d3e4f5g",
  "userId": "user_12345",
  "organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "apiKeyId": "f1e2d3c4-b5a6-9879-8765-4321dcba0987",
  "authSubject": "user:12345",
  "authScopesCsv": "read:exchanges,read:assets",
  "requestId": "req_7f9a8b2c1d3e4f5g",
  "traceId": "trace_1a2b3c4d5e6f7890",
  "spanId": "span_9876543210abcdef",
  "parentSpanId": "span_fedcba0987654321",
  "logComment": "Exchange data request",
  "tagsCsv": "api:v1,endpoint:exchanges",
  "clientIp": "203.0.113.195",
  "clientPort": 54321,
  "tlsProtocol": "TLSv1.3",
  "tlsCipher": "TLS_AES_256_GCM_SHA384",
  "mtlsPeerFingerprint": "SHA256:abcd1234...",
  "rateLimitBucket": "api_key_daily",
  "rateLimitLimit": 10000,
  "rateLimitRemaining": 9847,
  "rateLimitResetTime": "2024-01-16T00:00:00.0000000Z",
  "statusCode": 200,
  "statusFamily": 0,
  "responseContentType": "application/json",
  "responseBytes": 2048,
  "responseBytesCompressed": 0,
  "localPort": 0,
  "remotePort": 0,
  "clientCertificatePresent": 0,
  "requestHeadersSize": 0,
  "responseHeadersSize": 0,
  "connectionReused": 0,
  "requestAborted": 0,
  "upgradeRequested": 0,
  "hasRequestBody": 0,
  "requestHeadersValid": 0
}

Empty
Empty
Service StatusGitHub SDK