Data

Read records and documents

POST
/data/read

Read up to 100 records and documents of one Space in one call. A record is named by id or by type plus unique key and returns revision, values, relations and documents. A document is named by id or path and returns its current text with its hash: Markdown of a live document, the file itself for CSV, TSV, TXT, MD and JSON uploads, extracted text of other uploads; section returns one section, offset and limit page by characters. Pass if_none_match (revision or hash) to get status unchanged instead of content you already hold. What does not exist or cannot be read answers not_found for that item only. Keep revision and hash: data.write takes them in if. The in-app assistant reads document content after a facts call, or with force=true.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/data/read" \  -H "Content-Type: application/json" \  -d '{    "space_id": "123e4567-e89b-42d3-a456-426614174000",    "items": [      {}    ]  }'
{  "items": [    {      "status": "ok"    }  ]}