Kukie.io now has a REST API at https://api.kukie.io/v1. Your own software can create sites, change their banners and texts, start cookie scans, read consent statistics, receive webhooks and download scan reports, using API keys that belong to your organisation rather than to one person. The API is on the Agency and Unlimited plans, and a free trial of either plan uses it like the paid plan. The pricing page compares the plans.

If you add a cookie banner to every website you build, or your platform creates sites for your own customers, the dashboard was the slow part. Each new site meant signing in, adding the domain, copying the script tag and starting a scan. Your provisioning script can now do all of it, and the sites it creates appear in the dashboard like any other.

What your software can do through the API

Every operation is in the API reference, which is built from the same OpenAPI 3.1 document the API serves at https://api.kukie.io/v1/openapi.json. Each area needs its own permission on the key:

AreaWhat you can doPermission
SitesList, create, update and delete sites, keep your own external_id and metadata on each, run an installation checksites:read, sites:write, sites:delete
BannersRead and change banner settings, texts and region rules, read cookies and categories and move cookies into a category, and copy one site's settings to other sitesbanner:read, banner:write
Accessibility widgetRead and change the widget's settings and textsaccessibility:read, accessibility:write
ScansStart a cookie scan, follow it, read the cookies it foundscans:read, scans:write
ConsentLook up one consent record by its ID, read consent statistics for a periodconsent:read
Scan reportsDownload a scan's report as JSON or PDFreports:read
WebhooksCreate endpoints, rotate their secrets, send a test event, read past eventswebhooks:read, webhooks:write

The API never changes your team, billing, plan or organisation settings, and it never creates or changes API keys. Those stay in the dashboard.

Keys belong to the organisation, not to a person

An owner or admin creates a key on the API keys page, from the account menu. The key keeps working when the person who made it leaves the team, so an integration doesn't break with a staff change. Creating a key asks for your password (unless you confirmed it a short time ago), the authentication code when your account uses two-factor authentication, and your acceptance of the API Terms.

You decide what each key can do. Pick a ready-made set (Full integration, Site provisioning or Read only) or tick the permissions one by one. Deleting sites is a permission of its own that none of the ready-made sets includes. A key reaches all sites, including the ones you add later, or only the sites you select. It expires after 30, 90, 180 or 365 days, and when you roll it the old key can keep working for up to 7 days while you deploy the new one. Owners and admins get an email whenever a key is created or rolled, and reminders before one expires.

The guide to API keys and permissions lists what each permission allows.

The limits, in plain numbers

Each key may send 300 requests a minute and each organisation 600, of which 60 a minute per key and 120 per organisation may change something. Some operations have tighter limits of their own: creating sites, starting scans, reading consent statistics and downloading scan reports among them. A successful answer carries rate limit headers, and a request refused by a limit (429) says in Retry-After how long to wait. The rate limits guide has the full table.

Sites created through the API count towards your plan's site limit exactly like sites added in the dashboard. A request to create a site carries an Idempotency-Key header, so sending it again after a timeout returns the first answer instead of a second site.

Webhooks tell your software when something happens

Rather than asking the API every few minutes whether a scan has finished, register an endpoint and Kukie.io sends it an event. Six kinds exist today: scan.completed, scan.failed, site.created, site.deleted, site.installation_verified and report.ready. Each delivery is signed the way the Standard Webhooks specification describes, so libraries that already verify it work unchanged. A failed delivery is tried again for about 3 days. The webhooks guide shows how to check a signature in Node.js and PHP.

Your first request

With a key in an environment variable named KUKIE_API_KEY, this request describes the key, its organisation and plan, and the limits that apply. It needs no permission, so it is the quickest way to check that a key works:

curl "https://api.kukie.io/v1/account" \
  -H "Authorization: Bearer $KUKIE_API_KEY"

Send the key in the Authorization header only, never in a URL. Postman and Bruno can import the OpenAPI document by its address and build a collection from it.

Answers about cookies, scans and consent records can hold text that a scanned website or a visitor's browser wrote. Such an answer lists those members in untrusted_fields, so escape them wherever your software shows them.

Changes to the API are published in the API changelog, each with its own version number. New fields and operations arrive without notice. A change that could break an integration is announced in advance, as section 8 of the API Terms describes.

Questions about the Kukie.io API

Which plans include the API?

The Agency and Unlimited plans, including a free trial of either. On other plans the API keys page names the plan you need.

Can an editor create an API key?

No. Only owners and admins of the organisation can create, roll and revoke keys.

Is there an SDK?

Not yet. The OpenAPI document describes every operation, so code generators and API clients such as Postman and Bruno can work from it.

Do API-created sites send the usual emails?

The site verification reminder and the scan completed email are off for those sites until an owner or admin turns them on. When sites are deleted through the API, owners and admins always get an email naming the key.

Make your first request

The quickstart guide takes you from a new key to your first site in a few commands, and the feature overview shows what each site gets once it exists.