Personal Access Tokens
Personal Access Tokens allow you to securely access Zerops programmatically. You can create and manage multiple tokens for different applications or purposes.Creating a Token
- Log in to the Zerops GUI
- Navigate to Access Token management
- Click “Generate a new access token”
- Copy and securely store your token (it will only be shown once)
Managing Tokens
You can view and delete your access tokens at any time from the Access Token management page. Deleting a token will immediately revoke its access.Using Access Tokens
Include your Personal Access Token in theAuthorization header of your API requests using the Bearer authentication scheme:
Example Request
Here’s a complete example using cURL to authenticate and make a request:Example with Different Languages
Authentication Errors
If authentication fails, you’ll receive one of the following error responses:The token is missing, invalid, or has been revoked. Check that you’re including the correct token in the Authorization header.
The token is valid but doesn’t have permission to access the requested resource.
Best Practices
Store tokens securely
Store tokens securely
- Use environment variables or secure vault services
- Never hardcode tokens in your source code
- Don’t commit tokens to version control
Rotate tokens regularly
Rotate tokens regularly
- Create new tokens periodically
- Delete old or unused tokens
- Use different tokens for different applications
Monitor token usage
Monitor token usage
- Track which applications use which tokens
- Immediately revoke tokens if compromised
- Review active tokens regularly
Next Steps
Explore API Endpoints
Now that you know how to authenticate, explore the available API endpoints