> ## Documentation Index
> Fetch the complete documentation index at: https://handbook.nyotaimara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorization

How to authenticate with Nyota Pay APIs

<Card title="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:

  ```text theme={null}
  Authorization: Basic YOUR_AUTH_TOKEN
  ```

  ### **Getting Your Basic Auth Token**

  1. Log in to your Nyota Pay account
  2. Navigate to API Keys menu
  3. Click Add new API Key
  4. Enter a name for your API Key
  5. Click Create API Key
  6. Copy the Basic Authorization token
  7. 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

  ### **Example**

  ```text theme={null}
  curl -X GET "https://api.nyotaimara.com/api/v1/payment_channels"   -H "Authorization: Basic YOUR_AUTH_TOKEN"   -H "Content-Type: application/json"
  ```
</Card>
