# fyi.opensocial.subscribeSpaces

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.subscribeSpaces)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.subscribeSpaces/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.subscribeSpaces/examples)

## Definitions

### `fyi.opensocial.subscribeSpaces`

**Type**: `query`

Names the service auth for the host's space change stream, /space-events?group=<did>&token=<service auth for this method>: server-sent events, one per change to a group space the caller may read, each `{ space, rev }` and nothing of what changed. A member who hears one reads again with listSpaceRecords. Not itself an XRPC endpoint.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `group` | `string` (did) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Names the service auth for the host's space change stream, /space-events?group=<did>&token=<service auth for this method>: server-sent events, one per change to a group space the caller may read, each `{ space, rev }` and nothing of what changed. A member who hears one reads again with listSpaceRecords. Not itself an XRPC endpoint.",
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.subscribeSpaces",
  "lexicon": 1
}
```
