Authentication
How to authenticate your requests to the Proofademic API using API keys.
API Key Authentication
All API requests must include your API key in the X-API-Key HTTP header.
curl -X POST https://developer-portal.proofademic.ai/api/detector/ \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"content": "Your text here"}'If the header is missing or the key is invalid, the API returns 401 Unauthorized.
Getting an API Key
Create an API key in the Developer Portal on the API Keys page. For a detailed step-by-step guide, see API Keys.
Request Format
All requests must include:
| Header | Value | Required |
|---|---|---|
X-API-Key | Your API key | Yes |
Content-Type | application/json | Yes (for POST requests) |
Security Best Practices
- Never expose your API key in client-side code, public repositories, or logs.
- Use environment variables or a secrets manager to store keys.
- Create separate keys for development and production environments.
- Set expiration dates and revoke keys that are no longer in use.