dev.cocore.account.listAccounts

cocore.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Discovery directory of every signed-up DID (any DID with a record under `dev.cocore.*`), joined with profile + provider counts so a card grid can render without further fan-out. DIDs without a local profile record are hydrated from the public Bluesky AppView.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "accounts": {
              "items": {
                "properties": {
                  "avatarUrl": {
                    "type": "string"
                  },
                  "did": {
                    "format": "did",
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  },
                  "lastActivityAt": {
                    "format": "datetime",
                    "type": "string"
                  },
                  "providerCount": {
                    "type": "integer"
                  }
                },
                "required": [
                  "did"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "excludeViewerFriends": {
              "type": "boolean"
            },
            "limit": {
              "type": "integer"
            },
            "offset": {
              "type": "integer"
            },
            "providersOnly": {
              "type": "boolean"
            },
            "q": {
              "type": "string"
            },
            "sortBy": {
              "enum": [
                "recent",
                "newest"
              ],
              "type": "string"
            },
            "total": {
              "type": "integer"
            }
          },
          "required": [
            "accounts",
            "total",
            "limit",
            "offset",
            "sortBy",
            "providersOnly",
            "excludeViewerFriends"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "excludeViewerFriends": {
            "default": false,
            "description": "With `viewerDid`, also omits DIDs the viewer has already published a friend record for.",
            "type": "boolean"
          },
          "limit": {
            "default": 24,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "offset": {
            "default": 0,
            "minimum": 0,
            "type": "integer"
          },
          "providersOnly": {
            "default": false,
            "type": "boolean"
          },
          "q": {
            "description": "Case-insensitive substring on profile handle and/or DID. A leading @ is ignored.",
            "type": "string"
          },
          "sortBy": {
            "default": "recent",
            "description": "`recent` = last activity descending; `newest` = signup order.",
            "enum": [
              "recent",
              "newest"
            ],
            "type": "string"
          },
          "viewerDid": {
            "description": "Excludes the caller's own DID from results.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "dev.cocore.account.listAccounts",
  "lexicon": 1
}

Validate Record

Validate a record against dev.cocore.account.listAccounts

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:5quuhkmwe2q4k3azfsgg7kdz
CID
bafyreih472bxihxgm3fkhzb6wrmfl53pqh3jp3ms3wzwtf5bncmr7hdu4q
Indexed At
2026-06-21 00:58 UTC
AT-URI
at://did:plc:5quuhkmwe2q4k3azfsgg7kdz/com.atproto.lexicon.schema/dev.cocore.account.listAccounts

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Every `dev.cocore.account.friend` record whose subject equals the queried DID — "who has trusted me with work?". Newest first; frienders are hydrated to a handle via the public Bluesky AppView when no local profile ex…

  • List every indexed `dev.cocore.account.profile` record (capped at 500). Used to render display-name + avatar chips for the DIDs hosting machines.

  • Full profile-page payload for one DID: account fields, machines they own, activity counts, and incoming-friends count, in a single round-trip. When the DID has not published a `dev.cocore.account.profile` record locally…

Lexicon Garden

@