Authentication
The Voyager API uses token-based authentication. You authenticate with your username (email) and password to receive an access token, which you then use for all subsequent API requests.Authentication Method
The Voyager API uses a simple token-based authentication flow:- Login - Authenticate with your email and password
- Receive Token - Get an access token from the login response
- Use Token - Include the token in the Authorization header for all API requests
Token Authentication
Token authentication is the standard method for API access. It’s simple, secure, and works well for automated scripts and integrations.Getting Your Token
Authenticate with your email and password to receive a token:- Python
- curl
Using Your Token
Include the token in theAuthorization header:
- Python
- curl
Token Lifetime
Tokens expire after a period defined byTOKEN_LIFETIME_HOURS (typically 24 hours). When a token expires:
- You’ll receive a
401 Unauthorizedresponse - Re-authenticate to get a new token
- Update your requests with the new token
Logging Out
To invalidate a token before it expires:- Python
- curl
Security Best Practices
1. Never Commit Credentials
Never commit API credentials to version control:2. Use Environment Variables
Set credentials as environment variables: Windows (PowerShell):3. Rotate Tokens Regularly
- Log out when done with a session
- Use new tokens for each session
- Don’t reuse tokens across multiple applications
4. Handle Token Expiration
Implement token refresh logic:5. Use HTTPS Only
Always use HTTPS endpoints. Never send credentials over HTTP.Error Responses
401 Unauthorized
Invalid or expired token:403 Forbidden
Valid token but insufficient permissions:API Access Requirements
To use the Voyager API, you need:- A Lumafield account - Sign up at voyager.lumafield.com
- API access enabled - Contact support@lumafield.com to enable API access
- Required capabilities - Some endpoints require specific capabilities (e.g.,
PROJECT_DATA_EXPORT)
Next Steps
- Making Your First Request - Learn how to make API calls
- API Reference - Authentication - Complete authentication endpoint reference
- Error Handling - Learn about error responses