Skip to main content

List API Keys

Response

ApiKey[]
Array of API key objects

Example Request

Example Response


Create API Key

Request Body

string
required
Descriptive name for the API key (1-100 characters)

Response

ApiKey
The created API key object with full key value
string
Security warning about saving the key

Example Request

Example Response

The full API key is only shown once during creation. Store it securely as you cannot retrieve it again. If you lose the key, you must create a new one.

Errors

  • 403 Forbidden - API key limit reached for your plan
  • 400 Bad Request - Invalid input data

Plan Limits

  • Free: 2 API keys
  • Starter: 5 API keys
  • Growth: 20 API keys

Delete API Key

Path Parameters

string
required
API key ID

Response

ApiKey
The revoked API key object
string
Confirmation message

Example Request

Example Response

Errors

  • 404 Not Found - API key not found or user doesn’t own it
  • 400 Bad Request - API key already revoked

Best Practices

  1. Rotation: Regularly rotate API keys for security
  2. Naming: Use descriptive names to identify key purposes
  3. Least Privilege: Create separate keys for different environments (production, staging, development)
  4. Monitoring: Track key usage through requests_today and requests_month fields
  5. Revocation: Immediately revoke keys if compromised

Using API Keys

Include your API key in the Authorization header of all API requests:
Or use it as a query parameter (less secure):
The header method is strongly recommended for security. Query parameters may be logged in server access logs.