Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.throttlr.yashjejurkar.me/llms.txt

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

POST /rules/create-rule
Headers: Authorization: Bearer <token> Request body:
{
  "name": "send_email",
  "limit": 10,
  "window": 3600,
  "algorithm": "FIXED_WINDOW",
  "apiKeyId": "api_key_id_here"
}
Response (201):
{
  "id": "rule_abc123",
  "name": "send_email",
  "limit": 10,
  "window": 3600,
  "algorithm": "FIXED_WINDOW",
  "apiKeyId": "api_key_id_here",
  "tenantId": "tenant_xyz",
  "createdAt": "2026-03-22T14:39:47.730Z"
}
Errors:
CodeReason
400Missing fields or validation error
409Rule with this name already exists for this project