Pixels
GET https://virt.cards/api/pixels/
curl --request GET \
--url 'https://virt.cards/api/pixels/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://virt.cards/api/pixels/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros | Detalhes | Descrição |
---|---|---|
page | Opcional Inteiro | O número da página da qual você quer resultados. Padrão é 1 . |
results_per_page | Opcional Inteiro | Quantos resultados por página você deseja. Valores permitidos: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Padrão é 25 . |
{ "data": [ { "id": 1, "type": "facebook", "name": "Fb Ads", "pixel": "1234567", "last_datetime": null, "datetime": "2025-09-13 19:56:34", }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://virt.cards/api/pixels?page=1", "last": "https://virt.cards/api/pixels?page=1", "next": null, "prev": null, "self": "https://virt.cards/api/pixels?page=1" } }
GET https://virt.cards/api/pixels/{pixel_id}
curl --request GET \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "facebook", "name": "Fb Ads", "pixel": "1234567", "last_datetime": null, "datetime": "2025-09-13 19:56:34", } }
POST https://virt.cards/api/pixels
Parâmetros | Detalhes | Descrição |
---|---|---|
type | Obrigatório String | Valores permitidos: facebook , google_analytics , google_tag_manager , linkedin , pinterest , twitter , quora , tiktok , snapchat |
name | Obrigatório String | - |
pixel | Obrigatório String | - |
curl --request POST \
--url 'https://virt.cards/api/pixels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=facebook' \
--form 'name=Facebook' \
--form 'pixel=12345678' \
--url 'https://virt.cards/api/pixels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=facebook' \
--form 'name=Facebook' \
--form 'pixel=12345678' \
{ "data": { "id": 1 } }
POST https://virt.cards/api/pixels/{pixel_id}
Parâmetros | Detalhes | Descrição |
---|---|---|
type | Opcional String | Valores permitidos: facebook , google_analytics , google_tag_manager , linkedin , pinterest , twitter , quora , tiktok , snapchat |
name | Opcional String | - |
pixel | Opcional String | - |
curl --request POST \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Facebook New Name' \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Facebook New Name' \
{ "data": { "id": 1 } }
DELETE https://virt.cards/api/pixels/{pixel_id}
curl --request DELETE \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://virt.cards/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \