# Developers — SDKs, REST API & webhooks — Cookie Panda

**Source:** https://cookiepanda.app/developers  
**Summary:** Cookie Panda for developers: a lightweight web SDK, native mobile and CTV SDKs, a full REST API, signed webhooks and a Partner API with an embeddable dashboard.  
**Publisher:** Cookie Panda

---

Developers

## Built for developers, loved by legal

A clean REST API, native SDKs everywhere your users are, and webhooks that never drop an event. Integrate consent the way that fits your stack.

## Web SDK {#web-sdk}

One async script tag delivers the banner, blocking, IAB strings and Consent Mode bridge — under 8 KB from the edge.

```html
<!-- Drop this in your <head> -->
<script
  src="https://sdk.cookiepanda.app/cookiepanda.min.js"
  data-cp-token="cp_xxx"
  data-cp-api="https://edge.cookiepanda.app"
  async
></script>
```

## Mobile & CTV SDKs {#mobile-ctv-sdks}

Native SDKs for iOS, Android and Flutter, plus tvOS, Android TV, Roku, Tizen and webOS — all sharing one consent record and IFA-aware.

```swift
import CookiePanda

CookiePanda.configure(siteId: "YOUR_SITE_ID")
CookiePanda.presentIfNeeded()

let consent = CookiePanda.getConsent()
if consent.analytics {
  Analytics.start()
}
```

## REST API & Webhooks {#rest-api-webhooks}

Record consent, query analytics, manage websites and subscribe to events with HMAC-signed, at-least-once webhook delivery.

```bash
# Record a consent event
curl -X POST https://dashboard.cookiepanda.app/api/v1/consent/record \
  -H "Authorization: Bearer $CP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "website_id": "wbs_123",
    "choices": { "analytics": true, "advertising": false },
    "source": "banner"
  }'
```

## Partner API & Embed SDK

Building a SaaS platform? Provision tenants programmatically and embed the full Cookie Panda dashboard — white-labelled — inside your own product with a short-lived session token.
