Documentation · API reference
GET
/api/v1/sites/{site}/consent/records/{id}One record, with what the visitor was shown, word for word
This page as Markdown, or in an AI chatMore ways to read this page
One record, with what the visitor was shown, word for word.
# One record, with what the visitor was shown, word for word
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-sites-site-consent-records-id
`GET /api/v1/sites/{site}/consent/records/{id}`
One record, with what the visitor was shown, word for word.
## Parameters
- `site` (in path, needed): A site's id or name
- `id` (in path, needed): The record
## The answer
200, `RecordDetail`: One record with what the visitor was shown, word for word (CR-03).
- `answered_after` (number or null): Seconds from the banner appearing to the answer.
- `choose` (string, needed)
- `kept_until` (string, needed)
- `meaning` (string, needed)
- `no` (string, needed)
- `question` (string, needed)
- `record` (RecordView, needed)
- `yes` (string, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/sites/example.org/consent/records/{id} \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- sitein the address
- neededA site's id or name
- idin the address
- neededThe record
The answer
Status 200
RecordDetail One record with what the visitor was shown, word for word (CR-03).
- answered_after
- number or nullSeconds from the banner appearing to the answer.
- choose
- stringneeded
- kept_until
- stringneeded
- meaning
- stringneeded
- no
- stringneeded
- question
- stringneeded
- record
- RecordViewneeded
- yes
- stringneeded
Asking
curl https://tidekeeper.eu/api/v1/sites/example.org/consent/records/{id} \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/consent/records/{id}", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());