Complete HTTP API documentation for direct integration
All API requests must be authenticated using an API key sent in the X-Api-Key header.
# Example request with authentication
curl -X GET \
-H "X-Api-Key: your_api_key_here" \
-H "Accept: application/json" \
"https://api.killswitchguardian.com/v1/killswitch?customerId=cust_12345"
The primary endpoint for checking customer entitlement status.
GET https://api.killswitchguardian.com/v1/killswitch
| Parameter | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | Unique customer identifier |
{
"allowed": true,
"message": "Active subscription",
"expiresAt": "2024-12-31T23:59:59Z",
"signature": "a1b2c3d4e5f6...",
"cacheTtl": 3600
}
Endpoints for managing customer accounts and status.
POST https://api.killswitchguardian.com/v1/customers
PATCH https://api.killswitchguardian.com/v1/customers/{customerId}
{
"status": "active", // active, suspended, inactive
"expiresAt": "2024-12-31T23:59:59Z"
}
| Code | Message | Description |
|---|---|---|
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Invalid or missing API key |
| 404 | Not Found | Customer or resource not found |
| 429 | Rate Limit Exceeded | Too many requests |
| 500 | Internal Server Error | Server-side error |
API requests are rate-limited to ensure service stability.
100
Requests per minute (per API key)
1,000
Requests per hour (per API key)
10,000
Requests per day (per API key)
Rate limit information is included in response headers:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1640995200