app.zeens.getCollectionsContaining

zeens.app

Documentation

For a viewer, list which of their own collections (private + public) currently contain a given subject URI. Each match includes the parent collection's name, rkey, and visibility. Used by the 'Add to collection' modal to show which boxes are already checked, and by the post-detail page to render a 'part of collection' pill (public collections only).

main query

For a viewer, list which of their own collections (private + public) currently contain a given subject URI. Each match includes the parent collection's name, rkey, and visibility. Used by the 'Add to collection' modal to show which boxes are already checked, and by the post-detail page to render a 'part of collection' pill (public collections only).

Parameters

subject string at-uri Required

AT-URI of the post or article.

viewer string did Required

DID of the requester (collections owner).

Output

Encodingapplication/json
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
AT-URI of the post or article.
DID of the requester (collections owner).
View raw schema
{
  "description": "For a viewer, list which of their own collections (private + public) currently contain a given subject URI. Each match includes the parent collection's name, rkey, and visibility. Used by the 'Add to collection' modal to show which boxes are already checked, and by the post-detail page to render a 'part of collection' pill (public collections only).",
  "output": {
    "encoding": "application/json"
  },
  "parameters": {
    "properties": {
      "subject": {
        "description": "AT-URI of the post or article.",
        "format": "at-uri",
        "type": "string"
      },
      "viewer": {
        "description": "DID of the requester (collections owner).",
        "format": "did",
        "type": "string"
      }
    },
    "required": [
      "viewer",
      "subject"
    ],
    "type": "params"
  },
  "target_collection": "app.zeens.collectionItem",
  "type": "query"
}

Lexicon Garden

@