Skip to content

Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.

GET
/xrpc/com.atproto.sync.getRecord
curl --request GET \
--url 'https://example.com/xrpc/com.atproto.sync.getRecord?did=example&rkey=example&collection=example'
did
required

The DID of the repo.

string format: did

The DID of the repo.

rkey
required

Record Key

string format: record-key

Record Key

collection
required
string format: nsid

Success

Media typeapplication/vnd.ipld.car

Bad Request

Media typeapplication/json
object
error
required
One of:
string
Allowed value: RecordNotFound
message
required
string

Example

{
"error": "RecordNotFound"
}