# Secure Access to EnKash's APIs


### <span style="color:#7b2cbf">API Endpoints</span>

| **Environment** | **Base URL** |
|---------------|-------------|
| **Test** | `https://pay-uat.enkash.in` |
| **Live** | `https://pay.enkash.in` |

### <span style="color:#7b2cbf">Authentication API</span>
| **API Name** | **Function** |
|-------------|------------|
| [Auth Token](api-13409509) | Retrieves an authentication token for API requests |

:::note[]
The authentication token must be passed as a **Bearer Token** in the`Authorization`header for all API requests
:::
:::info[]
Follow the encryption and decryption steps provided [here](doc-821725) to implement secure communication  
:::

### <span style="color:#7b2cbf">List of common parameters</span>

| **Field Name** | **Description** |
|--------------|----------------|
| `companyId` | Unique EnKash **Company ID** assigned after onboarding |
| `cardAccountId` | Unique EnKash **Account ID** assigned after onboarding |
| `partnerId` | Unique **Partner ID** assigned after onboarding |
| `enkashCardId` | Unique **Card ID** generated for each EnKash Card |
| `enkashCardTransactionId` | Unique **Transaction ID** assigned to each EnKash transaction |
| `Authorization` | **Bearer Token** required for each API request (obtained from Partner Auth Token API) |
| `userId / ekUserId` | Unique **User ID** associated with each EnKash user |

