POST
/
store
/
findbyid
{
  "fields": "<any>",
  "id": "<any>",
  "txnId": 123
}

This is a legacy endpoint that uses the Legacy Query Language.

To use DQL, the current Ditto query language, consider using the execute endpoint.

Authorizations

Authorization
string
header
required

Authentication using either an API key or JWT token in the Authorization header

Headers

X-DITTO-TXN-ID
integer

Optional transaction ID for ensuring read consistency. The operation will only proceed if the Big Peer's transaction ID is at least this value, preventing reads of stale data.

Body

application/json

Request parameters for retrieving a specific document by its ID. This is the most efficient way to fetch a single document when you know its identifier.

Response

200
application/json
The document was found and retrieved successfully. Returns the document data along with the transaction ID of the read operation.

Represents a document in the Ditto store. Documents are schema-free and can contain nested fields of various CRDT types for conflict-free replication.