Stophy

Logs

Return recent API request logs for the authenticated key.

Return recent API request logs for the authenticated key.

Authorization

bearerAuth
AuthorizationBearer <token>

API key from your dashboard. Prefix with Bearer in the Authorization header.

In: header

Query Parameters

limit?integer

Number of log entries to return.

Default20
Rangevalue <= 100
page?integer

Page number for pagination.

Default1

Response Body

application/json

application/json

GET
/v1/logs
curl -X GET "https://example.com/v1/logs"
{  "success": true,  "requestId": "string",  "cacheState": "hit | miss",  "creditsUsed": "number",  "creditsRemaining": "number",  "data": {    "logs": [      {        "id": "string",        "userId": "string",        "apiKeyId": "string",        "apiKeyName": "string",        "endpoint": "string",        "method": "string",        "status": "number",        "credits": "number",        "durationMs": "number",        "response": "string",        "createdAt": "string"      }    ]  }}
{  "success": false,  "code": "UNAUTHORIZED",  "error": "string",  "details": null}