careCycle

Authentication

How to authenticate with the CareCycle API

All API requests require authentication using an API key. Include your API key in the x-api-key header:

x-api-key: YOUR_API_KEY

Obtaining API Keys

Production Keys

API keys for production use can be generated from the Developer Dashboard:

  1. Log in and navigate to the API Keys page
  2. Click Create API Key
  3. Give your key a descriptive name and select the appropriate permissions
  4. Copy and securely store your API key — it will only be shown once

Keep your API keys secure. Do not share them in public repositories, client-side code, or expose them in logs. If you believe a key has been compromised, revoke it immediately and generate a new one.

Testing in the API Playground

You can generate a temporary API key directly from the API reference pages to quickly test endpoints in the interactive playground.

  1. Make sure you are logged in.
  2. Navigate to any API reference page (e.g., List Campaigns)
  3. Open the Authorization section in the playground
  4. Click Generate API Key
  5. If you belong to multiple organizations, select which one to create the key for

Playground keys expire after 14 days and are intended for testing only. For production integrations, generate a key from the Developer Dashboard.

Rate Limiting

API requests are limited to 60 requests per minute.

If you exceed the rate limit, you'll receive a 429 Too Many Requests response:

{
  "message": "Rate limit exceeded",
  "code": "RATE_LIMIT_EXCEEDED",
  "retryAfter": 60
}

Error Codes

All error responses follow a consistent format:

{
  "message": "<string>",
  "code": "<string>"
}
CodeDescription
UNAUTHORIZEDInvalid or missing API key
FORBIDDENAPI key lacks required permissions
NOT_FOUNDRequested resource does not exist
VALIDATION_ERRORRequest body failed validation
RATE_LIMIT_EXCEEDEDToo many requests
INTERNAL_ERRORServer error — contact support if persistent

On this page