Authentication

The Rulebook Company API uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard.

API Keys

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Keep your API keys secure and never commit them to version control.

Authentication Method

Authentication to the API is performed via Bearer token in the request header. Provide your API key in the Authorization header:
curl https://api.rulebook.company/v1/endpoint \
  -H "Authorization: Bearer YOUR_API_KEY"

Request Format

All API requests must be made over HTTPS. Calls made over plain HTTP will fail.
{
  "headers": {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  }
}

Security Best Practices

Rotate Keys Regularly

Update your API keys periodically to maintain security

Use Environment Variables

Store API keys in environment variables, never in code

Limit Key Scope

Create separate keys for different environments

Monitor Usage

Track API key usage in your dashboard

Getting Your API Key

Contact Sales for API Access - To obtain your API authorization token, please contact our sales team at sales@rulebook.company or through our website.
Once you receive your API credentials:
  1. Log in to your Dashboard
  2. Navigate to Settings → API Keys
  3. Click “Create New API Key”
  4. Copy your key and store it securely
You can create multiple API keys for different applications or environments.