Skip to main content
POST
/
pixels
Create Pixel
curl --request POST \
  --url https://api.audiencelab.io/pixels \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "websiteName": "Test Site",
  "websiteUrl": "https://test.com",
  "webhookUrl": "https://hooks.example.com/pixel"
}
'
{
  "pixel_id": "912b78c3-83e6-4d6a-8245-def0dde26224",
  "install_url": "https://pixel.example/install/abcd1234"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
websiteName
string
required

The display name for the pixel (site name)

websiteUrl
string
required

The URL where the pixel will be installed

webhookUrl
string | null

Optional webhook URL for pixel events

Response

Pixel created successfully

pixel_id
string
Example:

"912b78c3-83e6-4d6a-8245-def0dde26224"

install_url
string
Example:

"https://pixel.example/install/abcd1234"