Skip to content

Instantly share code, notes, and snippets.

@easrng
Created September 28, 2025 11:32
Show Gist options
  • Select an option

  • Save easrng/8187b4cf4503fbe8a762fd9bab8266df to your computer and use it in GitHub Desktop.

Select an option

Save easrng/8187b4cf4503fbe8a762fd9bab8266df to your computer and use it in GitHub Desktop.
{
"id": "com.bad-example.identity.resolveMiniDoc",
"lexicon": 1,
"defs": {
"main": {
"type": "query",
"description": "Like [com.atproto.identity.resolveIdentity](https://docs.bsky.app/docs/api/com-atproto-identity-resolve-identity) but instead of the full `didDoc` it returns an atproto-relevant subset.",
"parameters": {
"type": "params",
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string",
"format": "at-identifier",
"description": "Handle or DID to resolve"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"did",
"handle",
"pds",
"signing_key"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "DID, bi-directionally verified if a handle was provided in the query."
},
"handle": {
"type": "string",
"format": "handle",
"description": "The validated handle of the account or `handle.invalid` if the handle\ndid not bi-directionally match the DID document."
},
"pds": {
"type": "string",
"format": "uri",
"description": "The identity's PDS URL"
},
"signing_key": {
"type": "string",
"description": "The atproto signing key publicKeyMultibase\n\nLegacy key encoding not supported. the key is returned directly; `id`,\n`type`, and `controller` are omitted."
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment