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
const url = 'https://example.com/xrpc/com.atproto.sync.getRecord?did=example&rkey=example&collection=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/com.atproto.sync.getRecord?did=example&rkey=example&collection=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”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
Responses
Section titled “Responses”Success
Media typeapplication/vnd.ipld.car
Bad Request
