# What happened to an account

URL: https://docs.fxapis.com/api-reference/accounts/what-happened-to-an-account

> What happened to an account. The account's history in words, newest first: added, logging in, refused by the broker, online, moved to another server, taken…

`GET https://api.fxapis.com/v1/accounts/{id}/events`

The account's history in words, newest first: added, logging in, refused by the broker, online, moved to another server, taken offline. The same record the console shows as the account's activity.

Authentication: `Authorization: Bearer <API key>`.

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no |  |
| `id` | path | string (uuid) | yes |  |

#### Responses

- `200`
- `401`
- `404`

Failures return `{ "error": { "code", "message" } }`; every code is listed at https://docs.fxapis.com/errors.

#### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object[] | no |  |
| `data[].id` | string | yes |  |
| `data[].at` | string (date-time) | yes |  |
| `data[].tone` | "success" \| "info" \| "warning" \| "danger" | yes |  |
| `data[].title` | string | yes | Example: `"The broker refused the login"` |
| `data[].detail` | null \| string | yes |  |
| `data[].by` | "key" \| "member" \| "staff" \| "system" | yes |  |
| `data[].action` | string | yes |  |