Authentication Overview
The V3 APIs follow the standard OAuth 2.0 protocol, supporting both password and client credential grants for secure access to Beeye's platform.
Password Grant
Use your username and password to authenticate with the APIs. Perfect for user-specific operations and testing.
Content-Type: application/x-www-form-urlencoded
Client Credentials
Server-to-server authentication using fixed keys that don't change with user password updates. Ideal for automated integrations and background processes.
To obtain your keys:
- Navigate to "My settings" in Beeye
- Click "Get OAuth keys"
- Securely store your generated keys
Content-Type: application/x-www-form-urlencoded
Token Response
Both authentication methods return a JSON response with your access credentials:
- AccessToken: Your authentication token for API calls
- TokenType: Bearer (standard OAuth 2.0 format)
- ExpiresIn: Token lifetime in seconds
- UserName: Confirmation of authenticated user
- Expires: Exact expiration timestamp (ISO format)
The response also includes an HTTP cookie with your refresh token for seamless token renewal.
Token Usage & Management
Making API Calls:
Token Renewal:
- Refresh tokens 2-3 minutes before expiration
- Refresh tokens are valid for ~23 hours
- Long-running requests won't fail if token was valid at start