Documentation · API reference
GET
/api/v1/across/consentConsent, across the sites
This page as Markdown, or in an AI chatMore ways to read this page
Consent across the sites in hard mode.
# Consent, across the sites
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-across-consent
`GET /api/v1/across/consent`
Consent across the sites in hard mode.
## Parameters
- `period` (in path, needed): The period, as everywhere: `7d` when left out.
- `in` (in path, needed): `easy`, `hard` or a group's id; every site when left out.
- `dim` (in path, needed): The dimension: `page`, `entry`, `exit`, `source`, `channel`, `utm_campaign`, `country`, `device`, `browser`, `os`, …
- `limit` (in path, needed): Rows at most: 50 when left out, 200 at the most.
## The answer
200, `AcrossConsent`: Consent across the sites in hard mode (doc/all-sites.md §3.7).
- `easy` (list of EasySite, needed)
- `hard` (list of ConsentSite, needed)
- `period` (PeriodView, needed)
- `scope` (SitesScope, needed)
## Asking
```sh
curl https://tidekeeper.eu/api/v1/across/consent \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- periodin the address
- neededThe period, as everywhere:
7dwhen left out. - inin the address
- needed
easy,hardor a group's id; every site when left out. - dimin the address
- neededThe dimension:
page,entry,exit,source,channel,utm_campaign,country,device,browser,os, … - limitin the address
- neededRows at most: 50 when left out, 200 at the most.
The answer
Status 200
AcrossConsent Consent across the sites in hard mode (doc/all-sites.md §3.7).
- easy
- list of EasySiteneeded
- hard
- list of ConsentSiteneeded
- period
- PeriodViewneeded
- scope
- SitesScopeneeded
Asking
curl https://tidekeeper.eu/api/v1/across/consent \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/across/consent", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());