# ai.newnal.illi.account.getSession

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.account.getSession)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.account.getSession/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.account.getSession/examples)

## Definitions

### `ai.newnal.illi.account.getSession`

**Type**: `query`

Describe the signed-in ILLI session: the account behind the illi_session cookie, which app it belongs to, and when the account joined the ILLI service. Served by the ILLI Service Node.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `app` | `string` | Yes |  |
| `avatarUrl` | `string` (uri) | No |  |
| `did` | `string` (did) | Yes |  |
| `displayName` | `string` | No |  |
| `handle` | `string` (handle) | No |  |
| `serviceSphereJoinedAt` | `string` (datetime) | No |  |

#### Errors

- **AuthRequired**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Describe the signed-in ILLI session: the account behind the illi_session cookie, which app it belongs to, and when the account joined the ILLI service. Served by the ILLI Service Node.",
      "errors": [
        {
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "app": {
              "knownValues": [
                "family",
                "device"
              ],
              "type": "string"
            },
            "avatarUrl": {
              "format": "uri",
              "type": "string"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "displayName": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "handle": {
              "format": "handle",
              "type": "string"
            },
            "serviceSphereJoinedAt": {
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "did",
            "app"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.account.getSession",
  "lexicon": 1
}
```
