Skip to main content

Documentation Index

Fetch the complete documentation index at: https://houseofdragon-079a8546.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Base URL

https://api.throttlr.dev

Authentication

All SDK-facing endpoints use API key authentication via the x-api-key header:
x-api-key: sk_live_your_key_here
All dashboard-facing endpoints (projects, rules, logs) use JWT Bearer tokens:
Authorization: Bearer <jwt_token>

Rate Limit Check Endpoint

This is the primary endpoint the SDK calls internally.
POST /sdk/check
Request body:
{
  "identifier": "user_123",
  "rule": "send_email"
}
Response (200 Allowed):
{
  "allowed": true,
  "count": 3,
  "limit": 10,
  "remaining": 7,
  "rule": "send_email",
  "identifier": "user_123"
}
Response (429 Blocked):
{
  "allowed": false,
  "count": 10,
  "limit": 10,
  "remaining": 0,
  "rule": "send_email",
  "identifier": "user_123"
}

Error Format

All errors follow this shape:
{
  "error": {
    "code": "RULE_NOT_FOUND",
    "message": "No rule named 'send_emial' found for this tenant"
  }
}
HTTP StatusMeaning
400Missing or invalid request fields
401Missing or invalid API key
404Rule not found
429Rate limit exceeded
500Internal server error