Skip to content

Get record

GET /v4/storage/{storage}/key?key={key}

Get a single record by key. The path parameter storage specifies the namespace name, and the query parameter key specifies the record key to retrieve.

Response Headers

HeaderDescription
Content-TypeThe MIME type of the record's content.

Response Body

The raw content of the record, encoded in base64 if binary.

Example

sh
curl --location 'https://api.litebase.io/v4/storage/sample/key?key=city:1' \
--header "Authorization: Bearer $LITEBASE_API_KEY"

Response:

json
HTTP/1.1 200 OK
Content-Type: application/json

{
    "name": "Braavos"
}