Create, update, list and delete Smart Code sites (the websites connected to the Smart Pixel).

All endpoints use the base URL https://webapi.mymarketing.co.il and an API key in the Authorization header. New to the API? Start with Get started with the ActiveTrail API.

Endpoints

MethodEndpointWhat it does
GET/api/smartcodesiteGet a list of the account's Smart Code sites
POST/api/smartcodesiteCreate a new Smart Code site
PUT/api/smartcodesite/{id}Updates the existing Smart Code site by site id
DELETE/api/smartcodesite/{id}Delete a given smart Code site

Endpoint details

Get a list of the account's Smart Code sites

GET https://webapi.mymarketing.co.il/api/smartcodesite

No parameters.

Full reference, request and response samples

Create a new Smart Code site

POST https://webapi.mymarketing.co.il/api/smartcodesite
ParameterInTypeDescription
namebodystring Required.
domainsbodystringYour website. Only required in a Post endpoint
group_idbodyinteger
mailing_list_idbodyinteger
allowed_ipsbodystringYour allowed ips. Optional.
versionbodyinteger
tracker_domainbodystringYour tracker domain. Optional.

The request body is a JSON object (ApiSmartCodeSiteCreate).

Full reference, request and response samples

Updates the existing Smart Code site by site id

PUT https://webapi.mymarketing.co.il/api/smartcodesite/{id}
ParameterInTypeDescription
idpathinteger Required.
namebodystring Required.
domainsbodystringYour website. Only required in a Post endpoint
group_idbodyinteger
mailing_list_idbodyinteger
allowed_ipsbodystringYour allowed ips. Optional.
versionbodyinteger
tracker_domainbodystringYour tracker domain. Optional.

The request body is a JSON object (ApiSmartCodeSiteUpdate).

Full reference, request and response samples

Delete a given smart Code site

DELETE https://webapi.mymarketing.co.il/api/smartcodesite/{id}
ParameterInTypeDescription
idpathintegerthe smart code id. Can be found using the endpoint "Get a list of the account's Smart Code sites" Required.

Full reference, request and response samples

This reference is based on the ActiveTrail API documentation, where you can also test each endpoint with your own API key.