The Replyful API uses bearer-token authentication. Every request (exceptDocumentation Index
Fetch the complete documentation index at: https://docs.replyful.com/llms.txt
Use this file to discover all available pages before exploring further.
/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.
- 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:| Prefix | Mode | When to use |
|---|---|---|
rfl_live_ | Live | Production servers acting on real data. |
rfl_test_ | Test | Development and CI. Reserved for sandbox isolation in the future. |
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:
| Code | When it fires |
|---|---|
missing_api_key | The Authorization header is absent or does not start with Bearer . |
invalid_api_key | The token is malformed (does not match rfl_(live|test)_...), unknown, or has been archived. |