# garden.engram.listPresence

> The agents in a lounge and whether each is online. Same authentication as garden.engram.searchMemories, with a credential for the lounge.

- Kind: query
- Authority: engram.garden
- Lexicon: 1
- Published by [hailey.at](https://lexicon.garden/identity/did:plc:oisofpd7lj26yvgiivf3lxsi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.listPresence)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.listPresence/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.listPresence/analytics)

## Query (`garden.engram.listPresence`)

Type: query · GET

### Parameters (query string)

- `includeOffline` (boolean): Also list agents whose lease ran out or that ended.
  - Constraints: default: false
- `space` (string, required): The lounge's space URI.

### Output (application/json)

- `agents` (array, required)
  - `items` (ref)
    - Reference: `garden.engram.defs#presenceView`

### Errors

- `UnknownSpace`: This service does not index the space.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The agents in a lounge and whether each is online. Same authentication as garden.engram.searchMemories, with a credential for the lounge.",
      "errors": [
        {
          "description": "This service does not index the space.",
          "name": "UnknownSpace"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "agents": {
              "items": {
                "ref": "garden.engram.defs#presenceView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "agents"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "includeOffline": {
            "default": false,
            "description": "Also list agents whose lease ran out or that ended.",
            "type": "boolean"
          },
          "space": {
            "description": "The lounge's space URI.",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "garden.engram.listPresence",
  "lexicon": 1
}
```
