Authentication
All API requests require authentication using an API key. Include your API key in the
X-API-Key header of every request.
Getting Your API Key
- Log in to your Cipres dashboard
- Navigate to Settings → API Keys
- Click Create API Key
- Give your key a descriptive name (e.g., "Production Server")
- Copy the key immediately — it won't be shown again
Security Warning: Never expose your API key in client-side code, public repositories, or logs. Always make API calls from your backend server.
Using Your API Key
Include the API key in the X-API-Key header:
cURL
curl https://cipres.tech/api/v1/users \
-H "X-API-Key: sk_a1b2c3d4..." \
-H "Content-Type: application/json" \
-d '{"project_id": 1, "users": [...]}' API Key Format
| Prefix | Description |
|---|---|
sk_ | API key prefix, followed by an 8-character identifier and full key |
Response Codes
Authentication errors return the following responses:
{
"status": "ok"
} Best Practices
- Use environment variables to store API keys
- Create separate keys for development and production
- Rotate keys periodically
- Delete unused keys from your dashboard
- Monitor your API usage for unusual activity