# Get Master Token

Log in with your AlgoDeltaFX credentials to get a master token for the Master API.

`POST https://api.algodeltafx.com/api/v1/auth/userlogin`

- API: Master API (v1)
- Authentication: None. This endpoint issues the master token.

Exchange your AlgoDeltaFX dashboard email and password for a master token (JWT). Every other Master API call sends this token in the `Authorization` header.

## Request body (JSON)

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `email` | string | yes |  | Your AlgoDeltaFX login email. |
| `password` | string | yes |  | Your AlgoDeltaFX login password (not an MT5 password). |
| `domain` | string | yes |  | Always `https://algodeltafx.com`. White-label platforms use their own domain. |

## Example: cURL

```bash
curl -X POST https://api.algodeltafx.com/api/v1/auth/userlogin \
  -H "Content-Type: application/json" \
  -d '{
  "email": "you@example.com",
  "password": "YOUR_PASSWORD",
  "domain": "https://algodeltafx.com"
}'
```

## Example: Python

```python
import os
import requests

res = requests.post(
    "https://api.algodeltafx.com/api/v1/auth/userlogin",
    json={
        "email": "you@example.com",
        "password": "YOUR_PASSWORD",
        "domain": "https://algodeltafx.com"
    },
    timeout=30,
)
data = res.json()
print(data["status"], data.get("msg"), data.get("data"))
```

## Response

Standard envelope: `status` (boolean), `msg` (string), `data` (object or array).

## Notes

- Send the master token as the raw value of the `Authorization` header, **without** a `Bearer` prefix. See [Authentication](/authentication/).
- Keep the master token on your server. It controls every account on your AlgoDeltaFX user.

## Related

- [Add MT5 Account](https://docs.algodeltafx.com/api/add-account.md): Connect a new MetaTrader 5 account to your AlgoDeltaFX user.
- [List MT5 Accounts](https://docs.algodeltafx.com/api/list-accounts.md): List every MT5 account connected to your AlgoDeltaFX user.


---
Source: https://docs.algodeltafx.com/api/master-login/
