# Get Account Profile

Read the MT5 account profile and details.

`GET https://api.algodeltafx.com/api/v2/forexaccount/getprofile`

- API: Account API (v2)
- Authentication: Send the account token as `Authorization: Bearer <ACCOUNT_TOKEN>`. See [Authentication](/authentication/).

Return the profile and details of the MT5 account that the token belongs to. Call it first to confirm your token works and that the account is connected.

## Parameters

None.

## Example: cURL

```bash
curl https://api.algodeltafx.com/api/v2/forexaccount/getprofile \
  -H "Authorization: Bearer $ACCOUNT_TOKEN"
```

## Example: Python

```python
import os
import requests

res = requests.get(
    "https://api.algodeltafx.com/api/v2/forexaccount/getprofile",
    headers={"Authorization": f"Bearer {os.environ['ACCOUNT_TOKEN']}"},
    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).

## Related

- [Get Symbols](https://docs.algodeltafx.com/api/get-symbols.md): List the tradable symbols on the account, with broker suffixes.
- [Get Open Positions](https://docs.algodeltafx.com/api/get-open-positions.md): List every open position on the MT5 account.
- [History Summary](https://docs.algodeltafx.com/api/history-summary.md): Aggregated trading summary for a date range.


---
Source: https://docs.algodeltafx.com/api/get-profile/
