Base URL & authentication
2. Base URL
| Base URL | https://api.bonafide.ai |
| Protocol | HTTPS only — HTTP requests are rejected at the edge. |
All paths in this document are relative to the base URL above.
3. Authentication
Every request requires an API key issued by Bonafide. Keys are prefixed with bcp_ followed by a secure random suffix. Send the key on every request via either header — they are interchangeable:
| Header | Value |
|---|---|
X-API-Key | bcp_<your_secret_key> |
Authorization | Bearer bcp_<your_secret_key> |
Calls without a valid key return 401 Unauthorized.
curl -H "X-API-Key: bcp_<your_secret_key>" \
"https://api.bonafide.ai/api/v3/content/HO-XXXXXXXXXXXX/faq.json"Last updated on