SDK reference
Marketing
GET/
What the app loads first: settings, brand kit, sending state and readiness, Mail domains, approvers, members, limits and what the caller may do.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/meta' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sender, physical address, topics, approvals, frequency cap, send-time default, UTM and double opt-in (Marketing admins), over version.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/settings' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"sender": {
"name": "Example",
"localPart": "example"
},
"physicalAddress": "example",
"topics": [
{
"id": "<id>",
"name": "Example",
"basis": "optIn"
}
],
"approvals": {
"required": true,
"approvers": [
"example"
],
"needed": "one",
"expiryDays": 1
},
"frequencyCap": {
"messages": 1,
"days": 1
},
"sendTime": {
"defaultHour": 1,
"timeZone": "example"
},
"utm": {
"enabled": true,
"source": "example",
"medium": "example"
},
"doubleOptIn": true,
"version": 1
}'PUT/
The brand kit marketing email is drawn in: logo, light and dark colours, font and corner radius (Marketing admins).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/brand' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"colors": {
"page": "example",
"card": "example",
"text": "example",
"muted": "example",
"link": "example",
"button": "example",
"buttonText": "example",
"border": "example"
},
"font": "system",
"radius": 1,
"version": 1
}'POST/
Lifts the reputation guard's pause once the audience is cleaned (Marketing admins).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/resume' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Messages this month and today (the plan's month, warm-up's day) and the plan's limits.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/usage' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The org's numbers per UTC day (from, to as YYYYMMDD; the last 30 days by default) and their totals.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/stats/daily' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
An address's consent, its history (newest first), its engagement summary and recent opens, clicks and unsubscribes; with brandId, that brand scope's consent and history; brands lists each brand scope's status for the address.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/people/{address}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Sets an address's consent by hand with a note as the evidence (Marketing admins); subscribing clears a bounce or complaint.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/people/{address}/consent' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"status": "subscribed",
"note": "example"
}'GET/
Static and suppression lists with their member counts.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A static list (people added by hand, CSV or API) or a suppression list (never sent to), for email or texts.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames a list or changes its description, over version.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a list no segment or unsent campaign uses (its members go in the background).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A page of a list's members.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}/members' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds people by address (with merge fields for people not in Customers); admins may record the consent they gave elsewhere, with a note.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}/members' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"members": [
{
"address": "example"
}
]
}'POST/
Removes people from a list by address.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}/members/remove' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"addresses": [
"example"
]
}'POST/
Starts a CSV import: small files with the request (content), larger ones to the returned upload URL.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/lists/{listId}/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileName": "Example",
"size": 1
}'GET/
A list import's progress: rows read, added, skipped and why.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/imports/{jobId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The file's columns, a few rows and the suggested mapping.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/imports/{jobId}/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Runs the import with a mapping (a target per column: email, phone, firstName, … or blank) and, for admins, the consent people gave.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/imports/{jobId}/start' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"mapping": [
"example"
]
}'GET/
Segments, by name, with their last size estimate.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A segment: OR-groups of Customers filters (relative dates $daysAgo:N), engagement and list conditions.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"groups": [
{
"source": {}
}
]
}'POST/
The first people a segment (saved or not) reaches, as the caller sees Customers: the builder's live preview.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"groups": [
{
"source": {}
}
]
}'GET/
One segment with its groups and estimate.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments/{segmentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Replaces a segment's name, description and groups over version (its estimate is cleared).
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments/{segmentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"groups": [
{
"source": {}
}
],
"version": 1
}'DELETE/
Deletes a segment no unsent campaign or running journey uses.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments/{segmentId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Counts the segment's people in the background (deduplicated by address); the result lands on the segment.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/segments/{segmentId}/estimate' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"channel": "email"
}'GET/
Templates campaigns start from.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A template: a block document campaigns can start from.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"document": {}
}'GET/
One template with its document.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/templates/{templateId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a template's name, description or document over version.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/templates/{templateId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a template (campaigns made from it keep their copy).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/templates/{templateId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Saved blocks in the content library.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/blocks' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Saves a block (with its columns, if any) to the content library.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/blocks' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"block": {}
}'DELETE/
Deletes a saved block.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/blocks/{blockId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Images on the content library's CDN host.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/images' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
An image upload: the URL the browser PUTs the file to; then finish. PNG, JPEG, GIF or WebP.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/images' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"contentType": "example",
"bytes": 1
}'POST/
Finishes an upload: the file is checked and the image goes on the CDN host.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/images/{imageId}/finish' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes an image (messages already sent keep showing it until it expires from caches).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/images/{imageId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A message as one person would get it (a contact or lead the caller can read, else placeholder values), in a scheme and device.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/preview' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"campaignId": "<campaignId>",
"document": {},
"topicId": "<topicId>"
}'POST/
A test to one to five members: "[Test]" in the subject, links work but don't count.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/test' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"userIds": [
"example"
]
}'GET/
Campaigns, newest first, with their numbers once sending started (status narrows them).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A draft: a name, a topic, an audience (segments and lists to include and exclude) and content (a document, a template, or the starter).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"topicId": "<topicId>"
}'GET/
One campaign, and while it's a draft what stops it being sent (problems).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes a draft over version; changing one waiting for approval, or approved, withdraws the request.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a campaign that never sent.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A new draft with the same content and audience.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/duplicate' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Asks the org's approvers (other than the caller) to approve the campaign as it stands.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/request-approval' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
An approver approves or declines (never their own request).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/decide' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"decision": "approved",
"version": 1
}'POST/
Schedules for at (epoch ms; now when left out), optionally spread over a day to each person's usual hour.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/schedule' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
Takes a scheduled campaign back (an approval stays).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/unschedule' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
Pauses a sending campaign within a page of recipients.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/pause' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Resumes a paused campaign where it stopped.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/resume' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Cancels a scheduled, sending or paused campaign: nobody not yet sent it gets it.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/cancel' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The campaign and its numbers (sent, delivered, opened, clicked, unsubscribed, bounced, conversions, revenue, …).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/results' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The send's recipients and what happened to each, a page at a time.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/recipients' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Won opportunities credited to the campaign, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/campaigns/{campaignId}/conversions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Journeys, newest first, with how many people entered, are in them, completed and met the goal.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A draft journey (the definition is checked when it's published; problems lists what's missing).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'POST/
What a text step costs per message to each priced destination, for its text as written.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/sms-estimate' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"text": "example"
}'GET/
One journey with its draft, versions and approval, and what stops the draft going live (problems).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes the name, description or draft over version; the live version is untouched until the next publish.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a journey that never went live.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A new draft journey from this one's draft.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/duplicate' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Asks the org's approvers (other than the caller) to approve the draft as it stands.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/request-approval' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
An approver approves or declines the draft (never their own request).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/decide' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"decision": "approved",
"version": 1
}'POST/
Publishes the draft as the next version and runs it; people already in it stay on theirs.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/publish' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
Pauses a running journey: nobody enters and nobody moves on until it resumes.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/pause' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Resumes a paused journey: everyone carries on from where they held.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/resume' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Stops a journey for good: everyone in it leaves.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/stop' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Puts someone into a journey that takes entries by API: a Customers record, or an address with merge fields.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/enter' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"recordId": "<recordId>",
"email": "person@example.com",
"phone": "example"
}'GET/
The journey's people and where each is, a page at a time.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/people' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One person in the journey, by their email, mobile or rec:<record id>.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/people/{key}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Totals, each step's numbers (entered, completed, exited, goal reached) and each email and text step's send.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/stats' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A published version as it was frozen.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/journeys/{journeyId}/versions/{version}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Forms with their submission and spam counts.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A form: fields mapped to lead or contact fields, defaults, a consent box (topics and wording) and what happens after.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"object": "lead",
"fields": [
{
"id": "<id>",
"type": "text"
}
]
}'GET/
One form, with its consent wordings and the HTML that embeds it.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms/{formId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Replaces a form over version; a new consent wording becomes a new version and the old ones are kept.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms/{formId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"object": "lead",
"fields": [
{
"id": "<id>",
"type": "text"
}
],
"version": 1
}'DELETE/
Deletes a form no running journey enters people from.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms/{formId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The form's submissions, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/forms/{formId}/submissions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Landing pages with their views.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A landing page: a block document with forms, at a slug in the org.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"slug": "example"
}'GET/
One landing page (its draft and what was published) and its public address.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Changes the draft, name or address over version.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
Puts the draft live at /p/<org>/<slug> on the Marketing app.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages/{pageId}/publish' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'POST/
Takes a page down until it is published again.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages/{pageId}/unpublish' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"version": 1
}'DELETE/
Deletes a landing page and frees its address.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/pages/{pageId}?version=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/personas' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Get a persona
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/marketing/personas/segments/{segmentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/public/personas' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/public/personas/{code}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"