blue.microcosm.repo.getRecordByUri
Get a single record from a repository by at-uri
Details · query
| Kind | query |
|---|---|
| Authority | repo.microcosm.blue |
| Indexed |
Checks
Validfield-name-syntaxdefs.main.parameters.properties.at_uriThe field name at_uri should be letters and digits, starting with a letter.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get a single record from a repository by at-uri",
"errors": [
{
"name": "RecordNotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
},
"value": {
"type": "unknown"
}
},
"required": [
"uri",
"value"
],
"type": "object"
}
},
"parameters": {
"properties": {
"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.",
"format": "at-uri",
"type": "string"
},
"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.",
"format": "cid",
"type": "string"
}
},
"required": [
"at_uri"
],
"type": "params"
},
"type": "query"
}
},
"id": "blue.microcosm.repo.getRecordByUri",
"lexicon": 1
}