{
"id": "blue.microcosm.repo.getRecordByUri",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "RecordNotFound"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"uri",
"value"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"value": {
"type": "unknown"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"at_uri"
],
"properties": {
"cid": {
"type": "string",
"format": "cid",
"description": "The CID of the version of the record. If not specified, then return the most recent version. If specified and a newer version of the record exists, returns 404 not found."
},
"at_uri": {
"type": "string",
"format": "at-uri",
"description": "The at-uri of the record. The identifier can be a DID or an atproto handle. The collection and rkey segments must be present."
}
}
},
"description": "Get a single record from a repository by at-uri"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}