List Routes
GET /v1/routes
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
per_page | integer | 20 | Items per page (max 100) |
sort | string | created_at | Sort by: created_at, name, or enabled |
order | string | desc | Sort direction: asc or desc |
enabled | boolean | — | Filter by enabled status |
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Payment Gateway",
"target_base_url": "https://api.stripe.com/v1",
"base_environment": "production",
"enabled": true,
"requires_clients": false,
"collection_id": null,
"created_at": "2026-01-15T09:30:00.000Z",
"environment_override_count": 2,
"require_signature": false,
"rate_limit_enabled": true,
"rate_limit_requests": 100,
"rate_limit_window_sec": 60,
"allowed_methods": ["GET", "POST"]
}
],
"meta": {
"total": 24,
"page": 1,
"per_page": 20,
"total_pages": 2,
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
curl "https://api.knoxcall.com/v1/routes?page=1&per_page=20" \
-H "Authorization: Bearer tk_live_abc123..."
import requests
resp = requests.get(
"https://api.knoxcall.com/v1/routes",
params={"page": 1, "per_page": 20},
headers={"Authorization": "Bearer tk_live_abc123..."}
)
routes = resp.json()["data"]
const resp = await fetch("https://api.knoxcall.com/v1/routes?page=1&per_page=20", {
headers: { Authorization: "Bearer tk_live_abc123..." }
});
const { data: routes, meta } = await resp.json();