Documentation · API reference
POST/api/v1/sites/{site}/hard/policy

Say where the privacy policy is and that it has the paragraph

Say where the privacy policy is and that it has the paragraph.

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

With your token from Settings
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": "…"}'
With your token from Settings
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());