الحملات
GET https://nootfy.com/api/campaigns/
curl --request GET \
--url 'https://nootfy.com/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.com/api/campaigns/' \
--header 'Authorization: Bearer {api_key}' \
المتغيرات | التفاصيل | الوصف |
---|---|---|
page | إختياري رقم صحيح | رقم الصفحة التي تريد الحصول على النتائج منها. 1 . |
results_per_page | إختياري رقم صحيح | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Defaults to 25 . |
{
"data": [
{
"id": 1,
"pixel_key": "1234567890abcdef",
"name": "Example",
"domain": "example.com",
"branding": {
"name": "",
"url": ""
},
"email_reports_is_enabled": true,
"email_reports_last_datetime": "2019-05-22 23:40:17",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-28 13:06:50"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://nootfy.com/api/campaigns?&page=1",
"last": "https://nootfy.com/api/campaigns?&page=1",
"next": null,
"prev": null,
"self": "https://nootfy.com/api/campaigns?&page=1"
}
}
GET https://nootfy.com/api/campaigns/{campaign_id}
curl --request GET \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"pixel_key": "1234567890abcdef",
"name": "Example",
"domain": "example.com",
"branding": {
"name": "",
"url": ""
},
"email_reports_is_enabled": true,
"email_reports_last_datetime": "2019-05-22 23:40:17",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-28 13:06:50"
}
}
POST https://nootfy.com/api/campaigns
المتغيرات | التفاصيل | الوصف |
---|---|---|
domain_id | إختياري رقم صحيح | - |
name | إجباري نص | - |
domain | إجباري نص | - |
branding_name | إختياري نص | - |
branding_url | إختياري نص | - |
email_reports | إختياري مصفوفة | معرفات معالج الإخطار |
is_enabled | إختياري منطق (true - false) | - |
curl --request POST \
--url 'https://nootfy.com/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
--url 'https://nootfy.com/api/campaigns' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'domain=example.com' \
{
"data": {
"id": 1
}
}
POST https://nootfy.com/api/campaigns/{campaign_id}
المتغيرات | التفاصيل | الوصف |
---|---|---|
domain_id | إختياري رقم صحيح | - |
name | إختياري نص | - |
domain | إختياري نص | - |
branding_name | إختياري نص | - |
branding_url | إختياري نص | - |
email_reports | إختياري مصفوفة | معرفات معالج الإخطار |
is_enabled | إختياري منطق (true - false) | - |
curl --request POST \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://nootfy.com/api/campaigns/{campaign_id}
curl --request DELETE \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.com/api/campaigns/{campaign_id}' \
--header 'Authorization: Bearer {api_key}' \