Documentation · API reference
GET
/api/v1/texts/{id}One published text: its title and its blocks
This page as Markdown, or in an AI chatMore ways to read this page
One published text: its title and its blocks.
# One published text: its title and its blocks
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-texts-id
`GET /api/v1/texts/{id}`
One published text: its title and its blocks.
## Parameters
- `id` (in path, needed): terms, privacy, dpa, subprocessors, company or accessibility
## The answer
200, `TextView`: A published text, as blocks the page draws: nothing in it is markup.
- `blocks` (list of TextBlock, needed)
- `id` (string, needed)
- `title` (string, needed)
- `version` (string): The first 12 hex digits of the file's SHA-256: which version of the text this is (doc/audit-fixes.md 2.3).
## Asking
```sh
curl https://tidekeeper.eu/api/v1/texts/{id} \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
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
curl https://tidekeeper.eu/api/v1/texts/{id} \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/texts/{id}", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());