app.bsky.graph.getRelationships
GET/xrpc/app.bsky.graph.getRelationships
This endpoint is part of the Bluesky application Lexicon APIs (app.bsky.*
). Public endpoints which don't require authentication can be made directly against the public Bluesky AppView API: https://public.api.bsky.app. Authenticated requests are usually made to the user's PDS, with automatic service proxying. Authenticated requests can be used for both public and non-public endpoints.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Enumerates public relationships between one account, and a list of other accounts. Does not require auth.
Request
Query Parameters
Primary account requesting relationships for.
Possible values: <= 30
List of 'other' accounts to be related back to the primary.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
- app.bsky.graph.defs.relationship
- app.bsky.graph.defs.notFoundActor
]
relationships
object[]
required
oneOf
if the actor follows this DID, this is the AT-URI of the follow record
if the actor is followed by this DID, contains the AT-URI of the follow record
Default value: true
{
"actor": "string",
"relationships": [
{},
{}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, ActorNotFound
]
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}