---
title: "Create a pixel"
method: POST
path: "/api/v1/pixel"
tags: ["Pixels (Facebook, TikTok, etc.)"]
---

# Create a pixel

`POST /api/v1/pixel`

Create a pixel with Facebook Pixel Id, EAAG token and an optional comment.

## Request body

- PixelCreateDTO
  - `pixel` string, required
  - `token` string, required
  - `comment` string, nullable
  - `pixelType` 'tiktok' | 'facebook' | 'google' | 'twitter', required

## Response `201`

Resource created successfully.

- CreatedResponse
  - `detail` string

## Other responses

- `401` — Authentication required.
- `403` — Access denied.
- `409` — The resource already exists or conflicts with an existing one.
- `422` — Validation error. Please check your input.

---

[API](https://skmtc.dev/pwapps/apis/curie-api.md) · [All operations](https://skmtc.dev/pwapps/apis/curie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pwapps/curie-api/revisions/b0af9064dfef/schema)
