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
| Method | Endpoint | What it does |
|---|---|---|
GET | /api/ | Get a list of the account's Smart Code sites |
POST | /api/ | Create a new Smart Code site |
PUT | /api/ | Updates the existing Smart Code site by site id |
DELETE | /api/ | 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
| Parameter | In | Type | Description |
|---|---|---|---|
name | body | string | Required. |
domains | body | string | Your website. Only required in a Post endpoint |
group_id | body | integer | |
mailing_list_id | body | integer | |
allowed_ips | body | string | Your allowed ips. Optional. |
version | body | integer | |
tracker_domain | body | string | Your 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}
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | integer | Required. |
name | body | string | Required. |
domains | body | string | Your website. Only required in a Post endpoint |
group_id | body | integer | |
mailing_list_id | body | integer | |
allowed_ips | body | string | Your allowed ips. Optional. |
version | body | integer | |
tracker_domain | body | string | Your 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}
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | integer | the 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.