cURL
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", "version": "v4" } '
{ "pixel_id": "912b78c3-83e6-4d6a-8245-def0dde26224", "install_url": "https://pixel.example/install/abcd1234" }
The display name for the pixel (site name)
The URL where the pixel will be installed
Optional webhook URL for pixel events
Pixel provider version. Defaults to "v3" if not specified.
v3
v4
Pixel created successfully
"912b78c3-83e6-4d6a-8245-def0dde26224"
"https://pixel.example/install/abcd1234"