Spavik
API referenceUsage and plans

List API requests

GET /v1/requests

Download OpenAPI
GET
/v1/requests

Authorization

apiKey
headerX-Spavik-Api-Key<token>

Spavik integration API key (sk-spv-api-...), sent in X-Spavik-Api-Key.

Query Parameters

from?string
Formatdate
to?string
Formatdate
status?string
Value in"all""error"
limit?integer

Calls per page.

Range1 <= value <= 500
Default100
cursor?string

next_cursor from the preceding page. Send the same from, to and status: the cursor only marks where the previous page stopped.

Lengthlength <= 512

Header Parameters

User-Agent?string

Information about the agent originating the request, when known. Browsers supply their own value. Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 1024
X-Spavik-Client-Name?string

HTTP caller: SDK, MCP server or direct application (for example spavik-sdk-python, spavik-sdk-javascript or spavik-mcp). Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 128
X-Spavik-Client-Version?string

Version of that SDK, MCP server or direct application. Optional diagnostic metadata, declared by the caller and never used for authorization. Omit unknown values. Values are trimmed and truncated to the documented length.

Lengthlength <= 64

Response Body

Success

application/json
  1. response
window?
n_requests?integer

Calls in this page.

next_cursor?string

Pass it as cursor to read the next, older page. Null on the last page.

requests?array<>
import requestsurl = "https://api.spavik.co/v1/requests"response = requests.request("GET", url)print(response.text)
{  "window": {},  "n_requests": 0,  "next_cursor": "string",  "requests": [    {      "request_id": "string",      "at": "2019-08-24T14:15:22Z",      "method": "string",      "path": "string",      "status": 0,      "error": {        "code": "string",        "detail": "string"      },      "duration_ms": 0,      "workspace_id": "string",      "api_key_id": "string",      "billing_user_id": "string",      "actor_user_id": "string",      "auth_method": "jwt",      "client_ip": "string",      "user_agent": "string",      "client_name": "string",      "client_version": "string"    }  ]}

How is this guide?

Last updated on