API Key Authentication
All API requests must be authenticated using your API key. You can find your API key in the Payviox Dashboard under the Developer section.Using the API Playground
Each endpoint in this documentation includes an interactive playground where you can test API calls directly from your browser.1
Get Your API Key
Copy your API key from the Payviox Dashboard
2
Open an Endpoint
Navigate to any endpoint page (e.g., Create Session)
3
Enter Your API Key
In the playground on the right, paste your API key in the Authorization field
4
Fill Request Body
Complete the required parameters in the request body
5
Send Request
Click Send to test the API call in real-time
How to Authenticate
Include your API key in theAuthorization header of each request:
Example Request
API Key Management
Getting Your API Key
- Log in to your Payviox Dashboard
- Navigate to Developer > API Keys
- Copy your production API key
Regenerating API Keys
If your API key has been compromised, you can regenerate it from the dashboard:1
Access Developer Settings
Go to Developer > API Keys in your dashboard
2
Regenerate Key
Click Regenerate API Key
3
Update Your Integration
Update your integration with the new API key
Error Responses
If authentication fails, you’ll receive one of the following responses:Missing Authorization Header
Invalid API Key
Expired API Key
Best Practices
Use Environment Variables
Store your API keys in environment variables, never hardcode them
Different Keys for Different Environments
Use separate API keys for development, staging, and production
Rotate Keys Regularly
Periodically regenerate your API keys for enhanced security
Monitor Usage
Keep track of your API usage in the dashboard