Skip to content

Models

Every body the routes take and answer. A field marked always is in every answer; the others are left out when they have no value.

Something bought on top of a plan, by the month. Operators manage add-ons on the operators’ site.

FieldTypeDescription
created_at (always)string (date-time)
grants (always)AddonGrants
id (always)string
kind (always)AddonKind (one of capacity, feature, service)
min_planstringThe plan an app must be on at least to have it: "" for any plan with a price.
name (always)string
pricesarray of Price
publicboolean
scope (always)AddonScope (one of app, workspace)
sortinteger
updated_at (always)string (date-time)

What one of an add-on gives: limits added to the plan’s, and features.

FieldTypeDescription
featuresarray of string
limits (always)PlanLimits

What an add-on is.

One of: capacity, feature, service.

Whose an add-on is: one app’s, or the whole workspace’s.

One of: app, workspace.

Answers what the guest wrote from the help center’s published articles (CollectionID’s only, when it names one), citing the articles it used, then asks “Did that help?”, leaving by yes or no. It leaves by no without a word when the model is not sure, or the app has no model on.

FieldTypeDescription
collection_idstring

Asks for a reply to a conversation, Instruction saying what it should say, if anything.

FieldTypeDescription
instructionstring

Asks for Text said another way.

FieldTypeDescription
text (always)string
tone (always)AITone (one of friendlier, formal, shorter, clearer, fix)

How a rephrasing should read.

One of: friendlier, formal, shorter, clearer, fix.

Asks for Texts in the language To (a BCP 47 tag, such as fr or pt-BR). For a conversation, Texts is empty and To may be: the conversation’s messages are translated into To, or the teammate’s language.

FieldTypeDescription
textsarray of string
tostring

Asks for a message or an article: drafted from Prompt, or, with Text, Text improved as Prompt says. Language is what to write in; empty is the app’s default.

FieldTypeDescription
kind (always)AIWriteKind (one of message, article)
languagestring
prompt (always)string
textstring

What is being written.

One of: message, article.

Where a line of content sits across its width. A carousel screen’s alignment is start or center; a block’s may be end too.

One of: start, center, end.

GET /admin/v1/connection: who and what a request’s credential reaches, which an integration shows as its connection’s name and checks a new token with.

FieldTypeDescription
app_id (always)string
app_name (always)string
permissions (always)array of stringWhat it may do in the app (TokenScopes, and the finer permissions of StaffPermissions it holds).
user_id (always)stringUserID and UserName are the teammate the credential acts as.
user_name (always)string
workspace_id (always)string

The name of something a person did in the app that no server sees for itself. These are the standard ones, which PurrCRM’s package records for every app; an app’s own events are sent beside them by name, and PurrCRM takes each that the app defines. What the backend already sees (a request, a claim, an order, a sign-in) is recorded by the server that sees it, never sent by the app.

One of: app_opened, session_ended, screen_viewed, app_updated, push_permission_changed, location_permission_changed, push_opened, link_opened, page_viewed.

What Apple said of a person’s token: whether an Apple Ads campaign brought them, and which.

FieldTypeDescription
ad_group_idinteger
ad_idinteger
attribution (always)boolean
campaign_idinteger
click_datestring
conversion_typestring
countrystring
keyword_idinteger
org_idinteger

POST …/apple-ads-attribution: the token the app had from AAAttribution.attributionToken(), within a day of having it.

FieldTypeDescription
token (always)string

Source is LinkByStaff when left out.

FieldTypeDescription
descriptionstring
name (always)string
paramsarray of LinkParam
path (always)string
screenstring
sourceLinkSource (one of staff, app)
web_urlstring

POST /admin/v1/app-links/import.

FieldTypeDescription
links (always)array of AppLinkBody

PUT /guest/v1/app-links: what a build of the app declares, with the digest the SDK sent on its check-ins (LinksDigest), which PurrCRM checks against the links.

FieldTypeDescription
app_version (always)string
digest (always)string
links (always)array of DeclaredLink

One of: live, test.

An app’s webhooks: GET /staff/v1/apps/{id}/webhooks for its workspace’s owners and admins, and GET /admin/v1/webhooks for whoever edits its workflows. The secret is never answered, only that there is one, its last four characters and when it was made.

FieldTypeDescription
endpoint_hosts (always)array of stringThe app’s webhook endpoints’ hosts, which every webhook may post to as well, for as long as the endpoint is there.
hosts (always)array of stringThe names a webhook step may post to; “*.example.com” is any name under example.com.
sealing (always)booleanThe deployment keeping secrets: with none, no secret is made and no webhook posts.
secretWebhookSecret
secretsarray of StepSecretThe app’s step secrets, by name: values a webhook step sends in a header, or the address a team-chat step posts to, which are never answered, only their last four characters.

One published article, whole.

FieldTypeDescription
blocks (always)array of Block
collectionCollectionThe collection it is in, when it is in one.
id (always)string
languagestringThe language it is in: the one asked for when it has a translation into it, else the app’s default. Languages are every language it can be read in, the default first (the web’s hreflang).
languagesarray of string
out_of_datebooleanSays the translation it is read in was written from a default that has changed since: it may be out of date.
related (always)array of ArticleSummaryOther articles in the same collection, at most three.
slug (always)string
summarystring
title (always)string
updated_at (always)string (date-time)

The guest saying whether an article helped. Asked again, the newer answer is kept.

FieldTypeDescription
helpful (always)boolean

Answers a search: the best matches first.

FieldTypeDescription
items (always)array of ArticleSummary
languagestringAs Collections’ is: a search looks at the articles’ words in it, and at the default’s where an article has none.

ArticlesConfig suggests up to Limit (1 to MaxSuggested; zero is 3) published articles the guest may read, found by Query or, when it is empty, by the guest’s own words in the conversation, from CollectionID’s only when one is named; then asks “Did that help?”, leaving by yes or no. No article found leaves by no.

FieldTypeDescription
blocksarray of Block
collection_idstring
limitinteger
querystring

An article in a list.

FieldTypeDescription
collectionstringThe slug of the collection it is in; empty for none.
id (always)string
slug (always)string
summarystring
title (always)string
updated_at (always)string (date-time)

The bot’s question and the guest’s reply buttons.

FieldTypeDescription
blocks (always)array of Block
buttons (always)array of BotButton

AssignConfig gives the conversation to TeamID, and to one of its teammates by the team’s assignment rules, or to TeammateID (a user id); at least one.

FieldTypeDescription
team_idstring
teammate_idstring

A picture in a part (Part.Attachments), or a file (Part.Files).

FieldTypeDescription
bytes (always)integer
content_type (always)string
expires_at (always)string (date-time)
id (always)string
namestringA file’s name, as it was sent; absent for a picture. Its URL downloads it under this name.
url (always)stringWhere to fetch it, until ExpiresAt; ask for the conversation again for a new one after that.

Asks for somewhere to upload a picture, or a file.

FieldTypeDescription
bytes (always)integerThe size: a picture’s at most MaxAttachmentBytes, a file’s at most MaxFileBytes.
content_type (always)stringOne of AttachmentTypes, or of FileTypes for a file.
namestringA file’s name, which it is shown and downloaded with: 1 to MaxFileNameRunes characters, no folders. Left out for a picture.

Where to upload a picture: a form POST to URL with Fields first and the file last, as a field named “file”. The picture is sent by naming ID in a MessageBody before ExpiresAt.

FieldTypeDescription
expires_at (always)string (date-time)
fields (always)object of string
id (always)string
max_bytes (always)integer
url (always)string

What change of an attribute fires its trigger.

One of: “, set, cleared, from_to, above, below.

The attribute that changes, and how (Change): any change (or one to Value, when it is set), its being set or cleared, a change from From to To, or a number crossing above or below Value. Values are read as the attribute’s type reads them.

FieldTypeDescription
attribute (always)string
changeAttributeChange (one of “, set, cleared, from_to, above, below)
fromstring
tostring
valuestring

Who wrote a part, as the guest is shown it: a member of staff by their first name, never their account or their address.

FieldTypeDescription
kind (always)AuthorKind (one of guest, teammate, bot, system)
namestringA teammate’s first name or the bot’s name; empty for the guest and the messenger.

Who wrote a part.

One of: guest, teammate, bot, system.

What a screen’s background is.

One of: plain, color, gradient, image.

A short message over a screen.

FieldTypeDescription
blocks (always)array of BlockParagraphs and headings only, at most MaxBannerBlocks.
dismissible (always)booleanDismissible shows a close button.
linkstringWhere tapping the banner goes, as Block.Link; empty for nowhere.
style (always)BannerStyle (one of inline, floating)

How a banner comes in.

One of: slide, fade.

Where a banner is drawn.

One of: inline, floating.

One Identify of a batch, and who it is about.

FieldTypeDescription
attributesobject of anyThe app’s custom attributes, by name, each held to its definition: a string, a number, true or false, a date as 2026-09-27 or an RFC 3339 time, or a list of strings. Null removes the value. One PurrCRM computes is refused; one the app does not define is made on first sight, its type worked out, for review, unless the app’s strict data refuses it.
companiesarray of stringThe external ids of companies the person is in (U5-2), at most MaxIdentifyCompanies: each one the app has not told PurrCRM of is made with nothing but its id, for a later PUT /server/v1/companies/{external_id} to fill in. Leaving them out takes the person out of none.
consentcrm.Consent
display_namestringWhat they are called, at most 100 characters.
emailstringTheir address, which PurrCRM sends email to.
external_id (always)string
languagestringTheir language as a BCP 47 tag (“en”, “en-GB”).
phonestringTheir mobile number in international form, +44 7700 900123 (U2-3): kept in E.164, +447700900123. Spaces, dashes, dots and brackets are dropped, and a leading 00 is read as +; "" removes it.
providerstringHow they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters.
signed_up_atstring (date-time)When they made their account.
time_zonestringTheir IANA zone (“Europe/London”).

What became of one Identify of a batch: whether it made the person, or the code and the reason it was refused.

FieldTypeDescription
codestring
createdboolean
errorstring
external_id (always)string
index (always)integer

POST /public/v1/billing/webhook/{provider}: whether the event was acted on. An event seen before, one about another region’s customer, and one that says nothing PurrCRM uses are taken and not acted on.

FieldTypeDescription
handled (always)boolean

One block of content. Only the fields its Type names are set.

FieldTypeDescription
alignAlign (one of start, center, end)A text block’s, or an emoji’s; empty is the screen’s.
altstringWhat a picture shows, for a guest who cannot see it. Required with ImageURL.
aspectImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4)Aspect, Fit and Shape are a picture’s, as CarouselImage’s are.
colorstringA text block’s colour, or a callout’s tint: empty is the screen’s text colour (ink, or white or near-black over a background of the screen’s own, by contrast).
emojistringAn emoji block’s, or the one before a callout’s words.
fitImageFit (one of cover, contain)
image_urlstring
itemsarray of ListItem
labelstring
levelintegerA heading’s, 1 to MaxHeadingLevel.
linkstringWhere a button or a picture goes: a path in the app, which opens only if the app’s allow-list names it, or an https URL, which opens in the browser.
shapeImageShape (one of rounded, circle, square)
sizestringA word of the block’s own: a TextSize for a paragraph, a heading or a list, an ImageSize for a picture, a SpacerSize for a spacer. Empty is the default carousel_style.json gives the block: a heading’s follows its level, a paragraph’s is body.
spansarray of Span
styleButtonStyle (one of primary, secondary, text)A button’s; empty is primary.
toneCalloutTone (one of info, good, warn)A callout’s tint when it has no Color; empty is info.
type (always)BlockType (one of paragraph, heading, bullets, numbers, image, button, divider, eyebrow, callout, checklist, spacer, emoji)
weightTextWeight (one of regular, medium, bold)A paragraph’s or a heading’s; empty is regular for a paragraph and bold for a heading.

What one block of content is. Every message, post, banner, carousel screen, article and email is a list of blocks, never HTML: the app draws each natively, and PurrCRM renders email from the same list. A block type this app does not know is not drawn.

One of: paragraph, heading, bullets, numbers, image, button, divider, eyebrow, callout, checklist, spacer, emoji.

One reply button: tapping it answers with its ID, and shows the guest’s answer as Label.

FieldTypeDescription
id (always)string
label (always)string

What a help-bot part asks of the guest.

One of: says, asks, collects, suggests, hands_off, resolves.

What the bot says.

FieldTypeDescription
blocks (always)array of Block

What a help-bot part asks of the guest, by Kind.

FieldTypeDescription
articlesarray of ArticleSummaryA suggestion’s, each opened in the help center.
buttonsarray of BotButtonAn ask’s, and a suggestion’s yes and no.
collectCollectField (one of text, email, order_ref)The data a collecting part asks for.
kind (always)BotKind (one of says, asks, collects, suggests, hands_off, resolves)
order_refOrderRefWhat a collected order reference looks like, the app’s own: with Collect order_ref, so that the app checks an answer as PurrCRM will.
replyReplyExpectationA hand-off’s: how soon a person answers.

Answers the bot part PartID: with one of its buttons, by Button, or with the data it collects, as Value.

FieldTypeDescription
buttonstring
part_id (always)string
valuestring

One of a condition’s ways on: the first whose rule the guest matches is taken, and else when none is.

FieldTypeDescription
id (always)string
label (always)string
rule (always)Rule

A CSV of the people to erase, one a line, each named by their id in the app, their email address or their contact’s id; a header line of one of external_id, email or guest_id is skipped. DryRun says who would go and erases nobody; Log logs an erasure request, done, for each contact erased.

FieldTypeDescription
csv (always)string
dry_runboolean
logboolean
requesterstringWho asked, for the requests logged.

What a carousel’s button does.

One of: next, screen, back, end, link, permission.

A carousel’s buttons’ shape.

One of: pill, rounded.

How a button is drawn: primary is filled with the accent, secondary is outlined, text is the words alone.

One of: primary, secondary, text.

A callout’s tint by what it says.

One of: info, good, warn.

Screens the guest moves through, which may branch: each button and each answer of a choice says where it goes (a screen, or the end), and a screen’s Next says where Next and a forward swipe go. Screens may loop back (“Try again”); every screen the guest can reach has a way to the end, and a screen nothing leads to is kept but never shown.

FieldTypeDescription
lockedbooleanA carousel the guest leaves only through its own buttons, for onboarding they must finish: no close button and no Skip, and a drag down, a tap outside and the system’s back do nothing. Left out (false) is the usual carousel, which the guest may close at any time: a carousel is dismissible unless it says otherwise.
presentationCarouselPresentation (one of sheet, card, full)How it is shown; empty is a sheet.
progressCarouselProgress (one of dots, bar, none)What the top bar shows of how far the guest is; empty is dots for a carousel of one line of at most seven screens, with no choice or button that branches, and a bar otherwise.
screens (always)array of CarouselScreen1 to MaxCarouselScreens, in the editor’s order, which is also where a screen’s Next goes when it names none.
skipbooleanSkip shows “Skip” in the top bar in place of the close button: it closes the carousel as the close button does. A locked carousel has none.
startstringThe id of the screen it opens on; empty is the first.
styleCarouselStyleThe carousel’s look, which a screen’s own Style overrides field by field; left out is the defaults.

What is behind a screen. Text over a background of colour, gradient or image is drawn white or near-black, whichever reads better against it, unless a block sets its own colour.

FieldTypeDescription
angleintegerA gradient’s direction in degrees, 0 to 359: 0 runs from the bottom up, 90 from left to right, as CSS’s linear-gradient.
colorstringA colour’s, and a gradient’s first stop.
color2stringA gradient’s last stop.
image_urlstringAn image background’s, an https address. It is a decoration, with no alt text: what it says belongs in the blocks.
kind (always)BackgroundKind (one of plain, color, gradient, image)
scrimScrim (one of none, light, dark)Scrim darkens or lightens an image under the words; empty is none.

One of a screen’s buttons.

FieldTypeDescription
do (always)ButtonAction (one of next, screen, back, end, link, permission)What it does, and says which of the rest it has.
id (always)stringNames it in receipts and in staff’s Records: letters, digits, - and _, at most 40, unique among the carousel’s buttons and options.
label (always)string
linkstringWhat link opens, as Block.Link.
permissionCarouselPermission (one of notifications, location)What permission asks the phone for. The app asks the way it always does, and a guest who refused before is sent to the phone’s settings instead.
screenstringWhere screen goes (a screen’s id or “end”), and where permission goes once the phone has answered (empty is the screen’s Next).
styleButtonStyle (one of primary, secondary, text)Empty for primary.

A question on a screen, answered by tapping options.

FieldTypeDescription
multiplebooleanMultiple lets the guest pick several, then Continue to the screen’s Next; a single choice goes on as soon as one is tapped, to that option’s Next.
options (always)array of CarouselOption2 to MaxCarouselOptions.

A carousel and what staff keep beside it, which the app is never sent (the check-in sends the guest.Carousel alone, without the screens’ names): where a choice’s answer is kept on the guest, and the app’s own events a button or an option records.

FieldTypeDescription
lockedbooleanA carousel the guest leaves only through its own buttons, for onboarding they must finish: no close button and no Skip, and a drag down, a tap outside and the system’s back do nothing. Left out (false) is the usual carousel, which the guest may close at any time: a carousel is dismissible unless it says otherwise.
presentationCarouselPresentation (one of sheet, card, full)How it is shown; empty is a sheet.
progressCarouselProgress (one of dots, bar, none)What the top bar shows of how far the guest is; empty is dots for a carousel of one line of at most seven screens, with no choice or button that branches, and a bar otherwise.
recordsarray of CarouselRecordRecords records one of the app’s own events each time the guest taps a button, or picks an option, so that a workflow can start from it.
save_toarray of CarouselSaveToSaveTo writes a screen’s choice’s answer to one of the guest’s custom attributes as it is made: the option’s label to a string attribute, the labels picked to a list.
screens (always)array of CarouselScreen1 to MaxCarouselScreens, in the editor’s order, which is also where a screen’s Next goes when it names none.
skipbooleanSkip shows “Skip” in the top bar in place of the close button: it closes the carousel as the close button does. A locked carousel has none.
startstringThe id of the screen it opens on; empty is the first.
styleCarouselStyleThe carousel’s look, which a screen’s own Style overrides field by field; left out is the defaults.

A screen’s hero picture.

FieldTypeDescription
alt (always)stringWhat it shows, for a guest who cannot see it.
aspectImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4)Aspect, Fit and Shape are empty for auto, cover and rounded.
fitImageFit (one of cover, contain)
shapeImageShape (one of rounded, circle, square)
sizeImageSize (one of small, medium, large, full)How tall it is (carousel_style.json’s hero heights); empty is medium, and full for image_full.
url (always)stringAn https address.

How a screen is laid out.

One of: centred, image_top, image_full, text.

One answer of a choice.

FieldTypeDescription
emojistringDrawn before the label; empty for none.
id (always)stringNames it in receipts and in staff’s Records, as a button’s does, and is unique among the carousel’s buttons and options.
label (always)string
nextstringWhere tapping it goes, in a single choice: a screen’s id, or “end”; empty is the screen’s Next. A multiple choice’s options have none.

What a carousel’s screen may ask the guest to allow. The app asks the way it always does, and a guest who refused before is sent to the phone’s settings instead.

One of: notifications, location.

How a carousel is shown.

One of: sheet, card, full.

What a carousel’s top bar shows of how far the guest is.

One of: dots, bar, none.

The event a button or an option records: Event, one of the app’s own, with Props, each value words that may hold personalisation tags as a workflow’s tracked event’s do (TrackEventConfig), read as the prop’s type reads it (a value that does not read is left out).

FieldTypeDescription
event (always)Name (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
propsarray of TrackProp
target_id (always)stringThe button’s or the option’s id.

One screen’s answer kept as an attribute.

FieldTypeDescription
attribute (always)string
screen_id (always)string

One screen of a carousel.

FieldTypeDescription
alignAlign (one of start, center, end)Start or center; empty is center, and start on a text screen.
backgroundCarouselBackgroundBehind the screen; left out is the sheet’s own.
blocks (always)array of Block
buttonsarray of CarouselButton0 to MaxCarouselButtons, stacked: the first is the main one. None gives the screen the app’s Next (or Done).
choiceCarouselChoiceA question the screen asks; left out for none.
id (always)stringNames the screen to the targets that go to it, and in receipts: letters, digits, - and _, at most 40, and never “end”. Unique among the carousel’s screens.
imageCarouselImageThe screen’s hero picture, apart from its blocks: above them for image_top, behind them for image_full (which need one), and a smaller one above the words for centred. A text screen has none.
layoutCarouselLayout (one of centred, image_top, image_full, text)How the screen is laid out; empty is centred.
namestringStaff’s own word for the screen, in the editor and the report. It is never sent to the app.
nextstringWhere Next, a forward swipe, a multiple choice’s Continue and a single choice’s options with no Next of their own go: a screen’s id, or “end”. Empty is the screen after this one in the list, or the end after the last.
styleCarouselStyleStyle overrides the carousel’s Style for this screen, field by field; left out is the carousel’s.
valignVAlign (one of top, center, bottom)Where the content sits in the screen’s height; empty is center for centred, bottom for image_full, and top otherwise.

A carousel’s look. Every field is optional: empty is the default (carousel_style.json’s “defaults”), and on a screen, the carousel’s.

FieldTypeDescription
accentstringAccent colours the buttons, the progress and a choice’s ticks; empty is the app’s brand accent.
button_shapeButtonShape (one of pill, rounded)
cornerCorner (one of soft, round, square)
text_scaleTextScale (one of compact, regular, large)

The plan a new workspace tries and for how many days, where the deployment takes payments. Both are the server’s own, not data: they are shown, not edited.

FieldTypeDescription
days (always)integer
plan_id (always)string

Category groups events on PurrCRM site’s dashboard and in its pickers. The standard events have the standard categories below; an app’s own event names its own (lower-case letters, digits and underscores), which may be account, app or a word of the app’s, never PurrCRM.

One of: account, app, crm.

Where a team-chat step posts.

One of: slack, teams.

Answers a check-in: what to show now, in the order to show it.

FieldTypeDescription
messages (always)array of InAppMessageThe in-app messages to show, the most important first: at most one large one (MessageKind.Large) a session, and at most one banner. A message answered again, not yet seen, is the same message: the app shows it once.
next_checkin_seconds (always)integerThe soonest the app should check in again.
send_linksbooleanAsks the app for the destinations it declares (PUT /guest/v1/app-links), once: the check-in’s LinksDigest is one PurrCRM has not been sent.
test_phonebooleanA guest staff chose as a test phone: the app offers a way to check for tests at once, rather than at the next check-in.
throttledbooleanA check-in sooner than CheckinEvery after the last: nothing new is in it, and what the app shows stays as it is. A test phone with tests waiting is never throttled.
unread (always)integerThe messenger’s unread count, a chat staff started included.
unread_notices (always)integerThe inbox’s unread count: the notices PurrCRM pushed the guest and they have not read, for the bell.

The app asking what to show: when it opens or comes back to the front, and after it sends a batch of events.

FieldTypeDescription
app_version (always)string
device_modelstring
holds_for_pagesbooleanSays the app holds a message meant for some pages (InAppMessage.Pages) until one of them is open, as HoldsForScreens does for screens: a message for some pages is never answered to an app that does not say so.
holds_for_screensbooleanSays the app holds a message meant for some screens (InAppMessage.Screens) until one of them is on: an SDK that knows how, whose host has named a screen this run. A message for some screens is never answered to an app that does not say so.
links_digeststringLinksDigest of the destinations the app declares, when it declares any: a check-in answers SendLinks for one PurrCRM has not been sent.
os_versionstringOSVersion and DeviceModel are the phone’s, as EventsBody’s (U5-3).
pagestringThe website’s page on screen (PagePath), when the app is one: the web SDK’s.
platform (always)DevicePlatform (one of ios, android, web)
screenstringThe named route on screen, when the app knows it.
session_id (always)stringThe app’s id for this time in front, drawn when it opened or came back: a guest is shown one large message a session.
time_zonestringThe phone’s IANA zone, for quiet hours and sending windows; left out when the phone does not say.

Asks for one piece of data (Blocks are the question), checks it is a Field, and keeps it on the conversation as Key, and on the guest’s custom Attribute when one is named.

FieldTypeDescription
attributestring
blocks (always)array of Block
field (always)CollectField (one of text, email, order_ref)
key (always)string

The kind of data the bot asks for.

One of: text, email, order_ref.

A group of help articles.

FieldTypeDescription
articles (always)integerHow many published articles the guest can read in it.
descriptionstring
id (always)string
slug (always)string
title (always)string

One collection and its articles, in staff’s order.

FieldTypeDescription
articles (always)array of ArticleSummary
collection (always)Collection
languagestringAs Collections’ is.

Every collection with an article in it, in staff’s order.

FieldTypeDescription
items (always)array of Collection
languagestring

PUT /server/v1/companies/{external_id}: what a company is, made when the app has none by the id. Only what is sent changes.

FieldTypeDescription
dataobject of anyThe app’s own about it, by key: a string, a number, or true or false. Null removes a key; a key not sent is left as it is. At most 50 keys.
employeesintegerHow many work there; MonthlySpend what it spends a month, in the app’s own currency.
industrystringIndustry and Plan are the app’s own words, at most 100 characters.
monthly_spendnumber
namestringWhat it is called, at most 200 characters.
peoplearray of stringThe external ids of the people to put in it, and RemovePeople of those to take out: each at most MaxPeoplePerRequest. A person PurrCRM has no contact of is left out, and named in the answer’s Missing.
planstring
remove_peoplearray of string
websitestringIts http or https address.

Answers a Company: the company, whether this made it, how many people it put in and took out, and the external ids of the people it has no contact of.

FieldTypeDescription
added (always)integer
created (always)boolean
external_id (always)string
missing (always)array of string
removed (always)integer

One test of a guest’s value.

FieldTypeDescription
name (always)string
opstring"" (the value is set), ConditionIs or ConditionIsNot.
valuestring

A condition’s branches, in order.

FieldTypeDescription
branches (always)array of Branch

What PurrCRM keeps of the guest’s choices about its pushes.

FieldTypeDescription
offers_by_push (always)boolean

PUT consent: what the guest chose in the host’s own screens, when the host lets them choose there. Only what is sent changes.

FieldTypeDescription
offers_by_pushbooleanThe guest agreeing to offers by push: a marketing push goes only to a guest who has.

One conversation, with every part the guest sees, oldest first.

FieldTypeDescription
assigneeAuthorThe member of staff answering, when one is.
awaitingstringThe id of the bot part the help bot is waiting on an answer to; empty when it waits on none.
created_at (always)string (date-time)
id (always)string
last_seq (always)integerThe newest part’s Seq, including those the guest is not shown, so a wait asked after it waits for the next.
parts (always)array of Part
reply (always)ReplyExpectation
seen_seqintegerThe newest part staff have seen: the guest’s messages up to it are shown as seen. Absent until staff have seen any.
state (always)ConversationState (one of open, snoozed, closed)Open or closed; snoozed is shown as open.
ticket_idstringThe ticket this conversation is about, when there is one.
unread (always)integerHow many staff parts the guest has not read.
updated_at (always)string (date-time)

A page of the guest’s conversations, the most recently changed first. NextBefore is there when older ones are.

FieldTypeDescription
items (always)array of ConversationSummary
next_beforestring

Where a conversation has got to. A guest is only ever shown open or closed: a conversation staff snoozed is still open to the guest who is waiting on it.

One of: open, snoozed, closed.

A conversation in a list.

FieldTypeDescription
created_at (always)string (date-time)
id (always)string
preview (always)stringThe newest part the guest sees, as a line of text.
preview_author (always)Author
state (always)ConversationState (one of open, snoozed, closed)
unread (always)integer
updated_at (always)string (date-time)

Answers a wait: the parts after the one asked after that the guest sees, and the conversation as it is now. Parts is empty when the wait ran out with nothing new.

FieldTypeDescription
awaitingstringAs Conversation.Awaiting, now.
last_seq (always)integerWhat the next wait is after: the newest part this answer read, which is the conversation’s newest unless the parts since were too many for one answer.
livestringAn opaque token for Typing and SeenSeq as this answer has them. Echoed as the next wait’s ?live=, the wait answers, with no parts, as soon as either changes too; a wait without ?live= waits for parts alone. ?live= with no value asks for the token: the wait answers at once.
parts (always)array of Part
seen_seqintegerAs Conversation.SeenSeq, now.
state (always)ConversationState (one of open, snoozed, closed)
typingAuthorThe teammate writing a reply now, by first name; absent when nobody is. It lapses by itself about TypingLapse after the teammate last typed.
unread (always)integer

How round a carousel’s corners are: its sheet, its pictures, its tiles (carousel_style.json’s radii).

One of: soft, round, square.

What the person agreed to.

FieldTypeDescription
changed_atstring (date-time)When the person made the offers choices this carries (OffersByEmail, OffersByPush), where the app keeps them. PurrCRM also learns these choices from the person directly (an email’s unsubscribe, the preference centre, the SDK’s screens, staff), and the newer choice wins:
offers_by_emailbooleanTheir agreeing to offers by email: a marketing email is sent only to a person who has.
offers_by_pushbooleanTheir agreeing to offers by push: a marketing push is sent only to a person who has, when PurrCRM pushes for the app itself.
product_eventsbooleanTheir agreeing to what they do in the app being recorded (“Help improve …”): false drops every batch their app sends.
smsbooleanSMS and WhatsApp are their agreeing to be written to on that channel at all, at their Phone (U2-3): no message goes on it to a person who has not. ChangedAt holds them as it holds the offers switches, and a STOP the person sends on the channel is a choice made there.
whatsappboolean

One of a new ticket’s fields, as text its type reads.

FieldTypeDescription
key (always)string
value (always)string

Whether the SDK’s screens follow the phone’s dark mode.

One of: system, light, dark.

A request to log, or its change, whole. ReceivedAt left out is now; DueAt left out is DataRequestDays after it. Status left out is open.

FieldTypeDescription
due_atstring (date-time)
guest_idstring
kind (always)DataRequestKind (one of access, erasure, rectification, restriction, objection, portability)
notestring
received_atstring (date-time)
requester (always)string
statusDataRequestStatus (one of open, done, refused)

The right a person used.

One of: access, erasure, rectification, restriction, objection, portability.

Where a request stands.

One of: open, done, refused.

The day OffsetDays after the guest’s date Attribute (a standard one, signed_up_at, or a custom date), in UTC: negative is before. Yearly is that day every year instead, from each anniversary of the date (its month and day in a later year; a Feb 29 is Feb 28 in a common year), which needs the workflow’s re-entry on and an offset of at most MaxYearlyOffsetDays.

FieldTypeDescription
attribute (always)string
offset_days (always)integer
yearlyboolean

What was done with one definition.

FieldTypeDescription
addedarray of stringThe props a DeclarePropsAdded gave the event.
index (always)integer
name (always)string
outcome (always)DeclareOutcome (one of created, props_added, unchanged, refused)
problemstringWhy a DeclareRefused was not added.

Answers EventDefinitions: one DeclaredEvent for each definition, in the order they were sent, and how many of each outcome.

FieldTypeDescription
created (always)integer
items (always)array of DeclaredEvent
props_added (always)integer
refused (always)integer
unchanged (always)integer

One destination the app declares (the SDK’s CrmLink): a name for staff, its path template (PurrCRM.AppLink’s grammar), the page on the web for a phone without the app, and the screen it shows.

FieldTypeDescription
name (always)string
path (always)string
screenstring
web_urlstring

What a declaration did with one definition.

One of: created, props_added, unchanged, refused.

One event an app has.

FieldTypeDescription
category (always)Category (one of account, app, crm)
description (always)stringWhat PurrCRM site says the event means.
name (always)Name (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
passivebooleanAn event that happens to a person rather than one they do: it is recorded, and does not move when they were last seen.
propsarray of Prop
source (always)Source (one of app, server, crm, both)

PUT devices: the registration token the host’s Firebase gave this device, which the package registers on every start and again whenever it changes.

FieldTypeDescription
app_versionstringAppVersion and Locale are what the app is and speaks, for staff to tell devices apart; both may be left out.
localestring
platform (always)PushPlatform (one of android, ios, web)
token (always)string

What the app runs on, as every batch of events and every check-in says: a phone, or a browser (a website or web app calling the guest API, or a Flutter app built for the web).

One of: ios, android, web.

Edge joins one of a node’s outputs to the node a run goes to next.

FieldTypeDescription
handle (always)stringWhich of the source’s outputs: a Handle, or a branch’s, path’s or button’s id.
id (always)string
source (always)string
target (always)string

One block of an email: a guest.Block, or a spacer or two columns.

FieldTypeDescription
alignAlign (one of start, center, end)A text block’s, or an emoji’s; empty is the screen’s.
altstringWhat a picture shows, for a guest who cannot see it. Required with ImageURL.
aspectImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4)Aspect, Fit and Shape are a picture’s, as CarouselImage’s are.
colorstringA text block’s colour, or a callout’s tint: empty is the screen’s text colour (ink, or white or near-black over a background of the screen’s own, by contrast).
columnsarray of array of BlockExactly two, each of guest blocks.
emojistringAn emoji block’s, or the one before a callout’s words.
fitImageFit (one of cover, contain)
heightintegerA spacer’s, 8 to 96 pixels.
htmlstringAn html block’s.
image_urlstring
itemsarray of ListItem
labelstring
levelintegerA heading’s, 1 to MaxHeadingLevel.
linkstringWhere a button or a picture goes: a path in the app, which opens only if the app’s allow-list names it, or an https URL, which opens in the browser.
shapeImageShape (one of rounded, circle, square)
show_ifConditionShowIf shows the block only to a guest whose values meet it; nil shows it to everyone.
sizestringA word of the block’s own: a TextSize for a paragraph, a heading or a list, an ImageSize for a picture, a SpacerSize for a spacer. Empty is the default carousel_style.json gives the block: a heading’s follows its level, a paragraph’s is body.
spansarray of Span
styleButtonStyle (one of primary, secondary, text)A button’s; empty is primary.
toneCalloutTone (one of info, good, warn)A callout’s tint when it has no Color; empty is info.
type (always)BlockType (one of paragraph, heading, bullets, numbers, image, button, divider, eyebrow, callout, checklist, spacer, emoji)
weightTextWeight (one of regular, medium, bold)A paragraph’s or a heading’s; empty is regular for a paragraph and bold for a heading.

The public page a confirmation email links to: the app’s brand, the address with most of it hidden, and whether it is confirmed already.

FieldTypeDescription
accentstring
confirmed (always)boolean
emailstring
logo_urlstring
product (always)string

An email’s subject and blocks, laid out in its message’s layout.

FieldTypeDescription
blocks (always)array of EmailBlock
from_namestringWho it says it is from; the layout’s when empty.
preheaderstringThe line a mail app shows after the subject.
subject (always)string

A mail provider telling PurrCRM what became of an email it sent, signed as InboundEmail is:

FieldTypeDescription
address (always)string
detailstring
hardbooleanA bounce that is permanent; a soft one is counted and suppresses nothing.
id (always)stringThe provider’s id for the event: the same event posted twice is counted once.
kind (always)EmailEventKind (one of bounce, complaint, delivered)
message_id (always)string
occurred_at (always)string (date-time)

What became of an email.

One of: bounce, complaint, delivered.

One thing the guest did.

FieldTypeDescription
id (always)stringThe app’s own id for the event, a UUID drawn when it happened. A batch sent twice (the answer was lost) is kept once.
name (always)AppEvent (one of app_opened, session_ended, screen_viewed, app_updated, push_permission_changed, location_permission_changed, push_opened, link_opened, page_viewed)
occurred_at (always)string (date-time)
propsobject of stringWhat the event’s comment in AppEvents names, as strings: PurrCRM reads a number from its string by the event’s definition. Left out when there are none.

An event trigger’s: the event, and tests of its props, all of which must hold.

FieldTypeDescription
event (always)Name (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
filtersarray of PropFilter

A count trigger’s: the event (its props passing every filter), done at least Count times within WithinDays days.

FieldTypeDescription
count (always)integer
event (always)Name (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
filtersarray of PropFilter
within_days (always)integer

PUT /server/v1/event-definitions: the app’s own events, as its servers declare them.

FieldTypeDescription
definitions (always)array of Definition

One event of a batch refused, by its place in the batch.

FieldTypeDescription
id (always)string
index (always)integer
reason (always)string

Answers a batch.

FieldTypeDescription
accepted (always)integerHow many of the batch’s events were kept, which is fewer than were sent when some had been sent before, were refused, or the guest has turned product events off. The first batch of a guest PurrCRM has not met yet is accepted whole, and kept a moment later, once PurrCRM knows whether the guest turned product events off.
rejectedarray of EventRejectedThe events refused, each alone: a name the app does not define, one its servers send, or one older than MaxEventAge. Left out when there are none.

A batch of events, oldest first, with the facts about the phone that every event in it shares.

FieldTypeDescription
app_version (always)string
device_modelstring
events (always)array of EventBody
os_versionstringOSVersion and DeviceModel are the phone’s system version (“17.4”, “14”) and model (“iPhone15,2”, “Pixel 8”), when the app says (U5-3): untrusted text, which PurrCRM trims and cuts to MaxOSVersion and MaxDeviceModel (DeviceText) rather than refuse. Left out by apps older than them, which leaves what was kept.
platform (always)DevicePlatform (one of ios, android, web)
sent_atstring (date-time)The phone’s clock as it sent the batch, drawn again for each attempt: PurrCRM measures the phone’s clock by it (ClockSkew) and moves every event’s OccurredAt by as much, so that a phone whose clock is wrong neither makes everything late nor puts it in the future. Left out by apps older than it, whose events are taken as their clocks say.
time_zonestringThe phone’s IANA zone name (“Europe/London”), which PurrCRM uses for a guest’s quiet hours. Left out when the phone does not say.

The guest saying whether an article helped.

FieldTypeDescription
article (always)string
helpful (always)boolean
rated_at (always)string (date-time)

One attribute and its value.

FieldTypeDescription
name (always)string
value (always)string

One thing the help bot kept from a conversation: what it is called (order_ref, email) and what the guest gave.

FieldTypeDescription
conversation_id (always)string
key (always)string
value (always)string

One change of the guest’s choices, for their export: a topic’s (by its name), or a channel’s own switch (no topic).

FieldTypeDescription
at (always)string (date-time)
channel (always)PreferenceChannel (one of email, push, in_app, chat)
source (always)string
subscribed (always)boolean
topicstring
wordingstring

What the PurrCRM service keeps about a guest, their contact, for the guest’s export (Export.CRM): the attributes the app’s staff see on their profile, the tags and notes staff gave them, and the events recorded about them, newest first.

FieldTypeDescription
article_ratingsarray of ExportArticleRating
attributes (always)array of ExportAttributeThe standard attributes PurrCRM derives from what the guest did (first seen, app version, orders, …) and the custom ones staff keep, by name, each value as a string. Only those that have a value.
collectedarray of ExportCollected
consent_historyarray of ExportConsentChange
conversationsarray of ExportConversationConversations, Tickets and ArticleRatings are the messenger’s and the help center’s; left out by a PurrCRM older than them, or when there are none.
devicesarray of ExportDeviceThe devices the guest registered for PurrCRM’s pushes, and Notices their inbox; left out by a PurrCRM older than them, or when there are none.
events (always)array of ExportEvent
events_truncatedbooleanThe export holding only the newest MaxExportEvents events of more.
notes (always)array of ExportNoteWhat staff wrote about the guest. Who wrote each is left out: that is the member of staff’s, not the guest’s.
noticesarray of ExportNotice
receiptsarray of ExportReceiptReceipts and SurveyResponses are outbound’s: the messages the guest was sent or shown, and their answers to surveys; left out by a PurrCRM older than them, or when there are none.
subscriptionsarray of ExportSubscriptionThe guest’s own choices about the app’s topics, and ConsentHistory every change of them and of their channels’ switches; left out by a PurrCRM older than them, or when there are none.
survey_responsesarray of ExportSurveyResponse
tags (always)array of stringThe names of the tags staff put on the guest.
test_phoneExportTestPhoneThe guest’s account being a test phone, which staff send messages to so as to try them, and TestSends the tests sent to it (kept a week); left out by a PurrCRM older than them, or when there are none.
test_sendsarray of ExportTestSend
ticketsarray of ExportTicket
workflowsarray of ExportWorkflowRunThe runs of PurrCRM’s workflows the guest was in, and Collected what the help bot kept from their conversations; left out by a PurrCRM older than them, or when there are none.

One of the guest’s conversations, for their export: every part they could see, and their rating. Staff’s notes are left out, and so is who each member of staff is beyond the name they were shown.

FieldTypeDescription
created_at (always)string (date-time)
id (always)string
parts (always)array of ExportPart
ratinginteger
remarkstring
state (always)ConversationState (one of open, snoozed, closed)

One device the guest registered for pushes, for their export. Its token is a credential for the device and is left out.

FieldTypeDescription
app_versionstring
created_at (always)string (date-time)
last_seen_at (always)string (date-time)
localestring
platform (always)PushPlatform (one of android, ios, web)

One event recorded about the guest: one of AppEvents, or a server event.

FieldTypeDescription
name (always)string
occurred_at (always)string (date-time)
propsobject of string

One note staff wrote about the guest.

FieldTypeDescription
body (always)string
created_at (always)string (date-time)

One notice in the guest’s inbox, for their export.

FieldTypeDescription
body (always)string
created_at (always)string (date-time)
linkstring
read_atstring (date-time)
title (always)string
type (always)PushType (one of support_reply, crm_message)

One part of an exported conversation. A picture is named by its content type and size: the file is sent on request, not in the export.

FieldTypeDescription
attachmentsarray of string
author (always)Author
blocksarray of Block
created_at (always)string (date-time)
kind (always)PartKind (one of message, reply, note, bot, assignment, state, rating_request)
textstring

One message the guest was sent or shown, for their export: what it was and what they did with it.

FieldTypeDescription
clicked_atstring (date-time)
completed_atstring (date-time)
dismissed_atstring (date-time)
kind (always)MessageKind (one of chat, post, banner, carousel, survey, push, email)
message (always)stringThe message’s name, as staff called it.
seen_atstring (date-time)
sent_atstring (date-time)
variantstring

One of the guest’s choices about a topic by a channel, for their export: when and how it was made, and under which wording.

FieldTypeDescription
changed_at (always)string (date-time)
channel (always)PreferenceChannel (one of email, push, in_app, chat)
source (always)string
subscribed (always)boolean
topic (always)string
wordingstring

One answer, as the words of the question and of the answer.

FieldTypeDescription
answer (always)string
question (always)string

The guest’s answers to one survey.

FieldTypeDescription
answers (always)array of ExportSurveyAnswer
completed_atstring (date-time)
started_at (always)string (date-time)
survey (always)string

The guest’s account being a test phone: staff’s name for it, and since when. Who in staff chose it is theirs, not the guest’s, and is left out.

FieldTypeDescription
added_at (always)string (date-time)
labelstring

One test staff sent to the guest’s test phone: what it was, and what became of it. Who sent it is left out.

FieldTypeDescription
answersarray of ExportSurveyAnswerA survey test’s, in the words of the questions.
clicked_atstring (date-time)
completed_atstring (date-time)
dismissed_atstring (date-time)
kind (always)MessageKind (one of chat, post, banner, carousel, survey, push, email)
name (always)stringThe message’s, as staff called it when they sent it, or the built-in sample’s, when Sample.
outcomestringA push’s or a chat’s: sent, notifications_off, not_sent or started.
picked_up_atstring (date-time)When the app took an in-app test at a check-in; what the guest did with it follows.
sampleboolean
seen_atstring (date-time)
sent_at (always)string (date-time)

One of the guest’s tickets, for their export.

FieldTypeDescription
created_at (always)string (date-time)
fields (always)array of TicketField
ref (always)string
resolved_atstring (date-time)
state (always)TicketState (one of submitted, in_progress, waiting_on_guest, resolved)
title (always)string
type (always)string

One run of a workflow the guest was in: the workflow’s name, where the run is and, once it has ended, how.

FieldTypeDescription
ended_atstring (date-time)
outcomestring
started_at (always)string (date-time)
state (always)string
workflow (always)string

One of PurrCRM’s parts an app has switched on for its guests. The app shows nothing of a part it has not been given, and ignores a word it does not know, so a part can be switched on without a release and an older app is not broken by a newer word.

One of: messenger, help_center, in_app_messages.

What a ticket’s field holds.

One of: text, list, number, bool, date.

How a filter tests an event’s prop: a trigger’s, a wait’s, a goal’s, or a rule’s event test’s.

One of: eq, ne, contains, starts_with, gt, gte, lt, lte, exists, not_exists.

DELETE devices: the token the package registered, on sign-out, so that the next guest on the device is not pushed the last one’s.

FieldTypeDescription
token (always)string

What the message is for: the guest doing Event (with Filters), or coming to match Rule, within WithinDays of being sent it, which the report counts for every variant and for the control group.

FieldTypeDescription
eventName (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
filtersarray of PropFilter
revenue_propstringThe goal event’s money prop whose value a guest who meets the goal is counted as having spent (U6-6): the report’s revenue, by variant and for the control group. Empty counts none.
ruleRule
within_days (always)integer

A workflow’s nodes and the edges between them.

FieldTypeDescription
edges (always)array of Edge
nodes (always)array of Node

HandOffConfig hands the conversation to TeamID (the default team when empty), saying Blocks first when there are any.

FieldTypeDescription
blocksarray of Block
team_idstring

What the messenger’s header shows under its title.

One of: none, logo, faces.

What the page a request’s link opens shows: the app’s brand, the address masked, and whether its ticket is open (Ref, the ticket’s reference, once it is).

FieldTypeDescription
accentstring
email (always)string
logo_urlstring
opened (always)boolean
product (always)string
refstring

One card of the messenger’s home. Only what its Kind uses is set: a link card’s Title, Text and Link; a status card’s Text, and its Title and Link when it has them; an articles card’s Articles. The send, search, conversations and tickets cards are drawn from the rest of the home (its open conversations, its tickets) and the app’s own words.

FieldTypeDescription
articlesarray of ArticleSummary
id (always)stringThe card’s, as staff made it: the same on every read.
kind (always)HomeCardKind (one of send, search_help, articles, conversations, tickets, link, status)
linkstringA path in the app or an https link, personalised.
textstring
titlestring

What a card of the messenger’s home is.

One of: send, search_help, articles, conversations, tickets, link, status.

PUT /server/v1/contacts/{external_id}: who the person is. Only what is sent changes.

FieldTypeDescription
attributesobject of anyThe app’s custom attributes, by name, each held to its definition: a string, a number, true or false, a date as 2026-09-27 or an RFC 3339 time, or a list of strings. Null removes the value. One PurrCRM computes is refused; one the app does not define is made on first sight, its type worked out, for review, unless the app’s strict data refuses it.
companiesarray of stringThe external ids of companies the person is in (U5-2), at most MaxIdentifyCompanies: each one the app has not told PurrCRM of is made with nothing but its id, for a later PUT /server/v1/companies/{external_id} to fill in. Leaving them out takes the person out of none.
consentcrm.Consent
display_namestringWhat they are called, at most 100 characters.
emailstringTheir address, which PurrCRM sends email to.
languagestringTheir language as a BCP 47 tag (“en”, “en-GB”).
phonestringTheir mobile number in international form, +44 7700 900123 (U2-3): kept in E.164, +447700900123. Spaces, dashes, dots and brackets are dropped, and a leading 00 is read as +; "" removes it.
providerstringHow they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters.
signed_up_atstring (date-time)When they made their account.
time_zonestringTheir IANA zone (“Europe/London”).

Answers an Identify: the person, and whether this made them.

FieldTypeDescription
created (always)boolean
external_id (always)string

POST /server/v1/contacts/batch: up to MaxIdentifyBatch Identifies at once, each as PUT /server/v1/contacts/{external_id} would take it, and each kept or refused alone.

FieldTypeDescription
contacts (always)array of BatchIdentify

Answers an IdentifyBatch: one result each, in the batch’s order.

FieldTypeDescription
results (always)array of BatchIdentifyResult

A picture’s shape, width to height; auto is the picture’s own.

One of: auto, 1:1, 4:3, 16:9, 3:4.

How a picture fills its box: cover crops it to fill, contain shows it whole.

One of: cover, contain.

A picture’s corners.

One of: rounded, circle, square.

How much of the screen a picture takes: a hero’s height, or an image block’s width.

One of: small, medium, large, full.

One import as the site shows it.

FieldTypeDescription
bytes (always)integerThe file’s size; Rows its rows after the header.
checked_atstring (date-time)
columns (always)array of string
created_at (always)string (date-time)
delimiter (always)string”,” or ”;”.
done (always)integerHow many rows the job going (or the last) has been through.
errors (always)array of ImportErrorThe first of the latest job’s row errors (at most ImportPreviewErrors); HasErrorFile says the errors’ file is there.
file_name (always)string
files_until (always)string (date-time)When the file and its errors are let go; the import stays listed.
finished_atstring (date-time)
has_error_file (always)boolean
id (always)string
new_tags (always)array of stringThe tags the import makes.
planImportPlan
previewImportCountsWhat the check found; Result what the import did.
problemstringWhy the whole import failed.
requested_by (always)string
resultImportCounts
rows (always)integer
sample (always)array of array of stringThe first rows, each with every column.
started_atstring (date-time)
status (always)ImportStatus (one of uploaded, checking, checked, importing, done, failed, cancelled)
workflows (always)array of ImportWorkflowThe running workflows a change it makes starts.

One column of the file, by its place (from 0), and what it is read as.

FieldTypeDescription
attributestringNames the custom attribute for ImportAttribute.
channelTopicChannel (one of email, push, in_app, chat)
column (always)integer
createstringCreate, for ImportAttribute, is the type of a custom attribute the app has not got yet (“string”, “number”, “bool”, “date” or “list”, as an attribute’s type is): the import makes it, named Attribute, when it starts, and the check reads the column as that type. Empty maps the column to an attribute the app has. A new app has none, and staff would otherwise leave the import to define one.
to (always)ImportTarget (one of ignore, external_id, display_name, email, language, offers_by_email, attribute, tags, subscription)
topicstringTopic and Channel name the topic and the channel for ImportSubscription, and Wording, optionally, what the contacts agreed under (“the 2025 sign-up form”).
wordingstring

What a check found, or an import did, with its rows.

FieldTypeDescription
errors (always)integerThe rows that could not be read or taken.
new (always)integerThe people the app has no contact for that are made (or, in a check, would be).
skipped (always)integerThe rows of people the app has no contact for, left out (ImportSkip).
unchanged (always)integerThe contacts the row says nothing new about.
updated (always)integerThe contacts something was changed on.

One row that failed, by its line in the file (the header is line 1).

FieldTypeDescription
error (always)string
line (always)integer

How a file is read: its columns, what becomes of people the app has no contact for, and a tag for everyone it makes or finds.

FieldTypeDescription
columns (always)array of ImportColumn
tagstringPut on every contact a row makes or matches; empty is none.
unknown (always)ImportUnknown (one of create, skip)

Where an import is.

One of: uploaded, checking, checked, importing, done, failed, cancelled.

What a column of the file is read as.

One of: ignore, external_id, display_name, email, language, offers_by_email, attribute, tags, subscription.

What becomes of a row whose person the app has no contact for.

One of: create, skip.

A running workflow that starts when an attribute the plan sets changes: the import starts it for every contact it changes.

FieldTypeDescription
attribute (always)string
id (always)string
name (always)string

One message to show: its kind’s content, and the variant the guest was given, which every receipt about it says again.

FieldTypeDescription
bannerBannerExactly one of these is set, the one Kind names.
carouselCarousel
id (always)string
kind (always)MessageKind (one of chat, post, banner, carousel, survey, push, email)
pagesarray of stringThe website’s pages it is shown on, when it is meant for some: the web SDK holds it until one of them is open. A message may name both screens and pages, and each SDK holds it by what it knows; left out for a message shown wherever the guest is.
postPost
screensarray of stringThe screens it is shown on, when it is meant for some: the app holds it until one of them is on (the screen its host names), and shows it then. Left out for a message shown wherever the guest is.
surveySurvey
testbooleanA copy staff sent to a test phone: ID is the test’s, not the message’s. It is shown at once, whatever the caps, the audience and the one large message a session, and what the guest does with it (receipts, answers) is kept with the test, never in the message’s report or results.
variant (always)string

A reply by email to one of PurrCRM’s support emails, as the mail provider’s inbound hook posts it to PurrCRM, signed:

FieldTypeDescription
ccarray of stringWho else the message was sent to. Optional. On mail to an app’s support address, everyone but the app is copied on the replies.
from (always)string
headersobject of stringThe message’s headers that say whether a person wrote it, by name, as received: Auto-Submitted, Precedence, X-Autoreply, X-Autorespond. Optional. A message they say was sent by a machine (an out-of-office reply, a mailing list’s) is not threaded.
id (always)stringThe provider’s id for the message: the same message posted twice is threaded once.
in_reply_tostring
message_idstringMessageID, InReplyTo and References are the message’s own headers (RFC 5322), as received: what threads mail to a support address into the conversation it answers. Optional.
received_at (always)string (date-time)
referencesarray of string
subjectstring
text (always)stringThe plain-text body, the quoted email under the reply still in it: PurrCRM keeps the reply alone.
to (always)array of string

The round button floating over the app’s own screens that opens the messenger, shown once a guest who may open the messenger is signed in, and put away while the messenger, a message or the keyboard is up. The app may hide it on a screen of its own.

FieldTypeDescription
badge (always)booleanThe count of replies the guest has not read on it.
bottom (always)integerBottom and Edge are its distance from the screen’s bottom and side, above the system’s bars, in points (dp on Android), 0 to MaxLauncherSpacing.
edge (always)integer
hidden_on_phonesbooleanHiddenOnPhones and HiddenPages are a website’s alone: no launcher on a narrow screen, or on the pages these patterns name, at most MaxPages. The native SDKs have screens of their own to hide it on.
hidden_pagesarray of string
iconLauncherIcon (one of chat, question, help)What it shows; empty is IconChat.
opensMessengerSpace (one of home, messages, help, tickets)Where the messenger opens when the launcher is pressed; empty is SpaceHome.
shown (always)boolean
sideLauncherSide (one of left, right)The bottom corner it is in; empty is SideRight. It stays on that side in a right-to-left language.

What a launcher shows.

One of: chat, question, help.

The bottom corner a launcher is in.

One of: left, right.

A claim the app makes on its first run.

FieldTypeDescription
token (always)string

Clicks by one value of a breakdown.

FieldTypeDescription
clicks (always)integer
key (always)string

LinkCountryRule sends visitors from Countries (ISO 3166 alpha-2) to Destination.

FieldTypeDescription
countries (always)array of string
destination (always)string

A day’s counts: clicks by people, the first of each visitor that day, the bots and scanners, the app’s opens with the link, and the installs it brought (installed_from_link: the app’s first run claimed it).

FieldTypeDescription
bots (always)integer
clicks (always)integer
day (always)string
installs (always)integer
opens (always)integer
uniques (always)integer

One destination of a link’s split or country rules, and what it had.

FieldTypeDescription
clicks (always)integer
destination (always)string
opens (always)integer

A link’s conversions in a range: the contacts who first opened it then, and of them who did the goal event within its days.

FieldTypeDescription
converted (always)integer
days (always)integer
event (always)string
opened (always)integer

One placeholder of a destination’s path: its key, what staff call it, what it holds, and a value to start from or show.

FieldTypeDescription
defaultstringDefault fills the placeholder when nothing else does.
examplestringA value to show the link with.
key (always)string
labelstring
optionsarray of stringA choice’s values.
type (always)LinkParamType (one of text, number, id, slug, choice)

What a placeholder’s value is.

One of: text, number, id, slug, choice.

A visitor’s report of a link that leaves for another site (the page that says where it is leaving for): the link’s path and via, as that page was asked for them, and what they say of it.

FieldTypeDescription
reasonstring
to (always)string
viastring

Where a destination came from.

One of: staff, app.

GET /admin/v1/links/{id}/stats: a range of days (at most a year and a month, the days in UTC; the last 30 by default), From the first and To the last.

FieldTypeDescription
channels (always)array of LinkCount
days (always)array of LinkDay
destinationsarray of LinkDestinationCountDestinations are, for a link with a split or country rules, each of its destinations’ clicks (of its short form, by where each was sent) and opens (by the path the app opened at): which did best.
from (always)string
goalLinkGoal
platforms (always)array of LinkCount
reengage_daysintegerThe app’s re-engagement window, 0 for none, by which Totals.Returning was counted.
referrers (always)array of LinkCount
to (always)string
totals (always)LinkTotals

What a template fills in a new link.

FieldTypeDescription
android_urlstring
campaignstring
channelstring
desktop_modestring
desktop_urlstring
goal_daysinteger
goal_eventstring
ios_urlstring
tagsarray of string
utm_campaignstring
utm_mediumstring
utm_sourcestring

A range’s counts. Returning is the opens by contacts already active in the app within the app’s re-engagement window (AppLinkSettings.ReengageDays), counted only when it has one.

FieldTypeDescription
bots (always)integer
clicks (always)integer
installs (always)integer
opens (always)integer
returninginteger
uniques (always)integer

One of a saved link’s destinations in a split, and its share (1 to 100, against the others’).

FieldTypeDescription
destination (always)string
weight (always)integer

One item of a list.

FieldTypeDescription
spans (always)array of Span

How the screens move, the app over. The phone’s own “reduce motion” always wins over it, and an app’s own code over both.

FieldTypeDescription
bannerBannerMotion (one of slide, fade)How a banner comes in; empty is BannerSlide.
enterMotionEnter (one of slide, fade, scale, spring)How a sheet, a card and the messenger come in; empty is EnterSlide.
speedMotionSpeed (one of calm, standard, brisk, off)Speed scales every animation’s time (carousel_style.json’s motion.speeds); empty is SpeedStandard.

How each of the SDK’s own surfaces opens, as staff set it on the site’s Messenger page. A surface left out opens as a sheet with a drag bar. A carousel keeps its own presentation (CarouselPresentation) and a banner is not a surface here.

FieldTypeDescription
accountSurfacePresentationThe guest’s own: their preferences and their inbox.
helpSurfacePresentationThe help center, its search and its articles.
messagesSurfacePresentationAn in-app post or survey.
messengerSurfacePresentationThe messenger: its home, and its conversations when one is what opens.
ticketsSurfacePresentationThe guest’s tickets, and a ticket’s form.

The staff’s own words for the screens’ main parts, each one line of at most MaxLookWordRunes; empty is the SDK’s own, in the phone’s language.

FieldTypeDescription
search_helpstringThe home’s help search (“Search for help”).
sendstringThe home’s button that starts a conversation (“Send us a message”).
titlestringThe messenger’s top bar (“Messages”).

How a group joins its rules.

One of: all, any.

The guest writing: in a new conversation, in one of theirs, or on a ticket. Text, pictures, or both.

FieldTypeDescription
attachment_idsarray of stringPictures uploaded through an AttachmentUpload and not yet sent.
text (always)string

What an outbound message is. Only the in-app kinds reach the app at a check-in (InAppKinds); a chat arrives in the messenger as a conversation staff started, a push as a Push of type crm_message, and an email by email.

One of: chat, post, banner, carousel, survey, push, email.

One send the server API asked for.

FieldTypeDescription
created_at (always)string (date-time)
detailstring
external_id (always)string
id (always)string
message_id (always)string
status (always)SendStatus (one of queued, not_sent)

Who a send goes to: a person by the app’s own id for them, and the props the message’s words may name ({{event.<prop>}}), as a workflow’s send passes its event’s.

FieldTypeDescription
external_id (always)string
propsobject of string

One of an app’s templates.

FieldTypeDescription
content (always)TemplateContent
created_at (always)string (date-time)
created_by (always)stringCreatedBy and UpdatedBy are members of staff, by user id; empty for a template a copy made.
description (always)string
id (always)string
kind (always)TemplateKind (one of carousel, carousel_screen, email)
name (always)string
updated_at (always)string (date-time)
updated_by (always)string

POST message-templates.

FieldTypeDescription
content (always)TemplateContent
descriptionstring
kind (always)TemplateKind (one of carousel, carousel_screen, email)
name (always)string

GET message-templates.

FieldTypeDescription
items (always)array of MessageTemplate

PATCH message-templates/{id}: only what is sent changes, and a template’s kind never does.

FieldTypeDescription
contentTemplateContent
descriptionstring
namestring

One card of the home, as staff set it. Only what its kind uses is kept: a link card’s title, text and link; a status card’s text and its title, link and dates when it has them; an articles card’s articles (none for the help center’s featured ones).

FieldTypeDescription
article_idsarray of string
ends_atstring (date-time)
id (always)stringThe card’s own, made by the site: a-z, 0-9 and -, at most 40.
kind (always)HomeCardKind (one of send, search_help, articles, conversations, tickets, link, status)
linkstringA path in the app or an https link, which may carry personalisation tags after its host.
segment_idstringThe segment it is shown to; empty for everyone.
starts_atstring (date-time)StartsAt and EndsAt bound when a status card is shown.
textstring
titlestring

The messenger’s first screen.

FieldTypeDescription
articles (always)array of ArticleSummaryThe help center’s featured articles, when the help center is switched on; empty otherwise.
layoutMessengerLayoutThe home as the app’s staff set it: its greeting, its team, its cards in order and its options, worked out for this guest now. Null until they publish one, and the app then draws its own home as before.
open (always)array of ConversationSummaryThe guest’s open conversations, the most recently changed first, at most three.
openingMessengerOpeningWhat the help bot says to a new conversation before the guest writes, worked out for them now; null when no help bot greets them, or when the one that would does something first that only a conversation can have done (a tag, a webhook, a hand-off), and so speaks once they have written. Null too while the app’s staff allow no new conversation now (MessengerLayout.NewConversation).
reply (always)ReplyExpectation
tickets (always)array of SupportTicketSummaryThe guest’s tickets not yet resolved, and those resolved in the last week.
unread (always)integerEvery staff part the guest has not read, in every conversation: the badge on the app’s top bar.

The messenger’s home as the app’s staff published it, for one guest at one moment: the greeting with their name in it, the faces, how soon a reply comes, the cards they are to see now (in order, those for a segment they are not in, a status out of its dates and the help center’s while it is off already left out) and what they may do.

FieldTypeDescription
attachments (always)booleanThe guest being able to send pictures: PurrCRM refuses a picture (attachment_invalid) while it is false.
away_textstringSaid in place of either while the team is away (Reply.Open false); empty for “We’re back …”.
cards (always)array of HomeCard
faces (always)TeamFaces (one of auto, chosen, none)
filesbooleanThe guest being able to send files (FileTypes): PurrCRM refuses a file (attachment_invalid) while it is false, which it is unless the app’s staff turn it on.
greeting (always)stringThe heading, personalised; empty for the app’s own words (“Talk to the … team”).
help_center (always)booleanThe home pointing to the help center (a search card, articles, a link to browse it).
intro (always)stringA line under it, personalised; empty for none.
namesbooleanNames writes the chosen teammates’ names under their faces.
new_conversation (always)NewConversations (one of always, when_none_open, never)When the guest may start one; the send card is left out of Cards whenever they may not now.
reply_textstringSays how soon a reply comes in staff’s own words, in place of the line worked out from Reply; empty for that line.
team (always)array of AuthorThe teammates to show when Faces is chosen, by first name, as Author of kind teammate; empty otherwise.

A help bot’s first words to a new conversation, as the guest would be shown them now: the bot’s parts up to its first question (an ask, or a collection), in the shape of a conversation’s, numbered from 1. Nothing is kept: a conversation is made when the guest answers (StartBody), and its ids are not these.

FieldTypeDescription
awaitingstringThe id of the part whose question the bot waits on, as Conversation.Awaiting: its buttons are live, or the composer asks for what it collects. Empty when the bot says something and asks nothing.
parts (always)array of Part
version (always)integer
workflow (always)stringWorkflow and Version are the help bot’s, for StartBody.Opening.

What a guest may do in the messenger.

FieldTypeDescription
attachments (always)booleanThe guest being able to send pictures.
filesbooleanThe guest being able to send files (guest.FileTypes: PDFs, text, spreadsheets and other documents); off unless staff turn it on.
help_center (always)booleanThe home pointing to the help center.
new_conversation (always)NewConversations (one of always, when_none_open, never)

The messenger’s home as staff set it.

FieldTypeDescription
cards (always)array of MessengerCard
greeting (always)stringThe heading, with personalisation tags; empty for the app’s own words.
intro (always)stringA line under it, with tags; empty for none.
look (always)PublicLookHow the SDK’s own screens look, published with the home and sent on the app’s public face (guest.PublicApp.Look). A home kept before there were looks has none.
options (always)MessengerOptions
team (always)MessengerTeam

One of the messenger’s parts, where it may be opened.

One of: home, messages, help, tickets.

Whose faces the home shows, and what it says about when a reply comes.

FieldTypeDescription
away_text (always)stringSaid instead while the team is out of its office hours; empty for “We’re back …”.
faces (always)TeamFaces (one of auto, chosen, none)
names (always)booleanNames writes their first names under the faces.
reply (always)ReplyShown (one of office_hours, text)
reply_text (always)stringThe line when Reply is text.
teammates (always)array of stringThe user ids of those shown when Faces is chosen, in order.

How a sheet, a card or the messenger comes in.

One of: slide, fade, scale, spring.

How quickly the screens move.

One of: calm, standard, brisk, off.

The name of an event: one of the standard events below, which every app has, or one of an app’s own. An app’s own events, and a standard event the app sends (guest.AppEvents), arrive from the app; the rest from the app’s servers or PurrCRM itself.

One of: signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached.

When a guest may start a conversation.

One of: always, when_none_open, never.

A ticket the guest opens, of the form TypeID: its title, what they wrote about it (the ticket’s conversation’s first message), and its fields, each by Key with the value its type holds (Label and Type are not read).

FieldTypeDescription
fieldsarray of TicketField
textstring
title (always)string
type_id (always)string

One step of a workflow.

FieldTypeDescription
config (always)NodeConfig
id (always)stringThe node’s name within its graph: a-z, 0-9, _ and -, up to 40, and what a run’s steps and the inspector’s counts name.
kind (always)NodeKind (one of trigger_event, trigger_event_count, trigger_segment, trigger_segment_left, trigger_attribute, trigger_date, trigger_manual, trigger_conversation_started, trigger_first_message, trigger_unresponsive, trigger_conversation_state, trigger_sla_breached, trigger_rating, condition, wait, split, office_hours, goal, exit, send, set_attribute, tag, track_event, webhook, team_chat, notify, create_ticket, assign, set_conversation_state, update_ticket, bot_message, bot_ask, bot_collect, bot_articles, bot_hand_off, bot_resolve, bot_ai_answer)
labelstringWhat staff call the node on the canvas; empty shows the kind’s name.
x (always)numberX and Y are where it is on the canvas.
y (always)number

A node’s settings: exactly the field its kind names (ConfigOf), or none for a kind that has none.

What a node does. Each kind has at most one field of NodeConfig, which ConfigOf names.

One of: trigger_event, trigger_event_count, trigger_segment, trigger_segment_left, trigger_attribute, trigger_date, trigger_manual, trigger_conversation_started, trigger_first_message, trigger_unresponsive, trigger_conversation_state, trigger_sla_breached, trigger_rating, condition, wait, split, office_hours, goal, exit, send, set_attribute, tag, track_event, webhook, team_chat, notify, create_ticket, assign, set_conversation_state, update_ticket, bot_message, bot_ask, bot_collect, bot_articles, bot_hand_off, bot_resolve, bot_ai_answer.

One notice in the guest’s inbox PurrCRM keeps: what it pushed them, kept to read again.

FieldTypeDescription
body (always)string
created_at (always)string (date-time)
id (always)string
linkstringA path in the app, which the app’s allow-list decides whether to open.
read_atstring (date-time)
title (always)string
type (always)PushType (one of support_reply, crm_message)

A page of the guest’s inbox, newest first.

FieldTypeDescription
next_beforestringThe notice to ask for older ones before, and empty on the last page.
notices (always)array of Notice
unread (always)integerUnread counts the whole inbox, not only this page: the number on the bell.

POST notices/read: the notices shown, or all of them. A notice that is not the guest’s is left alone.

FieldTypeDescription
allboolean
idsarray of string

NotifyConfig tells TeammateID (a user id), or every teammate of TeamID, Text: words that may hold personalisation tags, as a message’s do. At least one is named; naming both tells the teammate and the team.

FieldTypeDescription
team_idstring
teammate_idstring
text (always)string

The team whose hours are asked about; empty is the default team’s.

FieldTypeDescription
team_idstring

The test.

One of: eq, ne, contains, not_contains, starts_with, gt, gte, lt, lte, exists, not_exists, more_days_ago, fewer_days_ago, has, has_not, did, did_not, count_at_least, count_at_most, last_more_days_ago, last_fewer_days_ago, in, not_in, subscribed, not_subscribed.

Names an opening by its workflow and the version it was worked out from.

FieldTypeDescription
version (always)integer
workflow (always)string

POST /guest/v1/messages/{message_id}/open: the session the app opened the message in.

FieldTypeDescription
session_id (always)string

An app’s order reference: what its guests call an order’s reference, what one looks like, and the event prop that names a guest’s latest order. The help bot collects one only in an app that has it, and a customer ticket’s order_ref field is prefilled from Prop.

FieldTypeDescription
example (always)stringOne that matches, which the bot shows (“ORD-7K2QD”).
label (always)stringWhat the app calls it, “Order number”: at most 40 characters.
pattern (always)stringWhat a reference looks like, a regular expression (RE2) the whole answer must match, at most MaxOrderRefPattern bytes.
propstringThe event prop naming the order, which prefills a ticket’s order_ref field from the guest’s newest event that carries it; empty prefills nothing.
upperbooleanAn answer matched and kept in upper case, so that a guest may type it in either.

One part of a conversation: one message, reply or change. Only the fields its Kind names are set.

FieldTypeDescription
attachmentsarray of AttachmentThe part’s pictures, and only pictures: an SDK that knows no Files never draws a document as a picture.
author (always)Author
blocksarray of BlockA reply’s or the bot’s words (the content schema above).
botBotPartWhat a help-bot part asks of the guest.
created_at (always)string (date-time)
filesarray of AttachmentThe part’s files (FileTypes), each with its Name, to download rather than draw.
id (always)string
kind (always)PartKind (one of message, reply, note, bot, assignment, state, rating_request)
ratingintegerThe guest’s answer to a rating request, 1 to MaxRating, once they give it.
seq (always)integerSeq orders a conversation’s parts, from 1, and is what a wait is asked after.
stateConversationState (one of open, snoozed, closed)Where a state part moved the conversation to.
textstringWhat the guest wrote, as they wrote it: never read as markup.

What one part of a conversation is.

One of: message, reply, note, bot, assignment, state, rating_request.

One of the product’s plans: what an app on it may have and do, and what it costs by the month. Every limit is 0 for none. Operators manage plans on the operators’ site.

FieldTypeDescription
created_at (always)string (date-time)
featuresarray of stringThe features the plan includes (PlanCatalogue.Features lists every one there is).
id (always)string
limits (always)PlanLimits
name (always)string
pricesarray of PriceIts price by the month in each currency it is sold in.
publicbooleanWhether a workspace may choose the plan itself.
sortintegerSort orders the plans, the least first.
updated_at (always)string (date-time)

A plan’s limits, each 0 for none, and an add-on’s, which are added to them. Seats are held when somebody is invited or given an app, and Apps when an app is made; the rest are shown against usage. Viewers and AIActionsPerMonth are allowances: 0 is nothing given.

FieldTypeDescription
ai_actions_per_monthinteger
api_per_minuteinteger
api_tokensinteger
apps (always)integerHow many of a workspace’s apps may be on the plan.
audit_daysinteger
contacts (always)integer
conversations_per_month (always)integer
custom_attributesinteger
custom_rolesintegerThese replace the product’s own number of each, where they are above 0: fewer or more. 0 leaves the product’s.
destinationsinteger
emails_per_month (always)integer
event_daysintegerEventDays and AuditDays are how many days events and the activity log are kept; StorageMB how many megabytes of uploads.
event_definitionsinteger
events_per_monthinteger
languagesinteger
saved_reportsinteger
seats (always)integerHow many members reach the app; Viewers how many more who only view.
segmentsinteger
sending_domainsinteger
storage_mbinteger
viewersinteger
webhook_endpointsinteger
workflowsinteger

A full screen of blocks, from a member of staff.

FieldTypeDescription
blocks (always)array of Block
senderAuthorWho it is from, by first name; left out for the app itself (its brand’s name).

A way a topic reaches the guest.

One of: email, push, in_app, chat.

One choice.

FieldTypeDescription
channel (always)PreferenceChannel (one of email, push, in_app, chat)
subscribed (always)boolean
topic_id (always)string

The guest’s choices: every topic of the app’s that is not archived, by name, and whether every channel is off (AllOff: they get no marketing at all).

FieldTypeDescription
all_off (always)boolean
topics (always)array of PreferenceTopic

Changes the guest’s choices: each choice where it differs from what they had, or AllOff, “Unsubscribe from all marketing”, which turns every channel and every topic off. Wording names the version of the words they chose under (the SDK’s preferences screen sends “crm_sdk/preferences-1”), kept with the choice as it is sent.

FieldTypeDescription
all_offboolean
choicesarray of PreferenceChoice
wordingstring

One channel of a topic: whether the guest hears it.

FieldTypeDescription
channel (always)PreferenceChannel (one of email, push, in_app, chat)
subscribed (always)boolean

One of the app’s topics, and the guest’s state on each channel it uses.

FieldTypeDescription
channels (always)array of PreferenceState
descriptionstring
id (always)string
name (always)string

What a plan or an add-on costs by the month in one currency (usd, gbp or eur), in the currency’s smallest unit: 1900 is 19.00. A price that is changed becomes a new version; Version and EffectiveFrom are the server’s, and ignored when written.

FieldTypeDescription
amount_minor (always)integer
currency (always)string
effective_fromstring (date-time)
versioninteger

A refusal (RFC 9457). Switch on code, never on detail, which is a sentence for people and may be reworded.

FieldTypeDescription
code (always)stringWhat went wrong, as a word to switch on: bad_request, unauthorized, token_expired, not_found, rate_limited, app_unavailable and the others each route lists.
detailstringWhat went wrong, in a sentence that can be shown to a person.
errorsarray of objectThe fields that were wrong, for a 400 that has them.
featurestringFor plan_feature: the feature the app’s plan and add-ons leave out, as the catalogue names it.
meterstringFor plan_limit: the meter the plan, add-ons and credit have no more of (emails, ai_answers, contacts, conversations, events).
request_idstringThe request’s id, to quote when asking for help.
status (always)integerThe HTTP status.
title (always)stringThe HTTP status in words.
type (always)stringA URI for the kind of problem; about:blank for most.

One prop an event carries.

FieldTypeDescription
key (always)string
type (always)PropType (one of string, number, bool, time, money)

One test of an event’s prop.

FieldTypeDescription
key (always)string
op (always)FilterOp (one of eq, ne, contains, starts_with, gt, gte, lt, lte, exists, not_exists)
valuestring

How PurrCRM reads a prop’s string: what it may be compared with in a rule, and how the dashboard breaks it down.

One of: string, number, bool, time, money.

An app’s public face: how it is named and coloured, what it has switched on, and the SDK it needs. Nothing in it is secret.

FieldTypeDescription
brand (always)PublicBrand
currency (always)stringThe ISO 4217 code its money is in.
features (always)array of Feature (one of messenger, help_center, in_app_messages)The parts of the guest experience it has on.
handlestringThe readable name a live app’s public help center goes by now, <workspace slug>.<app slug> (/help/a/acme.rewards), whichever name or key it was asked by: the address the site sends an old name on to, and names as the canonical one. Left out for a test app, whose help center goes by its key alone.
help_hoststringThe domain of the app’s own its public help center is read at (help.example.com), where its pages are at the root and which they name as their canonical address; left out for an app with none, and by a CRM older than lane U4. The SDKs need not read it.
key (always)stringThe app’s public key, the one asked for.
languagesarray of stringThe languages its content is written in: its default first, then the others. Left out by a CRM older than that.
link_basestringWhere the app’s links are, with no slash at the end: https://<PurrCRM’s host>/l/<name>, or https://<its own link host>; left out while it has no link domain. The SDK takes a link under it as the app’s own (its handleLink).
lookPublicLookHow the app’s staff set the SDK’s own screens to look, as last published with the messenger’s home; left out before they publish one, and by a CRM older than that, when each SDK draws its own defaults. An app’s own code may set any of it differently, and wins.
min_sdk_versionstringThe oldest SDK the app’s staff want its guests on (“0.6.0”); left out when they have set none.
mode (always)AppMode (one of live, test)AppModeLive, or AppModeTest for an app’s test app: a staging build’s, with test data of its own (the SDK’s isTestMode).
order_refOrderRefIts order reference; left out for an app without one.

An app’s brand as its guests see it: its name (never empty), its accent (#rrggbb, or empty for the SDK’s own), its logo (an https address, or empty) and where its guests may write.

FieldTypeDescription
accentstring
logo_urlstring
name (always)string
support_emailstring

GET /public/v1/catalog, with no sign-in: what the product sells, as the operators’ pricing manager last put in force, for the product’s home page to show. Only what a workspace may choose itself is here: its public plans and add-ons, least first, and the pay-as-you-go rates its credit is spent at. Nothing of the operators’ is (costs, margins, drafts, changes scheduled for later, who is on what, or any workspace’s own prices). A deployment with no plans answers an empty catalogue.

FieldTypeDescription
addons (always)array of Addon
currencies (always)array of string
features (always)array of string
plans (always)array of Plan
rates (always)array of RateEvery pay-as-you-go rate in force, by meter, currency and tier.
regionstringThe region this catalogue is from, empty for a deployment of one.
trialCatalogTrialThe plan a new workspace’s first app tries, and for how long: left out where the deployment takes no payments, which gives no trial.

GET /public/v1/links/apps/{name}: what the landing page of a link the phone did not open the app with shows. Nothing in it is secret.

FieldTypeDescription
android_packagestringThe Android app its links open, for the landing page’s way out of a social app’s own browser (an intent naming it).
app_store_urlstring
brand (always)PublicBrand
key (always)stringThe app’s public key.
link_base (always)stringWhere the app’s links are (PublicApp.LinkBase).
name (always)string
play_store_urlstring
webstringThe web page the link goes to, when the request named the link’s path (?to=) and the link has one: the page that says it is leaving for another site takes it from here, never from its own address.

How the SDK’s own screens look: the messenger, its pages and the in-app messages, as the app’s staff set it on the site’s Look. Every part may be empty, which is the SDK’s own default for it; carousel_style.json holds the numbers each part is drawn with.

FieldTypeDescription
accentstringThe screens’ accent, #rrggbb; empty is the brand’s (PublicBrand.Accent), and the SDK’s own without one.
accent_darkstringThe accent in dark mode, #rrggbb; empty is Accent.
button_shapeButtonShape (one of pill, rounded)
cornerCorner (one of soft, round, square)Corner and ButtonShape are every screen’s and message’s, as a carousel’s style has them; a carousel’s own style wins in it. Empty is soft corners and pill buttons.
dark_modeDarkMode (one of system, light, dark)Whether the screens follow the phone; empty is DarkSystem.
headerCarouselBackgroundBehind the messenger’s top: its title, and the logo or the faces under it (HeaderMark); left out for the page’s own surface. Its colours are a theme’s tokens or #rrggbb, as a carousel screen’s.
header_markHeaderMark (one of none, logo, faces)What the header shows under its title; empty is MarkNone.
launcher (always)Launcher
motion (always)LookMotion
presentationLookPresentationHow each of the SDK’s surfaces opens: as a sheet with a drag bar, or full screen. Left out, every surface is a sheet with a drag bar, which is what a look without it, and a CRM older than that, means too.
words (always)LookWords

What the public preference centre shows: the app’s brand, the address the link was sent to with most of it hidden, and the guest’s preferences. Nothing else about them.

FieldTypeDescription
accentstringAccent (#rrggbb) and LogoURL are the app’s, for the page to wear; either may be absent.
all_off (always)boolean
emailstringThe contact’s address, all but its first letter and its domain hidden (“j•••@example.com”); empty for none.
logo_urlstring
product (always)string
topics (always)array of PreferenceTopic

POST /public/v1/help/articles/{slug}/rating: whether a public article helped a reader of the web’s help center, who has no account. Visitor is the page’s own id for its reader, a UUID it keeps in a cookie, so that a second answer replaces the first. Rate-limited per address; 204, or 404 for an article the web may not read.

FieldTypeDescription
helpful (always)boolean
languagestringThe language the reader read it in (Article.Language), for the help report; left out, the app’s default.
visitor (always)string

A ticket asked for on the public help center’s form: the address the reply goes to, the name to call a new contact by, and the ticket as a guest opens one.

FieldTypeDescription
email (always)string
namestring
ticket (always)NewTicketBody

What a device registered for PurrCRM’s pushes runs: a phone, or a browser, which FCM reaches through web push.

One of: android, ios, web.

What a push PurrCRM sends, or a notice in the inbox, is about. An app’s own pushes, sent by its own servers, are the app’s.

One of: support_reply, crm_message.

How a question is answered.

One of: nps, numeric, stars, emoji, dropdown, short_text, long_text, single_choice, multi_choice.

What units of a meter cost in credit: UnitMicros for every Per units, from TierFrom units paid for in the month.

FieldTypeDescription
currency (always)string
meter (always)string
per (always)integer
tier_from (always)integer
unit_micros (always)integer
versioninteger

The guest’s answer to a rating request.

FieldTypeDescription
rating (always)integer1 (bad) to MaxRating (great).
remarkstringAnything they want to add.

RatingConfig bounds the rating given: zero is no bound.

FieldTypeDescription
at_leastinteger
at_mostinteger

Says the guest has seen a conversation up to a part.

FieldTypeDescription
seq (always)integer

What the guest did with a message the app showed.

One of: seen, clicked, dismissed, completed, answered.

What the guest did with a message the app showed.

FieldTypeDescription
action (always)ReceiptAction (one of seen, clicked, dismissed, completed, answered)
answersarray of string
buttonstring
linkstringWhat was tapped, for clicked.
message_id (always)string
patharray of string
screenstringA carousel’s receipts say where the guest was. Screen is the screen it is about: the one answered, the one whose button was tapped, the one the carousel ended or was closed on. Button is the button tapped, for clicked (with Link too, for a link button). Answers are the options picked, for answered: one for a single choice, up to MaxCarouselOptions for a multiple. Path is the screens’ ids the guest has seen so far, in order (a screen seen twice is in it twice), at most MaxReceiptPath (the first ones kept), for completed and dismissed, and on any other carousel receipt that has it.
session_idstringThe check-in’s session.
testbooleanAbout a test copy (InAppMessage.Test): MessageID is the test’s.
variant (always)string

POST /admin/v1/conversations/{conversation_id}/parts/{part_id}/redact (PurrCRM.inbox, audited PurrCRM.part_redacted): words to remove from a part, every time they appear in it, each replaced by “removed”. Answered with the part as the conversation shows it.

FieldTypeDescription
words (always)string

The user’s referral link: its slug, and its short and canonical addresses.

FieldTypeDescription
short_url (always)string
slug (always)string
url (always)string

How soon the guest can expect an answer.

FieldTypeDescription
open (always)booleanStaff being at work now, by the team’s office hours.
opens_atstring (date-time)When they are next at work, when they are not now.
within (always)ReplyTime (one of minutes, hours, day)

How the home says when a reply comes.

One of: office_hours, text.

How soon staff usually answer, which the team that answers says in PurrCRM’s settings, for “we usually reply in …”.

One of: minutes, hours, day.

ResolveConfig closes the conversation as resolved, saying Blocks first when there are any.

FieldTypeDescription
blocksarray of Block
FieldTypeDescription
countintegerHow many times, for an event’s count ops.
filtersarray of PropFilterFilters limit an event test to the events whose props pass every one (FilterOp says how each reads): “placed an order worth more than 2000 at least twice”. None is every event of the name.
keystringWhat is tested: an attribute’s name (a standard one, or a custom one PurrCRM has a definition of), a tag’s name, an event’s Name, a segment’s id, or a topic’s id.
kindRuleKind (one of attribute, tag, event, segment, subscription)
matchMatch (one of all, any)
opOp (one of eq, ne, contains, not_contains, starts_with, gt, gte, lt, lte, exists, not_exists, more_days_ago, fewer_days_ago, has, has_not, did, did_not, count_at_least, count_at_most, last_more_days_ago, last_fewer_days_ago, in, not_in, subscribed, not_subscribed)
rulesarray of Rule
valuestringWhat an attribute is compared with, as a string, read by the attribute’s type; for a subscription test, the channel.
within_daysintegerWithinDays limits an event test to the last so many days. Zero is ever.

What a test is about.

One of: attribute, tag, event, segment, subscription.

A workflow’s runs, by how they stand.

FieldTypeDescription
active (always)integerRunning, waiting or parked now.
completed (always)integer
exited (always)integer
goal (always)integer
total (always)integer

One saved link.

FieldTypeDescription
android_urlstring
archived_atstring (date-time)
campaignstring
channelstring
countriesarray of LinkCountryRule
created_at (always)string (date-time)
created_by (always)string
data (always)object of stringHanded to the app with the link (at most MaxLinkData keys).
desktop_mode (always)stringDesktopFallback (the app’s web page, as any link) or DesktopQR (the landing page, with the code to scan, and no DesktopURL).
desktop_urlstring
destination (always)stringThe path in the app, with its query (the link picker’s string, never a web address).
disabled_reasonstringThe operators’ kill switch: a link with one answers 410.
expired_urlstring
expires_atstring (date-time)
goal_daysinteger
goal_eventstringThe goal: a contact who did GoalEvent within GoalDays of first opening the link converted.
id (always)string
ios_urlstringThe overrides, ahead of the app’s fallbacks, each an https address.
kind (always)stringWho made it: LinkKindStaff (the Links tab, or the app’s servers), LinkKindShared (a guest sharing a place in the app) or LinkKindReferral (a contact’s own link to bring others).
name (always)string
og_descriptionstring
og_imagestring
og_titlestringThe social preview a crawler is shown.
owner_gueststringThe guest a shared or referral link is, "" for staff’s.
short_urlstringWritten for the answer: the short and canonical forms on the app’s link base, "" while it has none.
slug (always)string
tags (always)array of string
template_idstring
updated_at (always)string (date-time)
urlstring
variantsarray of LinkVariantVariants split the short link between destinations by weight, each visitor kept to one; Countries send visitors from some countries to a destination of their own, ahead of the split. Both apply where the link’s destination is chosen: its short form, in the browser or in the app; the canonical form is a destination already.

A saved link as staff write it. A PATCH carries only the fields it changes.

FieldTypeDescription
android_urlstring
campaignstring
channelstring
countriesarray of LinkCountryRule
dataobject of string
desktop_modestring
desktop_urlstring
destination (always)string
expired_urlstring
expires_atstring (date-time)
goal_daysinteger
goal_eventstring
ios_urlstring
name (always)string
og_descriptionstring
og_imagestring
og_titlestring
slug (always)stringMade up when it is empty.
tagsarray of string
template_idstring
variantsarray of LinkVariant

A bulk upload as JSON.

FieldTypeDescription
rows (always)array of SavedLinkBody

GET /admin/v1/links: a page, the newest first, and the cursor of the next ("" for none).

FieldTypeDescription
items (always)array of SavedLinkRow
nextstring

Where a saved link opens the app.

FieldTypeDescription
campaignstring
channelstring
data (always)object of stringThe link’s data, for the app (at most ten keys).
path (always)stringThe path in the app, with its query, without LinkSlugParam.
saved (always)stringThe link’s slug, for link_opened’s saved prop.

A link in the list, with its last week.

FieldTypeDescription
android_urlstring
archived_atstring (date-time)
campaignstring
channelstring
clicks_week (always)array of integerIts clicks on each of the last seven days, the oldest first, and OpensWeek the times the app opened with it in them.
countriesarray of LinkCountryRule
created_at (always)string (date-time)
created_by (always)string
data (always)object of stringHanded to the app with the link (at most MaxLinkData keys).
desktop_mode (always)stringDesktopFallback (the app’s web page, as any link) or DesktopQR (the landing page, with the code to scan, and no DesktopURL).
desktop_urlstring
destination (always)stringThe path in the app, with its query (the link picker’s string, never a web address).
disabled_reasonstringThe operators’ kill switch: a link with one answers 410.
expired_urlstring
expires_atstring (date-time)
goal_daysinteger
goal_eventstringThe goal: a contact who did GoalEvent within GoalDays of first opening the link converted.
id (always)string
ios_urlstringThe overrides, ahead of the app’s fallbacks, each an https address.
kind (always)stringWho made it: LinkKindStaff (the Links tab, or the app’s servers), LinkKindShared (a guest sharing a place in the app) or LinkKindReferral (a contact’s own link to bring others).
name (always)string
og_descriptionstring
og_imagestring
og_titlestringThe social preview a crawler is shown.
opens_week (always)integer
owner_gueststringThe guest a shared or referral link is, "" for staff’s.
short_urlstringWritten for the answer: the short and canonical forms on the app’s link base, "" while it has none.
slug (always)string
tags (always)array of string
template_idstring
updated_at (always)string (date-time)
urlstring
variantsarray of LinkVariantVariants split the short link between destinations by weight, each visitor kept to one; Countries send visitors from some countries to a destination of their own, ahead of the split. Both apply where the link’s destination is chosen: its short form, in the browser or in the app; the canonical form is a destination already.

A template as staff write it.

FieldTypeDescription
defaults (always)LinkTemplateDefaults
name (always)string

A gradient laid over a picture so that words read on it (carousel_style.json’s scrims).

One of: none, light, dark.

The segment a guest comes to match, or ceases to.

FieldTypeDescription
segment_id (always)string

The message a send sends.

FieldTypeDescription
message_id (always)string

What became of a send when it was asked for.

One of: queued, not_sent.

Answers a batch: how many were new and kept, and the ones refused, by their place in the batch.

FieldTypeDescription
accepted (always)integer
rejected (always)array of ServerRejection

POST /server/v1/workflows/{workflow_id}/enrol: people to enrol in a running workflow whose trigger is “Enrolled by staff”, by their external ids, at most MaxServerEnrol. Each is held to the workflow’s audience, exit rule and re-entry as anybody is, so enrolling one again is safe. The enrolment is queued, and done within a minute.

FieldTypeDescription
external_ids (always)array of string

Answers a ServerEnrol: how many were queued, and the external ids of nobody PurrCRM knows (never identified, or erased), which are not.

FieldTypeDescription
queued (always)integer
unknownarray of string

One thing a person did, as a server saw it.

FieldTypeDescription
at (always)string (date-time)
external_id (always)string
id (always)stringThe server’s idempotency key, 1 to 100 bytes: derive it from what the event is about, so that a retry carries the same one.
name (always)string
propsobject of stringThe event’s props, each as a string its definition reads by its type.

POST /server/v1/events.

FieldTypeDescription
events (always)array of ServerEvent

One event refused, and why.

FieldTypeDescription
id (always)string
index (always)integer
reason (always)string

SetAttributeConfig sets Attribute to Value (as its type reads it), or, with Remove, takes the guest’s value away.

FieldTypeDescription
attribute (always)string
conversationbooleanConversation sets one of the conversation’s attributes, not the guest’s (inbound only).
removeboolean
valuestring

SetStateConfig moves the conversation to State; a snooze lasts SnoozeMinutes.

FieldTypeDescription
snooze_minutesinteger
state (always)ConversationState (one of open, snoozed, closed)

The link a guest made: its slug, and its short and canonical addresses on the app’s link base.

FieldTypeDescription
short_url (always)string
slug (always)string
url (always)string

What a guest shares: a path in the app, with its query, data handed to whoever opens it, and where it is shared (“whatsapp”).

FieldTypeDescription
channelstring
dataobject of string
path (always)string

A sign-up taken: a link is on its way to the address, or, when it has an account already, an email saying so. The answer is the same either way.

FieldTypeDescription
email (always)string

POST /public/v1/signup: a new customer’s address and password (the staff password rules), and the names of their workspace and its first app.

FieldTypeDescription
app_name (always)string
email (always)string
password (always)string
turnstile_tokenstring
workspace_name (always)string

The service level that fell due; empty is any.

FieldTypeDescription
targetSLATarget (one of first_reply, next_reply, close)

Which service level fell due, for an SLA trigger.

One of: first_reply, next_reply, close.

Who sends an event: the app (its SDK), the app’s servers (the server API), or PurrCRM itself. A definition says which sends it, and an event recorded keeps who sent it, as a fact. One of an app’s own events may be sent by both the app and its servers (SourceBoth); an event is never recorded as sent by both.

One of: app, server, crm, both.

A run of text with one style.

FieldTypeDescription
boldboolean
colorstringA colour in content: a theme token (ColorToken), which the app draws in its light or dark mode’s shade, or a fixed “#rrggbb”. Where a colour may be empty, empty is the default of where it is.
highlightboolean
italicboolean
linkstringLink makes the run a link, as Block.Link.
strikeboolean
text (always)string
underlinebooleanUnderline, Strike, Highlight and Color are formatting (BlockContext.Formatting). Highlight is a wash of the accent behind the run; Color is the run’s own colour, the accent or one of the palette’s, over the block’s.

A split’s paths, and the share of guests held back as a control group, who leave by control (and whose run ends there when nothing is joined to it).

FieldTypeDescription
control_percentinteger
paths (always)array of SplitPath

One way through a split, with its share.

FieldTypeDescription
id (always)string
label (always)string
weight (always)integer

The guest starting a conversation: what they wrote (a MessageBody’s text and pictures), or, with Opening, a tap on one of its question’s buttons (Button) instead. Opening names the help bot’s opening the guest was shown (MessengerHome.Opening), whose parts then come first in the conversation; without it, the guest’s words do, as before there were openings.

FieldTypeDescription
attachment_idsarray of string
buttonstringThe id of the opening’s button the guest tapped, with no words or pictures; empty when they wrote.
openingOpeningRefThe opening the guest was shown when they wrote or tapped; nil for none.
text (always)string

The state a conversation moves to.

FieldTypeDescription
state (always)ConversationState (one of open, snoozed, closed)

What is shown of one of an app’s step secrets.

FieldTypeDescription
hint (always)string
name (always)string
set_at (always)string (date-time)
set_by (always)string

One choice: a topic, a channel, in or out.

FieldTypeDescription
channel (always)TopicChannel (one of email, push, in_app, chat)
subscribed (always)boolean
topic_id (always)string

Staff recording a contact’s choices: the choices, each a change only where it differs, or AllOff, “Unsubscribe from all marketing”. Wording is what the contact agreed under, if staff know.

FieldTypeDescription
all_offboolean
choicesarray of SubscriptionChoice
wordingstring

One of the guest’s tickets: the fields staff let the guest see, and the conversation about it, oldest first.

FieldTypeDescription
conversation_idstringThe conversation the ticket’s parts are in.
created_at (always)string (date-time)
descriptionarray of BlockWhat staff wrote the ticket is for, in blocks.
fields (always)array of TicketField
id (always)string
parts (always)array of Part
ref (always)string
resolved_atstring (date-time)
state (always)TicketState (one of submitted, in_progress, waiting_on_guest, resolved)
state_labelstringAs SupportTicketSummary’s: State stays the category an app acts on.
title (always)string
type (always)string
updated_at (always)string (date-time)

The guest’s tickets, the most recently changed first.

FieldTypeDescription
items (always)array of SupportTicketSummary

A ticket in a list.

FieldTypeDescription
id (always)string
ref (always)stringHow the guest and staff name it: “T-1042”.
state (always)TicketState (one of submitted, in_progress, waiting_on_guest, resolved)
state_labelstringStaff’s own name for where the ticket has got to (“Waiting on the courier”), when they gave it one; left out for the category’s own. State stays the category, which is what an app acts on; the label is only words to show.
title (always)string
type (always)string
updated_at (always)string (date-time)

How one surface opens. Its zero value, which is what a surface left out means, is a sheet with a drag bar.

FieldTypeDescription
fullbooleanFull opens the surface full screen rather than as a sheet: no drag bar, and no drag to close.
handlebooleanWhether a sheet shows its drag bar: left out is true. Not sent for a full-screen surface, which never shows one. A sheet without its bar is still dragged closed from its header.

The questions of a survey message. Steps are shown in order, unless a step’s branch on a closed answer jumps ahead; reaching a thank-you step, or the end, finishes it.

FieldTypeDescription
format (always)SurveyFormat (one of small, large)
introarray of BlockThe first screen of a large survey; left out for none.
steps (always)array of SurveyStep

The guest’s answer to one question: Number for a scale, Choices (option ids) for a choice, with Other when “other” is among them, and Text for the guest’s own words.

FieldTypeDescription
choicesarray of string
numberinteger
otherstring
question_id (always)string
textstring

Answers given so far, sent as each step is answered: PurrCRM keeps them even if the guest never finishes. A newer answer to the same question replaces the older.

FieldTypeDescription
answers (always)array of SurveyAnswer
testbooleanA test copy’s answers (InAppMessage.Test), by the test’s id.
variant (always)string

SurveyBranch sends the guest to another step when a closed question’s answer is one of Values (an option’s id), or a number from Min to Max.

FieldTypeDescription
maxinteger
mininteger
next (always)stringThe id of a later step.
question_id (always)string
valuesarray of string

How a survey is shown.

One of: small, large.

One option of a choice question.

FieldTypeDescription
id (always)string
label (always)string

One question.

FieldTypeDescription
descriptionstring
id (always)string
maxinteger
max_labelstring
minintegerMin and Max are a numeric scale’s ends, 0 or 1 to at most 10.
min_labelstringMinLabel and MaxLabel are the words under a scale’s ends.
optionsarray of SurveyOptionA choice question’s, in order.
otherbooleanOther adds “Other” to a single or multiple choice, with the guest’s own words.
placeholderstringThe hint in a text answer’s box.
requiredboolean
title (always)string
type (always)QuestionType (one of nps, numeric, stars, emoji, dropdown, short_text, long_text, single_choice, multi_choice)

One screen of a survey.

FieldTypeDescription
blocksarray of BlockA thank-you step’s words.
branchesarray of SurveyBranchTried in order when the step is answered; the first that matches says which step is next. None matching, or none at all, is the step after this one.
id (always)string
kind (always)SurveyStepKind (one of questions, thank_you)
questionsarray of SurveyQuestionA questions step’s.

What a survey’s step is.

One of: questions, thank_you.

SurveySubmit finishes a survey: every answer along the path the guest took. Only then are answers written to the guest’s attributes.

FieldTypeDescription
answers (always)array of SurveyAnswer
testbooleanA test copy finished (InAppMessage.Test): nothing is written to the guest’s attributes.
variant (always)string

TagConfig puts a tag on, or with Remove takes it off.

FieldTypeDescription
conversationbooleanConversation tags the conversation, not the guest (inbound only).
removeboolean
tag_id (always)string

POST /server/v1/tags/{name}/people: a tag put on the people the app names by their external ids, or taken off them (Remove). Putting on a tag the app does not have makes it.

FieldTypeDescription
external_ids (always)array of string
removeboolean

Answers a TagPeople: how many people it changed, and the external ids of the people PurrCRM has no contact of.

FieldTypeDescription
changed (always)integer
missing (always)array of string

TeamChatConfig posts Text (words that may hold personalisation tags, as a notification’s do) to a Slack or Teams channel: Secret names the app’s step secret that holds the channel’s incoming-webhook address, an https address on hooks.slack.com for Slack, and on webhook.office.com or a Power Automate host (*.logic.azure.com, *.powerplatform.com) for Teams.

FieldTypeDescription
secret (always)string
service (always)ChatService (one of slack, teams)
text (always)string

Whose faces the home shows.

One of: auto, chosen, none.

A template’s content: exactly the field its kind names.

FieldTypeDescription
carouselCarouselContent
emailEmailContent
screenCarouselScreen

What a template makes.

One of: carousel, carousel_screen, email.

How large a carousel’s words are, beside the phone’s own text size, which scales them again.

One of: compact, regular, large.

How heavy a text block’s words are.

One of: regular, medium, bold.

The ticket a node opens: of TicketTypeID, titled Title, with Fields. In an inbound workflow it is the conversation’s ticket, and an order_ref the bot collected fills that field.

FieldTypeDescription
fieldsarray of crm.TicketField
ticket_type_id (always)string
title (always)string

One field of a ticket and its value: Text for a text or a list field (the option chosen), Number, Bool, or Date (YYYY-MM-DD). A field with no value has none of them.

FieldTypeDescription
boolboolean
datestring
key (always)string
label (always)string
numbernumber
textstring
type (always)FieldType (one of text, list, number, bool, date)

A ticket type the app’s staff let guests open themselves: what to ask for. Its fields are those the guest sees on their ticket.

FieldTypeDescription
descriptionstring
fields (always)array of TicketFormField
id (always)string
name (always)string

One field of a TicketForm: a list field’s Options are its choices.

FieldTypeDescription
key (always)string
label (always)string
optionsarray of string
requiredboolean
type (always)FieldType (one of text, list, number, bool, date)

Every form, by name.

FieldTypeDescription
items (always)array of TicketForm

Where a ticket has got to, in the guest’s words.

One of: submitted, in_progress, waiting_on_guest, resolved.

One of an app’s topics.

FieldTypeDescription
archived_atstring (date-time)
channels (always)array of TopicChannel (one of email, push, in_app, chat)The channels its messages may use, in TopicChannels’ order.
created_at (always)string (date-time)
created_bystring
defaults (always)array of TopicDefaultThe channels a contact who never chose is in.
description (always)string
id (always)string
list (always)stringThe mailing list its emails are on: what a mail app’s unsubscribe and a suppression name. A topic made from an old list keeps the list’s name; any other its own id.
messages (always)integerHow many messages are on it, archived ones included.
name (always)string
translationsobject of TopicTextIts name and description in the app’s other languages, by language tag: what a contact’s preferences show them in their language. Left out for none.
updated_at (always)string (date-time)

Defaults are the channels a contact who never chose is in. Archived, left out, keeps what the topic is.

FieldTypeDescription
archivedboolean
channels (always)array of TopicChannel (one of email, push, in_app, chat)
defaults (always)array of TopicChannel (one of email, push, in_app, chat)
description (always)string
email_opt_in_understoodbooleanThe editor’s tick that opting contacts in to marketing email by default may not be lawful (PECR, UK and EU GDPR): turning an email default on needs it.
name (always)string
translationsobject of TopicTextTranslations replace the topic’s whole; left out (an older site’s body), the topic keeps the ones it has.

A way a topic’s marketing reaches a contact.

One of: email, push, in_app, chat.

A channel a contact who never chose is subscribed by, and since when: only contacts PurrCRM met at or after Since are, so that turning a default on never opts in everybody already there. A topic made with a default has it since the zero time, for everyone.

FieldTypeDescription
channel (always)TopicChannel (one of email, push, in_app, chat)
since (always)string (date-time)

The app’s topics, by name.

FieldTypeDescription
items (always)array of Topic

A topic’s name and description in one language.

FieldTypeDescription
descriptionstring
name (always)string

TrackEventConfig records Event, one of the app’s own events, with Props: each value text that may hold personalisation tags ({{event.prop}}, the props of the event that started the run, and {{attribute}}), written as a message’s are and read as the prop’s type reads it (a value that does not read is left out).

FieldTypeDescription
event (always)Name (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)
propsarray of TrackProp

One prop a tracked event carries.

FieldTypeDescription
key (always)string
value (always)string

How many notices are still unread, for the bell.

FieldTypeDescription
unread (always)integer

How long a reply goes unanswered by the guest.

FieldTypeDescription
minutes (always)integer

What a node changes about the run’s ticket: its State, or one of staff’s own states (StateID, which sets its category), whether it is Priority, and Fields, as text its type reads. At least one; a field the ticket’s type has none of is passed over.

FieldTypeDescription
fieldsarray of crm.TicketField
priorityboolean
stateTicketState (one of submitted, in_progress, waiting_on_guest, resolved)
state_idstring

Where a screen’s content sits in its height.

One of: top, center, bottom.

One published version, kept whole and never changed.

FieldTypeDescription
graph (always)Graph
kind (always)WorkflowKind (one of outbound, inbound)
published_at (always)string (date-time)
published_by (always)string
settings (always)WorkflowSettings
version (always)integer

A visitor just made: their id, which PurrCRM’s site shows as “Visitor · 4F2A”, and their secret, which is never shown again.

FieldTypeDescription
expires_at (always)string (date-time)When the secret ends if it is not used before; each use moves it on.
id (always)string
secret (always)string

VisitorBody makes a visitor.

FieldTypeDescription
languagestringThe browser’s language (a BCP 47 tag), for the help bot and the help center; left out when it does not say.
platform (always)DevicePlatform (one of ios, android, web)Where the visitor is reading: PlatformWeb from a page on one of the app’s web origins, or PlatformAndroid or PlatformIOS from a phone app, with no Origin, on an app that lets phone apps’ visitors in (PurrCRM.GuestAuth.AppVisitors).

Answers a merge. Merged is false for a secret that has ended or was never one (nothing to take over); the same visitor merged into the same user again is merged, and moves nothing more.

FieldTypeDescription
conversations (always)integerHow many of the visitor’s conversations are now the user’s, by the same ids.
merged (always)boolean

The signed-in user taking over a visitor: the secret the browser kept for them.

FieldTypeDescription
visitor_secret (always)string

What a wait waits for: only the fields its Mode uses are set.

FieldTypeDescription
attributestringAttribute, OffsetDays and TimeOfDay are a date’s.
daysarray of integer
eventName (one of signed_up, signed_in, profile_updated, marketing_consent_changed, account_deletion_requested, notice_read, push_sent, email_sent, email_delivered, email_opened, email_clicked, email_bounced, email_complained, email_unsubscribed, installed_from_link, apple_ads_attribution, referred, referral_joined, referral_converted, conversation_started, message_sent, conversation_rated, bot_resolved, handed_off, ticket_created, ticket_resolved, article_viewed, article_rated, sla_breached, conversation_state_changed, message_seen, message_clicked, message_dismissed, message_answered, message_completed, survey_shown, survey_answered, survey_completed, survey_dismissed, goal_reached, segment_entered, segment_left, ticket_state_changed, ticket_field_changed, ticket_sla_breached)Event, Filters and TimeoutMinutes are an event’s; Rule and TimeoutMinutes a rule’s.
filtersarray of PropFilter
minutesintegerA duration’s.
mode (always)WaitMode (one of duration, time_of_day, event, date, rule)
offset_daysinteger
ruleRule
time_of_daystringTimeOfDay (“09:00”) and Days (Sunday = 0; none is any day) are a time of day’s.
timeout_minutesinteger

The address taken: the same whether it was on the list already or not.

FieldTypeDescription
email (always)string

The website’s early-access form.

FieldTypeDescription
companystringThe company’s name, if the form asked: 200 characters at most.
email (always)string
sourcestringWhere on the website the form was (such as “home”), kept as a label of 64 characters at most.
turnstile_tokenstring

What a wait waits for.

One of: duration, time_of_day, event, date, rule.

WebhookConfig posts to URL, an https address on one of the app’s allowed hosts (which PurrCRM checks at publish, and again as it sends), a JSON body: the guest’s id, the custom or standard Attributes named (none is none), the props of the event that started the run, and the workflow, run and step it came from. The body is signed with the app’s webhook secret (the X-CRM-Signature header: t=<unix seconds>,v1=<hex HMAC-SHA256 of “<t>.<body>”>), and each delivery has an id of its own (X-CRM-Delivery) that is the same on every retry.

FieldTypeDescription
attributesarray of string
headersarray of WebhookHeader
maparray of WebhookMap
methodstring
url (always)string
waitboolean

One try of a post to an endpoint.

FieldTypeDescription
at (always)string (date-time)
attempt (always)integer
code (always)integer
delivery (always)string
duration_ms (always)integer
error (always)string
id (always)string
status (always)stringDelivered, retrying or failed.
topic (always)WebhookTopic (one of contact.created, contact.updated, contact.unsubscribed, conversation.started, conversation.replied, conversation.closed, conversation.rated, ticket.created, ticket.changed, message.sent, message.opened, message.clicked, email.bounced, survey.completed, goal.reached, link.clicked, link.opened, app.installed_from_link, referral.joined, referral.converted, ticket.state_changed, ticket.field_changed, ticket.sla_breached, conversation.assigned, conversation.note_added, ticket.resolved, contact.erased, contact.tagged, visitor.merged, ping)

One of an app’s endpoints.

FieldTypeDescription
created_at (always)string (date-time)
created_by (always)string
description (always)string
disabled_reason (always)stringWhy PurrCRM switched it off: “failing” when every post had failed for a day; "" for on, or off by a teammate.
enabled (always)boolean
failing_sincestring (date-time)When its posts began to fail, and Failures how many have been given up on since; nil and 0 when the last went.
failures (always)integer
host (always)stringThe URL’s, which the app’s webhooks may post to for as long as the endpoint is there.
id (always)string
lastWebhookDeliveryIts latest delivery, nil before any.
secretstringThe signing secret itself, in the answer that made it alone (adding the endpoint, or making a new secret): never again.
secret_hint (always)stringThe last four characters of its signing secret, "" for none; SecretSetAt when it was made.
secret_set_atstring (date-time)
topics (always)array of WebhookTopic (one of contact.created, contact.updated, contact.unsubscribed, conversation.started, conversation.replied, conversation.closed, conversation.rated, ticket.created, ticket.changed, message.sent, message.opened, message.clicked, email.bounced, survey.completed, goal.reached, link.clicked, link.opened, app.installed_from_link, referral.joined, referral.converted, ticket.state_changed, ticket.field_changed, ticket.sla_breached, conversation.assigned, conversation.note_added, ticket.resolved, contact.erased, contact.tagged, visitor.merged, ping)
updated_at (always)string (date-time)
url (always)string

POST and PUT /staff/v1/apps/{id}/webhook-endpoints.

FieldTypeDescription
description (always)string
enabledboolean
topics (always)array of WebhookTopic (one of contact.created, contact.updated, contact.unsubscribed, conversation.started, conversation.replied, conversation.closed, conversation.rated, ticket.created, ticket.changed, message.sent, message.opened, message.clicked, email.bounced, survey.completed, goal.reached, link.clicked, link.opened, app.installed_from_link, referral.joined, referral.converted, ticket.state_changed, ticket.field_changed, ticket.sla_breached, conversation.assigned, conversation.note_added, ticket.resolved, contact.erased, contact.tagged, visitor.merged, ping)
url (always)string

GET /staff/v1/apps/{id}/webhook-endpoints.

FieldTypeDescription
items (always)array of WebhookEndpoint
topics (always)array of WebhookTopic (one of contact.created, contact.updated, contact.unsubscribed, conversation.started, conversation.replied, conversation.closed, conversation.rated, ticket.created, ticket.changed, message.sent, message.opened, message.clicked, email.bounced, survey.completed, goal.reached, link.clicked, link.opened, app.installed_from_link, referral.joined, referral.converted, ticket.state_changed, ticket.field_changed, ticket.sla_breached, conversation.assigned, conversation.note_added, ticket.resolved, contact.erased, contact.tagged, visitor.merged, ping)

One header a webhook sends: Value, or the app’s step secret named Secret.

FieldTypeDescription
name (always)string
secretstring
valuestring

WebhookMap reads the value at Path in a webhook’s JSON answer into the guest’s custom Attribute. Path is the keys (and an array’s indexes, from 0) down to it, joined by dots: “plan”, “data.order.status”, “items.0.id”. A string is read as it is, a number or true/false as written, and an object, an array or null is not read.

FieldTypeDescription
attribute (always)string
path (always)string

What is shown of an app’s webhook secret.

FieldTypeDescription
hint (always)string
set_at (always)string (date-time)
set_by (always)string

What an endpoint may be posted: “<thing>.<what happened>”.

One of: contact.created, contact.updated, contact.unsubscribed, conversation.started, conversation.replied, conversation.closed, conversation.rated, ticket.created, ticket.changed, message.sent, message.opened, message.clicked, email.bounced, survey.completed, goal.reached, link.clicked, link.opened, app.installed_from_link, referral.joined, referral.converted, ticket.state_changed, ticket.field_changed, ticket.sla_breached, conversation.assigned, conversation.note_added, ticket.resolved, contact.erased, contact.tagged, visitor.merged, ping.

One workflow as PurrCRM site shows it: its draft, and the version guests enter.

FieldTypeDescription
changed (always)booleanThe draft differing from that version.
created_at (always)string (date-time)
created_by (always)string
description (always)string
draft (always)GraphDraft and Settings are what staff edit; publishing keeps them as a new version.
id (always)string
kind (always)WorkflowKind (one of outbound, inbound)
name (always)string
published_atstring (date-time)
runs (always)RunCounts
seededstringNames a workflow PurrCRM made itself (“help_bot”).
settings (always)WorkflowSettings
state (always)WorkflowState (one of draft, running, paused, archived)
triggerNodeKind (one of trigger_event, trigger_event_count, trigger_segment, trigger_segment_left, trigger_attribute, trigger_date, trigger_manual, trigger_conversation_started, trigger_first_message, trigger_unresponsive, trigger_conversation_state, trigger_sla_breached, trigger_rating, condition, wait, split, office_hours, goal, exit, send, set_attribute, tag, track_event, webhook, team_chat, notify, create_ticket, assign, set_conversation_state, update_ticket, bot_message, bot_ask, bot_collect, bot_articles, bot_hand_off, bot_resolve, bot_ai_answer)The published version’s trigger; empty before the first.
updated_at (always)string (date-time)
updated_by (always)string
version (always)integerThe newest published version, which guests enter; zero before the first.

Where a workflow runs.

One of: outbound, inbound.

Who may enter a workflow, what takes them out, and what it is for.

FieldTypeDescription
audience (always)RuleWho may enter; the empty rule is everyone.
exitRuleExit takes a guest out of their run, at the next step, once they match it.
exit_on_goalboolean
goalGoalWhat the workflow is for, met within its days of entering; reaching it records goal_reached, and with ExitOnGoal ends the run.
re_entrybooleanReEntry lets a guest whose run ended enter again; without it a guest runs a workflow once, ever. A guest never has two runs of one workflow at once (in an inbound workflow, two in one conversation).
re_entry_after_daysintegerReEntryAfterDays is, with ReEntry, how many days after their last run ended a guest may enter again; zero is at once.

Where a workflow is in its life.

One of: draft, running, paused, archived.