# tools.umbrae.actor.getRelationships

> The hidden blocks between the viewer and each of up to 25 accounts, in either direction, so a client can tell a hidden-blocked viewer it's blocked, as it would for a public block. Only the two parties learn of a hidden block this way; nobody else's is ever answered. Public blocks aren't covered: they're in the public graph. Served by a serving app (the viewer's own, or a private account's servingApp) at its #umbrae_app endpoint, with atproto service auth (iss the viewer, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to that app. The app answers from the block spaces it holds and fails closed to false.

- Kind: query
- Authority: actor.umbrae.tools
- Lexicon: 1
- Published by [lexicons.umbrae.tools](https://lexicon.garden/identity/did:plc:656sqbhftme2qbyjtcc2q6jk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.actor.getRelationships)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.actor.getRelationships/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.actor.getRelationships/analytics)

## Query (`tools.umbrae.actor.getRelationships`)

Type: query · GET

### Parameters (query string)

- `actors` (array, required)
  - Constraints: minLength: 1, maxLength: 25
  - `items` (string · did)

### Output (application/json)

- `relationships` (array, required): One per actor asked for, in order.
  - `items` (ref)
    - Reference: `#relationship`

### Errors

- `NotAdmitted`: The app doesn't serve this account.

## #relationship (`tools.umbrae.actor.getRelationships#relationship`)

Type: object

### Properties

- `blockedBy` (boolean, required): The actor hidden-blocks the viewer. False where the app doesn't hold the actor's block space.
- `blocking` (boolean, required): The viewer hidden-blocks the actor. False where the app doesn't hold the viewer's block space.
- `did` (string · did, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The hidden blocks between the viewer and each of up to 25 accounts, in either direction, so a client can tell a hidden-blocked viewer it's blocked, as it would for a public block. Only the two parties learn of a hidden block this way; nobody else's is ever answered. Public blocks aren't covered: they're in the public graph. Served by a serving app (the viewer's own, or a private account's servingApp) at its #umbrae_app endpoint, with atproto service auth (iss the viewer, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to that app. The app answers from the block spaces it holds and fails closed to false.",
      "errors": [
        {
          "description": "The app doesn't serve this account.",
          "name": "NotAdmitted"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "relationships": {
              "description": "One per actor asked for, in order.",
              "items": {
                "ref": "#relationship",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "relationships"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actors": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 25,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "actors"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "relationship": {
      "properties": {
        "blockedBy": {
          "description": "The actor hidden-blocks the viewer. False where the app doesn't hold the actor's block space.",
          "type": "boolean"
        },
        "blocking": {
          "description": "The viewer hidden-blocks the actor. False where the app doesn't hold the viewer's block space.",
          "type": "boolean"
        },
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did",
        "blockedBy",
        "blocking"
      ],
      "type": "object"
    }
  },
  "id": "tools.umbrae.actor.getRelationships",
  "lexicon": 1
}
```
