Skip to main content
GET/webpush-campaign/

Get webpush campaigns

You can return a list of all webpush campaigns.

Results are paginated: follow next to get the next page (see Response pagination).

curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/webpush-campaign/"

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 18,
"description": "",
"type": 1,
"eta": "2026-11-24T14:03:57Z",
"name": "Spring sale push",
"status": 1,
"messages": ,1 item
"recipients": ,6 fields
"recipients_count": 0,
"created_at": "2026-11-17T15:03:58.451279Z",
"updated_at": "2026-11-17T15:03:58.451303Z",
"category": null,
"ttl": 86400,
"user_activity_schedule": false,
"advance_filtering": null,
"multiple_domains_warning": false,
"statistics": ,4 fields
"folder": null
},
{
"id": 17,
"description": "",
"type": 1,
"eta": "2026-11-24T13:55:18Z",
"name": "20261117-1551-Spring sale push, last day",
"status": 2,
"messages": ,1 item
"recipients": ,6 fields
"recipients_count": 0,
"created_at": "2026-11-17T14:55:19.229725Z",
"updated_at": "2026-11-17T14:55:19.229741Z",
"category": null,
"ttl": 86400,
"user_activity_schedule": false,
"advance_filtering": null,
"multiple_domains_warning": false,
"statistics": ,4 fields
"folder": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the campaign.
results[].descriptionstring
Campaign description.
results[].typeinteger
Campaign type. 1 = manual, 2 = automated.
results[].etastring (date-time)nullable
A DateTime when the campaign is scheduled to be sent. null if sent immediately.
results[].namestring
A Webpush campaign name.
results[].statusinteger
Campaign status. 1 = draft, 2 = sent/active.
results[].messagesarray of objects
A list of message objects (see Webpush Message model for field details).
results[].messages[].idinteger
A unique identifier for the campaign.
results[].messages[].namestring
A Webpush campaign name.
results[].messages[].message_idinteger
ID of the webpush message.
results[].messages[].message_titlestring
Title of the notification, up to 64 characters.
results[].messages[].message_bodystring
Text of the notification. Template tags are allowed; HTML is removed.
results[].messages[].message_badgestring (URL)nullable
URL of the large image shown at the top of the notification (Windows only).
results[].messages[].message_iconstring (URL)nullable
URL of the small icon shown in the notification.
results[].messages[].message_urlstring (URL)
URL opened when the notification is clicked.
results[].messages[].message_require_interactionboolean
Whether the notification stays on screen until the contact interacts with it.
results[].messages[].message_doughnut_titlestring
Label of the left action button.
results[].messages[].message_doughnut_urlstring
URL opened by the left action button.
results[].messages[].message_actionsboolean
Whether the two action buttons are shown.
results[].messages[].message_coffee_titlestring
Label of the right action button.
results[].messages[].message_coffee_urlstring
URL opened by the right action button.
results[].recipientsobject | array of integernullable
Segment query definition used to target recipients.
results[].recipients_countintegernullable
Number of recipients matching the segment at the time of query.
results[].created_atstring (date-time)
ISO 8601 DateTime when the campaign was created.
results[].updated_atstring (date-time)
ISO 8601 DateTime when the campaign was last updated.
results[].categoryinteger or nullnullable
Deprecated (replaced by folders). Read-only. Existing campaigns may return a legacy category value; new campaigns always return null. Folder assignment will be available in the next API version.
results[].ttlinteger
Time-to-live in seconds.
results[].user_activity_scheduleboolean
Whether user activity schedule is enabled.
results[].advance_filteringobjectnullable
Advanced filtering configuration, or null.
results[].multiple_domains_warningboolean
Whether a multiple domains warning is present.
results[].statisticsobject
Campaign delivery statistics (see below).
results[].statistics.sentinteger
Number of notifications sent.
results[].statistics.scheduledinteger
Number of notifications scheduled.
results[].statistics.deliveredinteger
Number of notifications delivered.
results[].statistics.clickedinteger
Number of notifications clicked.
results[].folderintegernullable
ID of the folder the campaign is in, or null.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.