# social.colibri.beta.bridge.listRemoteRooms

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listRemoteRooms)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listRemoteRooms/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listRemoteRooms/examples)

## Definitions

### `social.colibri.beta.bridge.listRemoteRooms`

**Type**: `query`

Lists the rooms a bridge reported on the other service, for linking them to channels.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (did) | Yes | The community the registration belongs to. |
| `registration` | `string` (tid) | Yes | Record key of the registration. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `rooms` | `array` | Yes | The rooms, in the order the bridge reported them. |
| `updatedAt` | `string` (datetime) | No | When the bridge last reported its rooms. |

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The caller lacks the community.manage permission.
- **CommunityNotFound**: No community exists at the given DID.
- **RegistrationNotFound**: The community has no bridge registration with that id.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Lists the rooms a bridge reported on the other service, for linking them to channels.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller lacks the community.manage permission.",
          "name": "Forbidden"
        },
        {
          "description": "No community exists at the given DID.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The community has no bridge registration with that id.",
          "name": "RegistrationNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "rooms": {
              "description": "The rooms, in the order the bridge reported them.",
              "items": {
                "description": "A room.",
                "ref": "social.colibri.beta.bridge.defs#remoteRoom",
                "type": "ref"
              },
              "type": "array"
            },
            "updatedAt": {
              "description": "When the bridge last reported its rooms.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "rooms"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "community": {
            "description": "The community the registration belongs to.",
            "format": "did",
            "type": "string"
          },
          "registration": {
            "description": "Record key of the registration.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "community",
          "registration"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.bridge.listRemoteRooms",
  "lexicon": 1
}
```
