Skip to content

app.bsky.graph.getRelationships

Lexicon Version: 1

Type: query

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

Parameters:

NameTypeReq’dDescriptionConstraints
actorstringPrimary account requesting relationships for.Format: at-identifier
othersArray of stringList of ‘other’ accounts to be related back to the primary.Max Items: 30
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
actorstringFormat: did
relationshipsArray of Union of:
  app.bsky.graph.defs#relationship
  app.bsky.graph.defs#notFoundActor
Possible Errors:
  • ActorNotFound: the primary actor at-identifier could not be resolved

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