Learn how to authenticate API requests
Antinium uses API keys for authentication. Each API key is associated with your account and workspace, and has specific permissions.
Important: API keys are only shown once when created. If you lose a key, you'll need to create a new one and revoke the old one.
Include your API key in the Authorization header of all requests:
Authorization: Bearer YOUR_API_KEY
curl -X GET https://api.antinium.dev/v1/documents \ -H "Authorization: Bearer ant_1234567890abcdef"
const response = await fetch('https://api.antinium.dev/v1/documents', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});Can read documents, translations, and workspace data. Cannot create, update, or delete anything.
Can read and modify documents, create translations, and manage content. Cannot manage workspace settings or members.
Complete access to all API endpoints, including workspace management. Use with caution.
You can see all your API keys in Settings → API Keys. The keys themselves are masked for security (only the last 4 characters are shown).
You can rename API keys to better organize them (e.g., "Production", "Staging", "Development").
Authentication errors return a 401 status code:
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}Common authentication errors: