Documentation · API reference
POST
/api/v1/sites/{site}/hard/policySay where the privacy policy is and that it has the paragraph
This page as Markdown, or in an AI chatMore ways to read this page
Say where the privacy policy is and that it has the paragraph.
# Say where the privacy policy is and that it has the paragraph
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/post-sites-site-hard-policy
`POST /api/v1/sites/{site}/hard/policy`
Say where the privacy policy is and that it has the paragraph.
## Parameters
- `site` (in path, needed): A site's id or name
## What to send
`PolicyConfirm`: The owner says the policy has the paragraph. tidekeeper looks for itself too and says what it found, but the confirmation is the owner's.
- `url` (string, needed)
## The answer
200, `PolicyFound`
- `found` (boolean, needed): Whether the page could be read and names tidekeeper.
- `says` (string, needed)
- `url` (string, needed)
## Asking
```sh
curl -X POST https://tidekeeper.eu/api/v1/sites/example.org/hard/policy \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url": "…"}'
```
Parameters
- sitein the address
- neededA site's id or name
What to send
PolicyConfirm The owner says the policy has the paragraph. tidekeeper looks for itself too and says what it found, but the confirmation is the owner's.
- url
- stringneeded
The answer
Status 200
PolicyFound
- found
- booleanneededWhether the page could be read and names tidekeeper.
- says
- stringneeded
- url
- stringneeded
Asking
curl -X POST https://tidekeeper.eu/api/v1/sites/example.org/hard/policy \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \ -H "Content-Type: application/json" \ -d '{"url": "…"}'
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/hard/policy", { method: "POST", headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, "Content-Type": "application/json", }, body: JSON.stringify({"url": "…"}), }).then((r) => r.json());