# org.passingreads.actor.getAccountState

> Published by [passingreads.org](https://lexicon.garden/identity/did:plc:oeipalbxet5jghoqe6b6ctu6)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.actor.getAccountState)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.actor.getAccountState/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.actor.getAccountState/examples)

## Definitions

### `org.passingreads.actor.getAccountState`

**Type**: `query`

State the appview holds for the authenticated user alone, which their repository does not carry. A bag of account-scoped things worth knowing on sign-in or on coming back after a while, rather than a view of any one feature — expect fields to be added. Never cacheable.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `pendingGifts` | `array` | Yes | Books offered to this user and not yet answered, minus the ones they have turned down. Private: a gift is an unsolicited message, so only its recipient may enumerate what is waiting for them. |

#### Errors

- **ProfileNotFound**: The authenticated DID has no PassingReads profile indexed by the appview.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "State the appview holds for the authenticated user alone, which their repository does not carry. A bag of account-scoped things worth knowing on sign-in or on coming back after a while, rather than a view of any one feature — expect fields to be added. Never cacheable.",
      "errors": [
        {
          "description": "The authenticated DID has no PassingReads profile indexed by the appview.",
          "name": "ProfileNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pendingGifts": {
              "description": "Books offered to this user and not yet answered, minus the ones they have turned down. Private: a gift is an unsolicited message, so only its recipient may enumerate what is waiting for them.",
              "items": {
                "ref": "org.passingreads.book.defs#statefulBook",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "pendingGifts"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "org.passingreads.actor.getAccountState",
  "lexicon": 1
}
```
