API Token Managament
API Token Managament
API tokens are essential for authenticating your requests to the Miqey API. This section covers how to create, manage, and use API tokens securely through the web interface.
Creating API Tokens
Generate new API tokens through the account management interface. These tokens provide secure access to the API and can be customized with descriptive names for easy identification.
Navigate to Profile Page: Go to https://app.miqey.com/app/{application_id}/account-management in your web browser
API Tokens Section: Look for the "API Tokens" section
Generate New Token:
Enter a descriptive name for your token (e.g., "API Testing", "Production API")
Click "Generate Token"
Important: Copy the generated token immediately as it will only be shown once
Manage API Tokens
Monitor and control your API tokens through the web interface. This includes viewing usage statistics and revoking tokens when they're no longer needed.
View Existing Tokens
All your API tokens are listed in the profile page
You can see:
Token name
Creation date
Last used date (if applicable)
Revoke Tokens
Click the "Revoke" button next to any token
Confirm the revocation
The token will be immediately invalidated
Using API Tokens
Include your API token in the Authorization header of all API requests to authenticate your calls and access the API endpoints.
curl -H "Authorization: Bearer your_api_token_here" \
-H "Content-Type: application/json" \
Security Best Practices
Follow these guidelines to maintain the security of your API tokens and protect your account from unauthorized access.
Keep tokens secure: Never share API tokens in public repositories or logs
Use descriptive names: Name your tokens clearly to identify their purpose
Rotate regularly: Regenerate tokens periodically for security
Revoke unused tokens: Remove tokens that are no longer needed
Use HTTPS: Always make API requests over HTTPS