Documentation · API reference
GET/api/v1/texts/{id}

One published text: its title and its blocks

One published text: its title and its blocks.

Parameters

idin the address
neededterms, privacy, dpa, subprocessors, company or accessibility

The answer

Status 200

TextView A published text, as blocks the page draws: nothing in it is markup.

blocks
list of TextBlockneeded
id
stringneeded
title
stringneeded
version
stringThe first 12 hex digits of the file's SHA-256: which version of the text this is (doc/audit-fixes.md 2.3).

Asking

With your token from Settings
curl https://tidekeeper.eu/api/v1/texts/{id} \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/texts/{id}", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());