Authentication

Learn how to authenticate with the CaneToad API

Authentication

All API requests require authentication. The CaneToad API uses API tokens for authentication, providing secure access to your data.

Getting an API Token

Sign in to CaneToad

Go to canetoad.ai and sign in with your account.

Go to Settings → API Tokens in your account dashboard.

Create a Token

Click Create Token, optionally give it a name, and copy your token.

Make sure to copy your token immediately! It will only be shown once for security reasons.

Using Your Token

You can include your API token in requests using one of two methods:

Include your token in the Authorization header with the Bearer prefix:

curl -H "Authorization: Bearer ct_your_token_here" \
  https://api.canetoad.ai/api/v1/companies
const response = await fetch('https://api.canetoad.ai/api/v1/companies', {
  headers: {
    'Authorization': 'Bearer ct_your_token_here'
  }
});
import requests

response = requests.get(
    'https://api.canetoad.ai/api/v1/companies',
    headers={'Authorization': 'Bearer ct_your_token_here'}
)

Query Parameter

For use with spreadsheet applications (Google Sheets, Excel), you can include your token as a query parameter:

https://api.canetoad.ai/api/v1/companies?api_key=ct_your_token_here

Using query parameters exposes your token in URLs and logs. Use the header method when possible.

Token Security

Follow these best practices to keep your tokens secure:

  • Never share your API tokens publicly or commit them to version control
  • Rotate tokens periodically and revoke unused tokens
  • Use separate tokens for different applications
  • Store securely using environment variables or secret managers

Managing Tokens

You can manage your tokens at any time from your API Tokens settings page:

  • View all active tokens and their last usage
  • Create new tokens with descriptive names
  • Revoke tokens that are no longer needed

Token Format

All CaneToad API tokens follow this format:

ct_[base64url-encoded-random-string]

Example: ct_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0u1V2

The ct_ prefix makes it easy to identify CaneToad tokens and prevent accidental exposure.

Subscription Requirements

An active subscription is required to use the API. If your subscription expires:

  • API requests will return a 403 Forbidden error
  • Error code: SUBSCRIPTION_REQUIRED
  • Renew your subscription at canetoad.ai/pricing