Пиксели

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://vk-cc.ru/api/v1/pixels

Пример запроса:

curl --location --request GET 'https://vk-cc.ru/api/v1/pixels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Формат
Описание
search
optional string
Поисковый запрос.
search_by
optional string
Поиск по. Possible values are: name for Имя. Defaults to: name.
type
optional string
The pixel type. Possible values are: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, twitter.
sort_by
optional string
Сортировать. Possible values are: id for Дата создания, name for Имя. Defaults to: id.
sort
optional string
Сортировать. Possible values are: desc for По убыванию, asc for По возрастанию. Defaults to: desc.
per_page
optional int
Результатов на странице. Possible values are: 10, 25, 50, 100. Defaults to: 100.
Show

API endpoint:

GET
https://vk-cc.ru/api/v1/pixels/{id}

Пример запроса:

curl --location --request GET 'https://vk-cc.ru/api/v1/pixels/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://vk-cc.ru/api/v1/pixels

Пример запроса:

curl --location --request POST 'https://vk-cc.ru/api/v1/pixels' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'type={type}' \
--data-urlencode 'value={value}'
Parameter
Формат
Описание
name
required string
The pixel name.
type
required string
The pixel type. Possible values are: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, twitter.
value
required string
The pixel ID value.
Update

API endpoint:

PUT PATCH
https://vk-cc.ru/api/v1/pixels/{id}

Пример запроса:

curl --location --request PUT 'https://vk-cc.ru/api/v1/pixels/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Формат
Описание
name
optional string
The pixel name.
type
optional string
The pixel type. Possible values are: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, twitter.
value
optional string
The pixel ID value.
Удалить

API endpoint:

DELETE
https://vk-cc.ru/api/v1/pixels/{id}

Пример запроса:

curl --location --request DELETE 'https://vk-cc.ru/api/v1/pixels/{id}' \
--header 'Authorization: Bearer {api_key}'