Authorization
Nyota Pay APIs use Basic Authentication. You need to include your authentication token in the Authorization header of each API request.
Basic Authentication
All API requests require authentication using Basic Auth. Include your auth token in the Authorization header:Getting Your Basic Auth Token
- Log in to your Nyota Pay account
- Navigate to API Keys menu
- Click Add new API Key
- Enter a name for your API Key
- Click Create API Key
- Copy the Basic Authorization token
- Use this Basic Authorization token in the Authorization header for all API requests
Security Best Practices
- Keep your auth token secure and never share it publicly
- Use environment variables to store your token
- Rotate your token regularly
- Never commit your token to version control systems