# town.delve.graph.getRelationships

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getRelationships)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getRelationships/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getRelationships/examples)

## Definitions

### `town.delve.graph.getRelationships`

**Type**: `query`

Enumerates public relationships between one account, and a list of other accounts. Does not require auth.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes | Primary account requesting relationships for. |
| `others` | `array` | No | List of 'other' accounts to be related back to the primary. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | No |  |
| `relationships` | `array` | Yes |  |

#### Errors

- **ActorNotFound**: the primary actor at-identifier could not be resolved

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Enumerates public relationships between one account, and a list of other accounts. Does not require auth.",
      "errors": [
        {
          "description": "the primary actor at-identifier could not be resolved",
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actor": {
              "format": "did",
              "type": "string"
            },
            "relationships": {
              "items": {
                "refs": [
                  "town.delve.graph.defs#relationship",
                  "town.delve.graph.defs#notFoundActor"
                ],
                "type": "union"
              },
              "type": "array"
            }
          },
          "required": [
            "relationships"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "Primary account requesting relationships for.",
            "format": "at-identifier",
            "type": "string"
          },
          "others": {
            "description": "List of 'other' accounts to be related back to the primary.",
            "items": {
              "format": "at-identifier",
              "type": "string"
            },
            "maxLength": 30,
            "type": "array"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.delve.graph.getRelationships",
  "lexicon": 1
}
```
