> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Ad Pixels API

> En Ad Pixel forbinder en pixel, du ejer på en annonceplatform, med en virksomhed, hvis kampagner du har gjort krav på via advertiser supplier-programmet.

Whop sender til den pixel de konverteringer, der tilskrives dine krævede kampagner for den virksomhed, ved hjælp af det adgangstoken, du angiver.

Brug Ad Pixels API'et til at tilføje én pixel pr. virksomhed på hver annonceplatform, vise eller hente dine pixels, erstatte et adgangstoken, som annonceplatformen har afvist, og fjerne en pixel for at stoppe leveringer.

## Endpoints

| Endpoint | Anmodning |
| - | - |
| [Vis ad pixels](https://docs.whop.com/da/api-reference/ad-pixels/list-ad-pixels.md) | GET `/ad_pixels` |
| [Hent en ad pixel](https://docs.whop.com/da/api-reference/ad-pixels/retrieve-an-ad-pixel.md) | GET `/ad_pixels/{id}` |
| [Opret en ad pixel](https://docs.whop.com/da/api-reference/ad-pixels/create-an-ad-pixel.md) | POST `/ad_pixels` |
| [Opdater en ad pixel](https://docs.whop.com/da/api-reference/ad-pixels/update-an-ad-pixel.md) | PATCH `/ad_pixels/{id}` |
| [Slet en ad pixel](https://docs.whop.com/da/api-reference/ad-pixels/delete-an-ad-pixel.md) | DELETE `/ad_pixels/{id}` |

## Attributter

**id** `string` *required*

Ad pixel-ID med præfikset `adpx_`.

**account** `object` *required*

Virksomheden, hvis krævede kampagner sender konverteringer til denne pixel, med dens navn og logo.

> [accordion] Egenskaber
>
> **id** `string` *required*
>
> Konto-ID med præfikset `biz_`.
>
> **logo\_url** `string | null` *required*
>
> URL til kontoens logobillede. `null`, når kontoen ikke har angivet et.
>
> **route** `string` *required*
>
> Kontoens offentlige rute-identifikator, der bruges i butiksstien `whop.com/\{route}`.
>
> **title** `string` *required*
>
> Kontoens visningsnavn.

**account\_id** `string` *required*

Virksomheden, hvis krævede kampagner sender konverteringer til denne pixel, med
præfikset `biz_`.

**created\_at** `string` *required*

Hvornår pixelen blev tilføjet, som et ISO 8601-tidsstempel.

**error\_message** `string | null` *required*

Hvorfor annonceplatformen afviste den seneste levering. Null, medmindre `status` er
`errored`.

**external\_id** `string` *required*

Pixelens ID på annonceplatformen: et Meta-pixel- eller datasæt-ID, en TikTok-pixelkode,
et Google Ads-kunde-ID eller et Thrad-tag-ID.

**name** `string | null` *required*

Pixelens navn på annonceplatformen. Null, når annonceplatformen ikke returnerede noget.

**platform** `string` *required*

Den annonceplatform, pixelen tilhører.

Tilgængelige muligheder: `meta`, `tiktok`, `google`, `thrad`

**status** `string` *required*

`active` modtager konverteringer. `errored` er stoppet, fordi annonceplatformen afviste adgangstokenet; opdater tokenet for at genoptage. `disabled` er slået fra af Whop.

Tilgængelige muligheder: `active`, `errored`, `disabled`

**updated\_at** `string` *required*

Hvornår pixelen sidst blev ændret, som et ISO 8601-tidsstempel.

```json AdPixel theme={null}
{
	"id": "adpx_Kp7mQ2vXr9sTb",
	"account_id": "biz_7cRtUq3LmPx9Wd",
	"account": {
		"id": "biz_7cRtUq3LmPx9Wd",
		"title": "Acme Studio",
		"route": "acme-studio",
		"logo_url": "https://img.whop.com/acme-studio-logo.png"
	},
	"platform": "meta",
	"external_id": "1823877485451638",
	"name": null,
	"status": "active",
	"error_message": null,
	"created_at": "2026-10-09T18:24:31.512Z",
	"updated_at": "2026-10-09T18:24:31.512Z"
}
```


## Related topics

- [Update an Ad Pixel](https://docs.whop.com/da/api-reference/ad-pixels/update-an-ad-pixel.md)
- [Create an Ad Pixel](https://docs.whop.com/da/api-reference/ad-pixels/create-an-ad-pixel.md)
- [Delete an Ad Pixel](https://docs.whop.com/da/api-reference/ad-pixels/delete-an-ad-pixel.md)
