Authorization

How to Authenticate with UpesiPay APIs

Authentication

UpesiPay 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:

Authorization: Basic YOUR_AUTH_TOKEN

Getting Your Auth Token

  1. Log in to your UpesiPay account
  2. Navigate to API Settings or Developer Settings
  3. Generate or copy your API authentication token
  4. Use this 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

Example

curl -X GET "https://upesipay.com/api/v2/payment_channels" \
  -H "Authorization: Basic YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json"

Tip: You can set your auth token in the sidebar of this documentation site and it will be automatically used in all API tests.

Was this page helpful?

Previous

Learn how to create and set up your account to start using UpesiPay APIs.

Creating Account

Next

Learn how to retrieve available payment channels for your account.

Get Payment Channels