Skip to main content
Account and team

Access the Passiro API

Create an API key, send your first request from your server and read the response, then continue in the API reference.

Before you start: the API needs Business or Enterprise on the domain you want to read, and access to that domain’s API page in your team.

1. Open the API page

Select the domain and open API under General. The page shows the base URL, the endpoints and the domain’s keys.

2. Create a key and store it safely

Under API Keys, enter a key name, for example Production, and choose Create Key. Copy the key at once: it is shown only once. Store it in your server’s secret store or an environment variable, never in a URL, front-end code or a log. A domain can have up to five keys; to revoke a key, delete it on the same page.

3. Send your first request from your server

Run this command in a POSIX shell, such as bash or zsh, on your server. PASSIRO_API_KEY is an environment variable you have set to the key:

curl --fail-with-body --header "Authorization: Bearer $PASSIRO_API_KEY" "https://passiro.com/api/v1/consent/cookies"

A successful answer is HTTP 200 with JSON such as {"ok": true, "site": {"id": 4700000, "domain": "example.com"}, "cookie_stats": {"total": 12, ...}, "cookies": [...], "trackers": [...]}. The cookies endpoint lists the domain's detected cookies; an empty cookies list says nothing about consent records, which come from /api/v1/consent/records.

4. Try it in the dashboard

Under Test endpoints, select one of your keys, choose Try it next to an endpoint and send the request. You see the HTTP status, the time the request took and the JSON response, without copying the key anywhere.

5. Continue in the API reference

For parameter limits, cursor pagination, the statistics window, time fields and errors, see Passiro API reference: filters, pagination and errors.

Technical guides