All API requests require authentication using an API key. Learn how to generate and use your keys securely.
Include your API key in the Authorization header of every request.
Authorization: Bearer YOUR_API_KEYcurl -X POST https://api.nextcraftai.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{...}'Security Note: Never expose your API key in client-side code or public repositories. Always use environment variables or secure key management systems.
Create and manage your API keys from the dashboard.
Common authentication errors and how to resolve them.
401 - AUTHENTICATION_ERRORInvalid or missing API key. Check that your key is correct and included in the Authorization header.
403 - FORBIDDENYour API key doesn't have permission for this operation, or your account has been suspended.