Authentication
How to authenticate your requests to the WalterAI 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.walterwrites.ai/api/humanizer/ \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"content": "Artificial intelligence has revolutionized numerous industries by automating complex tasks and improving business decisions. Organizations across healthcare, finance, and manufacturing now rely on machine learning models to analyze vast amounts of data, identify meaningful patterns, and generate accurate predictions. As these technologies continue to evolve, they are expected to deliver even greater efficiency, innovation, and value across the global economy."}'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. Select the scopes your key needs and copy the key immediately — it is shown only once.
For a detailed step-by-step guide, see API Keys.
Request Format
Requests must include:
| Header | Value | Required |
|---|---|---|
X-API-Key | Your API key | Yes |
Content-Type | application/json | Yes, for requests with a JSON body. File uploads use multipart/form-data |
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.