com.atproto.repo.getRecord
GET/xrpc/com.atproto.repo.getRecord
This endpoint is part of the atproto PDS repository management APIs. Requests usually require authentication (unlike the com.atproto.sync.*
endpoints), and are made directly to the user's own PDS instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Get a single record from a repository. Does not require auth.
Request
Query Parameters
repo at-identifierrequired
The handle or DID of the repo.
collection nsidrequired
The NSID of the record collection.
rkey stringrequired
The Record Key.
cid cid
The CID of the version of the record. If not specified, then return the most recent version.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
uri at-urirequired
cid cid
value required
{
"uri": "string",
"cid": "string",
"value": {}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, RecordNotFound
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...