Skip to main content
GET
/
logs
List API call logs
curl --request GET \
  --url https://app.tryspecter.com/api/v1/logs \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "path": "<string>",
      "url": "<string>",
      "http_method": "<string>",
      "http_status": 123,
      "status": "<string>",
      "query": {}
    }
  ],
  "total": 123
}

Authorizations

X-API-Key
string
header
required

Query Parameters

limit
number

The number of results to return, default is 50.

page
number

The page number of results to return, base 0, default is 0.

from
string<date-time>

Filter logs at or after this datetime (ISO 8601, e.g. 2024-06-01T00:00:00Z). Granularity up to the minute.

to
string<date-time>

Filter logs before or at this datetime (ISO 8601, e.g. 2024-06-30T23:59:00Z). Granularity up to the minute.

Response

A paginated list of API log entries.

items
object[]
required

The log entries for this page.

total
integer
required

Total number of log entries for the organization.