Skip to main content
GET/point-campaign/?page={page_number}

Get point campaigns

You can return all of your point campaigns.

Attributes

Optional unless marked required

pageinteger
Page number

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/point-campaign/?page={page_number}" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 15,
"name": "Spring loyalty campaign",
"start_date": "2026-11-17T16:01:19+01:00",
"end_date": "2026-12-17T16:01:19+01:00",
"created_at": "2026-11-17T15:01:19.426098Z",
"status": 1,
"assigned_events": [],
"assigned_product_events": [],
"revenue_goal": 1000,
"query_map": {}
}
]
}

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
ID of the loyalty campaign.
results[].namestring
Name of the loyalty campaign.
results[].start_datestring (date-time)nullable
When the campaign starts, ISO 8601 in the timezone of the API key's agent; null if no start date is set.
results[].end_datestring (date-time)nullable
When the campaign ends, ISO 8601 in the timezone of the API key's agent; null if no end date is set.
results[].created_atstring (date-time)
When the campaign was created, ISO 8601.
results[].statusinteger
Status of the campaign: 1 draft, 2 pending, 3 active or 4 finished.
results[].assigned_eventsarray of integer
IDs of the events the campaign's rules react to.
results[].assigned_product_eventsarray of integer
Product event types the campaign's rules react to, for example 2 (purchase).
results[].revenue_goalintegernullable
Revenue the campaign aims to bring in, or null if not set.
results[].query_mapobject
Audience filters of the campaign: contacts must match include and not match exclude.
results[].query_map.excludeobject
Filters for contacts left out of the campaign.
results[].query_map.exclude.listsarray
A list of lists assigned to the user.
results[].query_map.exclude.segmentsarray of objects
Segments to leave out, each as an object with the segment's id.
results[].query_map.exclude.attributesarray of objects
Attribute filters to leave out, each with the attribute id and its filters.
results[].query_map.includeobject
Filters a contact must match to take part in the campaign.
results[].query_map.include.listsarray
A list of lists assigned to the user.
results[].query_map.include.segmentsarray of objects
Segments a contact must be in, each as an object with the segment's id.
results[].query_map.include.attributesarray of objects
Attribute filters a contact must match, each with the attribute id and its filters.
note

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