/health) must include an Authorization header carrying a valid API key.
Create an API key
- Open the Replyful dashboard.
- Navigate to Settings → Developers → API keys.
- Click Create key, give it a descriptive name (e.g. “Production webhook handler”), and pick a mode and an access level.
- Copy the token immediately and store it in your secret manager.
Key modes
Each key is created in one of two modes, identifiable from the prefix:Access levels
Each key has an access level, chosen when you create it:
Keys created before access levels existed are Read & write. Signing in to the MCP server with OAuth requires the Admin role and gives full access, the same as a Read & write key.
Pick Read only unless the integration needs to change something: a leaked read-only key cannot alter your data.
Every key belongs to exactly one organization. Cross-organization access is impossible by construction — a key only ever sees data from the org it was created in.
Use the key
Send the token in theAuthorization header on every request, prefixed with Bearer :
Security best practices
- Server-side only. Call the API from your backend. Never ship a key to a browser or mobile bundle.
- Use environment variables. Read the key from
process.env(or your secret manager). Never hardcode it. - Header, not URL. Bearer tokens belong in the
Authorizationheader — never in a query string, where they end up in access logs and referrer headers. - Rotate on suspicion. Keys can be archived from the dashboard. Create a new one, deploy it, then archive the old one.
- One key per integration. Use separate keys for separate consumers so you can rotate or revoke them independently.
Authentication errors
Authentication failures return HTTP401 with a consistent envelope:
See Errors for the full error envelope reference.