Comprehensive authentication endpoints for JWT tokens, OAuth providers, API keys, and user management
Authorization: Bearer {token}
header or an API key in the X-API-Key:{" "} {api_key}
header.Endpoint | Rate Limit | Window | Notes |
---|---|---|---|
/auth/initiate-registration | 5 requests | 1 minute | Prevents spam registrations |
/auth/verify-registration | 10 requests | 1 minute | Prevents code brute force |
/auth/forgot-password | 3 requests | 1 hour | Prevents email flooding |
/auth/reset-password | 5 requests | 1 hour | Prevents token brute force |
401 Unauthorized - Invalid Credentials
401 Unauthorized - Token Expired
401 Unauthorized - Invalid Token
404 Not Found - User Not Found
400 Bad Request - Email Already Registered
400 Bad Request - Invalid Verification Code
400 Bad Request - Verification Code Expired
400 Bad Request - Too Many Signups
400 Bad Request - Unsupported Provider
400 Bad Request - OAuth Verification Failed
400 Bad Request - CAPTCHA Required
400 Bad Request - Invalid CAPTCHA
400 Bad Request - Password Recently Used
400 Bad Request - Invalid Password
429 Rate Limited
500 Internal Server Error - System Error
422 Validation Error - Invalid Input
Header | Description | Example |
---|---|---|
X-Captcha-Required | CAPTCHA verification needed | "true" |
X-RateLimit-Limit | Request limit per window | 5 |
X-RateLimit-Remaining | Remaining requests in window | 4 |
X-RateLimit-Reset | Window reset timestamp | 1640995200 |
Retry-After | Seconds to wait when rate limited | 60 |
Scope | Description |
---|---|
voice:read | List and read voice data |
voice:write | Create and modify voices |
voice:generate | Generate speech with voices |
music:read | Access music generation data |
music:generate | Generate music content |
translation:use | Use translation services |
account:read | Read account information |
account:write | Modify account settings |
credits:read | View credit balance |
admin:* | Administrative access |
voice:write
includes voice:read
admin:*
includes all scopesaccount:write
includes account:read