app.bsky.feed.getPostVersions

Get the version history of a post. Only versions the AppView accepted as valid edits are included.

Details · query
Kindquery
Authorityfeed.bsky.app
Commit rev3n2yujelbh72f
Indexed
cid bafyreie6dm6a2o7iwgu5zsphi2zings65mhjfhvhy4ee5awzmyijamjiky

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the version history of a post. Only versions the AppView accepted as valid edits are included.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "format": "at-uri",
              "type": "string"
            },
            "versions": {
              "description": "Versions of the post, newest first. Includes the current version, so an unedited post has a single entry. Each view describes the version at its CID: counts and viewer state are scoped to that CID, editedAt is when that version was indexed (absent on the original), and indexedAt is the original post's.",
              "items": {
                "ref": "app.bsky.feed.defs#postView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "uri",
            "versions"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "Reference (AT-URI) of post record",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.bsky.feed.getPostVersions",
  "lexicon": 1
}