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

days?string

Time window: 'today', the last 7 days, or the last 30 days.

Default"7"
Value in"today" | "7" | "30"
endpoint?string

Filter logs to a single endpoint, e.g. /video.

page?integer

Zero-based page index. Page size is fixed at 50 entries.

Default0
Range0 <= value

Response Body

application/json

application/json

GET
/v1/logs
curl -X GET "https://example.com/v1/logs"
{  "success": true,  "requestId": "string",  "data": {    "logs": [      {        "id": "string",        "userId": "string",        "apiKeyId": "string",        "apiKeyName": "string",        "endpoint": "string",        "method": "string",        "status": "number",        "credits": "number",        "durationMs": "number",        "response": "string",        "createdAt": "string"      }    ],    "total": "number",    "page": "number",    "pageSize": "number",    "totalPages": "number",    "endpoints": [      "string"    ]  }}
{  "success": false,  "code": "UNAUTHORIZED",  "error": "string",  "details": null}