# tools.ozone.hosting.getAccountHistory

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.hosting.getAccountHistory)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.hosting.getAccountHistory/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.hosting.getAccountHistory/examples)

## Definitions

### `tools.ozone.hosting.getAccountHistory`

**Type**: `query`

Get account history, e.g. log of updated email addresses or other identity information.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `events` | `array` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `events` | `array` | Yes |  |

### `tools.ozone.hosting.getAccountHistory#event`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `details` | `union` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `createdBy` | `string` | Yes |  |

### `tools.ozone.hosting.getAccountHistory#emailUpdated`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `email` | `string` | Yes |  |

### `tools.ozone.hosting.getAccountHistory#handleUpdated`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `handle` | `string` (handle) | Yes |  |

### `tools.ozone.hosting.getAccountHistory#accountCreated`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `email` | `string` | No |  |
| `handle` | `string` (handle) | No |  |

### `tools.ozone.hosting.getAccountHistory#emailConfirmed`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `email` | `string` | Yes |  |

### `tools.ozone.hosting.getAccountHistory#passwordUpdated`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

## Raw Schema

```json
{
  "id": "tools.ozone.hosting.getAccountHistory",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "events"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "events": {
              "type": "array",
              "items": {
                "ref": "#event",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "knownValues": [
                "accountCreated",
                "emailUpdated",
                "emailConfirmed",
                "passwordUpdated",
                "handleUpdated"
              ]
            }
          }
        }
      },
      "description": "Get account history, e.g. log of updated email addresses or other identity information."
    },
    "event": {
      "type": "object",
      "required": [
        "details",
        "createdBy",
        "createdAt"
      ],
      "properties": {
        "details": {
          "refs": [
            "#accountCreated",
            "#emailUpdated",
            "#emailConfirmed",
            "#passwordUpdated",
            "#handleUpdated"
          ],
          "type": "union"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "createdBy": {
          "type": "string"
        }
      }
    },
    "emailUpdated": {
      "type": "object",
      "required": [
        "email"
      ],
      "properties": {
        "email": {
          "type": "string"
        }
      }
    },
    "handleUpdated": {
      "type": "object",
      "required": [
        "handle"
      ],
      "properties": {
        "handle": {
          "type": "string",
          "format": "handle"
        }
      }
    },
    "accountCreated": {
      "type": "object",
      "required": [],
      "properties": {
        "email": {
          "type": "string"
        },
        "handle": {
          "type": "string",
          "format": "handle"
        }
      }
    },
    "emailConfirmed": {
      "type": "object",
      "required": [
        "email"
      ],
      "properties": {
        "email": {
          "type": "string"
        }
      }
    },
    "passwordUpdated": {
      "type": "object",
      "required": [],
      "properties": {}
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
