Api key provided on integrations tab in Easyflow platform.
Create pixel
This route allows you to create a tracking pixel linked to your account, with support for Google and Meta platforms. After creation, the pixel must be integrated into your website or application using our official SDK to ensure proper event sending and tracking.
👉 Access the SDK and usage instructions: SDK
Headers
x-api-keystringrequiredx-api-secretstringrequiredApi Secret provided on integrations tab in Easyflow platform.
Request body
Content typeapplication/jsonobject
namestringrequireddescriptionstringownerIdstringrequiredexternalReferenceIdstringrequiredplatformstringrequiredcodestringrequiredeventsarray of stringsrequiredEvents that the pixel tracks. The list cannot be empty.
metadataobjectRequired when
platformisgoogle.Show child attributesHide child attributes
conversion-labelstringConversion label. Required when
platformisgoogle.
serverSideMetadataobjectServer-side settings. Only these keys are accepted.
Show child attributesHide child attributes
capi-access-tokenstringAccess token of the Meta Conversions API. When it is sent,
enable-capi-access-tokenis set totrue.enable-capi-access-tokenboolean
Responses
200pixel creation was successful
pixel creation was successful
Content typeapplication/jsonobject
statusCodeintegerdataobjectShow child attributesHide child attributes
pixelobjectShow child attributesHide child attributes
eventsarray of stringsidstringcreatedAtstringupdatedAtstringownerIdstringexternalReferenceIdstringplatformstringstatusstringcodestringnamestringdescriptionstringserverSideMetadataobjectShow child attributesHide child attributes
capi-access-tokenstringenable-capi-access-tokenboolean
metadataobjectShow child attributesHide child attributes
conversion-labelstring
400If the provided parameter is invalid, the API will return the following error response:
If the provided parameter is invalid, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode that identifies the error. Present only on some errors.
401If the request is unauthorized, the API will return the following error response:
If the request is unauthorized, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
403If the request is forbidden, the API will return the following error response:
If the request is forbidden, the API will return the following error response:
Content typeapplication/jsonobject
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
409A pixel with the same ownerId, externalReferenceId, code and platform already exists. For google the conversion label is also compared, and for meta with a Conversions API token the token is also compared.
A pixel with the same ownerId, externalReferenceId, code and platform already exists. For google the conversion label is also compared, and for meta with a Conversions API token the token is also compared.
Content typeapplication/jsonobject
statusCodeintegerrequiredHTTP status code.
messagestringrequiredExplanation of the error.
errorstringName of the HTTP status, such as
Bad RequestorConflict.errorCodestringCode that identifies the error. Present only on some errors.
500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
Content typeapplication/jsonobject
statusCodeintegerHTTP status code.
messagestringExplanation of the error.