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.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
grants (always) | AddonGrants | |
id (always) | string | |
kind (always) | AddonKind (one of capacity, feature, service) | |
min_plan | string | The plan an app must be on at least to have it: "" for any plan with a price. |
name (always) | string | |
prices | array of Price | |
public | boolean | |
scope (always) | AddonScope (one of app, workspace) | |
sort | integer | |
updated_at (always) | string (date-time) |
AddonGrants
Section titled “AddonGrants”What one of an add-on gives: limits added to the plan’s, and features.
| Field | Type | Description |
|---|---|---|
features | array of string | |
limits (always) | PlanLimits |
AddonKind
Section titled “AddonKind”What an add-on is.
One of: capacity, feature, service.
AddonScope
Section titled “AddonScope”Whose an add-on is: one app’s, or the whole workspace’s.
One of: app, workspace.
AIAnswerConfig
Section titled “AIAnswerConfig”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.
| Field | Type | Description |
|---|---|---|
collection_id | string |
AIDraftBody
Section titled “AIDraftBody”Asks for a reply to a conversation, Instruction saying what it should say, if anything.
| Field | Type | Description |
|---|---|---|
instruction | string |
AIRephraseBody
Section titled “AIRephraseBody”Asks for Text said another way.
| Field | Type | Description |
|---|---|---|
text (always) | string | |
tone (always) | AITone (one of friendlier, formal, shorter, clearer, fix) |
AITone
Section titled “AITone”How a rephrasing should read.
One of: friendlier, formal, shorter, clearer, fix.
AITranslateBody
Section titled “AITranslateBody”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.
| Field | Type | Description |
|---|---|---|
texts | array of string | |
to | string |
AIWriteBody
Section titled “AIWriteBody”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.
| Field | Type | Description |
|---|---|---|
kind (always) | AIWriteKind (one of message, article) | |
language | string | |
prompt (always) | string | |
text | string |
AIWriteKind
Section titled “AIWriteKind”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.
APIConnection
Section titled “APIConnection”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.
| Field | Type | Description |
|---|---|---|
app_id (always) | string | |
app_name (always) | string | |
permissions (always) | array of string | What it may do in the app (TokenScopes, and the finer permissions of StaffPermissions it holds). |
user_id (always) | string | UserID and UserName are the teammate the credential acts as. |
user_name (always) | string | |
workspace_id (always) | string |
AppEvent
Section titled “AppEvent”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.
AppleAdsAttribution
Section titled “AppleAdsAttribution”What Apple said of a person’s token: whether an Apple Ads campaign brought them, and which.
| Field | Type | Description |
|---|---|---|
ad_group_id | integer | |
ad_id | integer | |
attribution (always) | boolean | |
campaign_id | integer | |
click_date | string | |
conversion_type | string | |
country | string | |
keyword_id | integer | |
org_id | integer |
AppleAdsToken
Section titled “AppleAdsToken”POST …/apple-ads-attribution: the token the app had from AAAttribution.attributionToken(), within a day of having it.
| Field | Type | Description |
|---|---|---|
token (always) | string |
AppLinkBody
Section titled “AppLinkBody”Source is LinkByStaff when left out.
| Field | Type | Description |
|---|---|---|
description | string | |
name (always) | string | |
params | array of LinkParam | |
path (always) | string | |
screen | string | |
source | LinkSource (one of staff, app) | |
web_url | string |
AppLinkImport
Section titled “AppLinkImport”POST /admin/v1/app-links/import.
| Field | Type | Description |
|---|---|---|
links (always) | array of AppLinkBody |
AppLinksReport
Section titled “AppLinksReport”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.
| Field | Type | Description |
|---|---|---|
app_version (always) | string | |
digest (always) | string | |
links (always) | array of DeclaredLink |
AppMode
Section titled “AppMode”One of: live, test.
AppWebhooks
Section titled “AppWebhooks”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.
| Field | Type | Description |
|---|---|---|
endpoint_hosts (always) | array of string | The 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 string | The names a webhook step may post to; “*.example.com” is any name under example.com. |
sealing (always) | boolean | The deployment keeping secrets: with none, no secret is made and no webhook posts. |
secret | WebhookSecret | |
secrets | array of StepSecret | The 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. |
Article
Section titled “Article”One published article, whole.
| Field | Type | Description |
|---|---|---|
blocks (always) | array of Block | |
collection | Collection | The collection it is in, when it is in one. |
id (always) | string | |
language | string | The 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). |
languages | array of string | |
out_of_date | boolean | Says 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 ArticleSummary | Other articles in the same collection, at most three. |
slug (always) | string | |
summary | string | |
title (always) | string | |
updated_at (always) | string (date-time) |
ArticleRatingBody
Section titled “ArticleRatingBody”The guest saying whether an article helped. Asked again, the newer answer is kept.
| Field | Type | Description |
|---|---|---|
helpful (always) | boolean |
Articles
Section titled “Articles”Answers a search: the best matches first.
| Field | Type | Description |
|---|---|---|
items (always) | array of ArticleSummary | |
language | string | As Collections’ is: a search looks at the articles’ words in it, and at the default’s where an article has none. |
ArticlesConfig
Section titled “ArticlesConfig”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.
| Field | Type | Description |
|---|---|---|
blocks | array of Block | |
collection_id | string | |
limit | integer | |
query | string |
ArticleSummary
Section titled “ArticleSummary”An article in a list.
| Field | Type | Description |
|---|---|---|
collection | string | The slug of the collection it is in; empty for none. |
id (always) | string | |
slug (always) | string | |
summary | string | |
title (always) | string | |
updated_at (always) | string (date-time) |
AskConfig
Section titled “AskConfig”The bot’s question and the guest’s reply buttons.
AssignConfig
Section titled “AssignConfig”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.
| Field | Type | Description |
|---|---|---|
team_id | string | |
teammate_id | string |
Attachment
Section titled “Attachment”A picture in a part (Part.Attachments), or a file (Part.Files).
| Field | Type | Description |
|---|---|---|
bytes (always) | integer | |
content_type (always) | string | |
expires_at (always) | string (date-time) | |
id (always) | string | |
name | string | A file’s name, as it was sent; absent for a picture. Its URL downloads it under this name. |
url (always) | string | Where to fetch it, until ExpiresAt; ask for the conversation again for a new one after that. |
AttachmentBody
Section titled “AttachmentBody”Asks for somewhere to upload a picture, or a file.
| Field | Type | Description |
|---|---|---|
bytes (always) | integer | The size: a picture’s at most MaxAttachmentBytes, a file’s at most MaxFileBytes. |
content_type (always) | string | One of AttachmentTypes, or of FileTypes for a file. |
name | string | A file’s name, which it is shown and downloaded with: 1 to MaxFileNameRunes characters, no folders. Left out for a picture. |
AttachmentUpload
Section titled “AttachmentUpload”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.
| Field | Type | Description |
|---|---|---|
expires_at (always) | string (date-time) | |
fields (always) | object of string | |
id (always) | string | |
max_bytes (always) | integer | |
url (always) | string |
AttributeChange
Section titled “AttributeChange”What change of an attribute fires its trigger.
One of: “, set, cleared, from_to, above, below.
AttributeConfig
Section titled “AttributeConfig”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.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
change | AttributeChange (one of “, set, cleared, from_to, above, below) | |
from | string | |
to | string | |
value | string |
Author
Section titled “Author”Who wrote a part, as the guest is shown it: a member of staff by their first name, never their account or their address.
| Field | Type | Description |
|---|---|---|
kind (always) | AuthorKind (one of guest, teammate, bot, system) | |
name | string | A teammate’s first name or the bot’s name; empty for the guest and the messenger. |
AuthorKind
Section titled “AuthorKind”Who wrote a part.
One of: guest, teammate, bot, system.
BackgroundKind
Section titled “BackgroundKind”What a screen’s background is.
One of: plain, color, gradient, image.
Banner
Section titled “Banner”A short message over a screen.
| Field | Type | Description |
|---|---|---|
blocks (always) | array of Block | Paragraphs and headings only, at most MaxBannerBlocks. |
dismissible (always) | boolean | Dismissible shows a close button. |
link | string | Where tapping the banner goes, as Block.Link; empty for nowhere. |
style (always) | BannerStyle (one of inline, floating) |
BannerMotion
Section titled “BannerMotion”How a banner comes in.
One of: slide, fade.
BannerStyle
Section titled “BannerStyle”Where a banner is drawn.
One of: inline, floating.
BatchIdentify
Section titled “BatchIdentify”One Identify of a batch, and who it is about.
| Field | Type | Description |
|---|---|---|
attributes | object of any | The 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. |
companies | array of string | The 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. |
consent | crm.Consent | |
display_name | string | What they are called, at most 100 characters. |
email | string | Their address, which PurrCRM sends email to. |
external_id (always) | string | |
language | string | Their language as a BCP 47 tag (“en”, “en-GB”). |
phone | string | Their 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. |
provider | string | How they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters. |
signed_up_at | string (date-time) | When they made their account. |
time_zone | string | Their IANA zone (“Europe/London”). |
BatchIdentifyResult
Section titled “BatchIdentifyResult”What became of one Identify of a batch: whether it made the person, or the code and the reason it was refused.
| Field | Type | Description |
|---|---|---|
code | string | |
created | boolean | |
error | string | |
external_id (always) | string | |
index (always) | integer |
BillingWebhookResult
Section titled “BillingWebhookResult”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.
| Field | Type | Description |
|---|---|---|
handled (always) | boolean |
One block of content. Only the fields its Type names are set.
| Field | Type | Description |
|---|---|---|
align | Align (one of start, center, end) | A text block’s, or an emoji’s; empty is the screen’s. |
alt | string | What a picture shows, for a guest who cannot see it. Required with ImageURL. |
aspect | ImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4) | Aspect, Fit and Shape are a picture’s, as CarouselImage’s are. |
color | string | A 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). |
emoji | string | An emoji block’s, or the one before a callout’s words. |
fit | ImageFit (one of cover, contain) | |
image_url | string | |
items | array of ListItem | |
label | string | |
level | integer | A heading’s, 1 to MaxHeadingLevel. |
link | string | Where 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. |
shape | ImageShape (one of rounded, circle, square) | |
size | string | A 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. |
spans | array of Span | |
style | ButtonStyle (one of primary, secondary, text) | A button’s; empty is primary. |
tone | CalloutTone (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) | |
weight | TextWeight (one of regular, medium, bold) | A paragraph’s or a heading’s; empty is regular for a paragraph and bold for a heading. |
BlockType
Section titled “BlockType”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.
BotButton
Section titled “BotButton”One reply button: tapping it answers with its ID, and shows the guest’s answer as Label.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
label (always) | string |
BotKind
Section titled “BotKind”What a help-bot part asks of the guest.
One of: says, asks, collects, suggests, hands_off, resolves.
BotMessageConfig
Section titled “BotMessageConfig”What the bot says.
| Field | Type | Description |
|---|---|---|
blocks (always) | array of Block |
BotPart
Section titled “BotPart”What a help-bot part asks of the guest, by Kind.
| Field | Type | Description |
|---|---|---|
articles | array of ArticleSummary | A suggestion’s, each opened in the help center. |
buttons | array of BotButton | An ask’s, and a suggestion’s yes and no. |
collect | CollectField (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_ref | OrderRef | What a collected order reference looks like, the app’s own: with Collect order_ref, so that the app checks an answer as PurrCRM will. |
reply | ReplyExpectation | A hand-off’s: how soon a person answers. |
BotReplyBody
Section titled “BotReplyBody”Answers the bot part PartID: with one of its buttons, by Button, or with the data it collects, as Value.
| Field | Type | Description |
|---|---|---|
button | string | |
part_id (always) | string | |
value | string |
Branch
Section titled “Branch”One of a condition’s ways on: the first whose rule the guest matches is taken, and else when none is.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
label (always) | string | |
rule (always) | Rule |
BulkEraseBody
Section titled “BulkEraseBody”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.
| Field | Type | Description |
|---|---|---|
csv (always) | string | |
dry_run | boolean | |
log | boolean | |
requester | string | Who asked, for the requests logged. |
ButtonAction
Section titled “ButtonAction”What a carousel’s button does.
One of: next, screen, back, end, link, permission.
ButtonShape
Section titled “ButtonShape”A carousel’s buttons’ shape.
One of: pill, rounded.
ButtonStyle
Section titled “ButtonStyle”How a button is drawn: primary is filled with the accent, secondary is outlined, text is the words alone.
One of: primary, secondary, text.
CalloutTone
Section titled “CalloutTone”A callout’s tint by what it says.
One of: info, good, warn.
Carousel
Section titled “Carousel”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.
| Field | Type | Description |
|---|---|---|
locked | boolean | A 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. |
presentation | CarouselPresentation (one of sheet, card, full) | How it is shown; empty is a sheet. |
progress | CarouselProgress (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 CarouselScreen | 1 to MaxCarouselScreens, in the editor’s order, which is also where a screen’s Next goes when it names none. |
skip | boolean | Skip 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. |
start | string | The id of the screen it opens on; empty is the first. |
style | CarouselStyle | The carousel’s look, which a screen’s own Style overrides field by field; left out is the defaults. |
CarouselBackground
Section titled “CarouselBackground”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.
| Field | Type | Description |
|---|---|---|
angle | integer | A gradient’s direction in degrees, 0 to 359: 0 runs from the bottom up, 90 from left to right, as CSS’s linear-gradient. |
color | string | A colour’s, and a gradient’s first stop. |
color2 | string | A gradient’s last stop. |
image_url | string | An 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) | |
scrim | Scrim (one of none, light, dark) | Scrim darkens or lightens an image under the words; empty is none. |
CarouselButton
Section titled “CarouselButton”One of a screen’s buttons.
| Field | Type | Description |
|---|---|---|
do (always) | ButtonAction (one of next, screen, back, end, link, permission) | What it does, and says which of the rest it has. |
id (always) | string | Names 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 | |
link | string | What link opens, as Block.Link. |
permission | CarouselPermission (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. |
screen | string | Where screen goes (a screen’s id or “end”), and where permission goes once the phone has answered (empty is the screen’s Next). |
style | ButtonStyle (one of primary, secondary, text) | Empty for primary. |
CarouselChoice
Section titled “CarouselChoice”A question on a screen, answered by tapping options.
| Field | Type | Description |
|---|---|---|
multiple | boolean | Multiple 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 CarouselOption | 2 to MaxCarouselOptions. |
CarouselContent
Section titled “CarouselContent”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.
| Field | Type | Description |
|---|---|---|
locked | boolean | A 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. |
presentation | CarouselPresentation (one of sheet, card, full) | How it is shown; empty is a sheet. |
progress | CarouselProgress (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. |
records | array of CarouselRecord | Records 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_to | array of CarouselSaveTo | SaveTo 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 CarouselScreen | 1 to MaxCarouselScreens, in the editor’s order, which is also where a screen’s Next goes when it names none. |
skip | boolean | Skip 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. |
start | string | The id of the screen it opens on; empty is the first. |
style | CarouselStyle | The carousel’s look, which a screen’s own Style overrides field by field; left out is the defaults. |
CarouselImage
Section titled “CarouselImage”A screen’s hero picture.
| Field | Type | Description |
|---|---|---|
alt (always) | string | What it shows, for a guest who cannot see it. |
aspect | ImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4) | Aspect, Fit and Shape are empty for auto, cover and rounded. |
fit | ImageFit (one of cover, contain) | |
shape | ImageShape (one of rounded, circle, square) | |
size | ImageSize (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) | string | An https address. |
CarouselLayout
Section titled “CarouselLayout”How a screen is laid out.
One of: centred, image_top, image_full, text.
CarouselOption
Section titled “CarouselOption”One answer of a choice.
| Field | Type | Description |
|---|---|---|
emoji | string | Drawn before the label; empty for none. |
id (always) | string | Names 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 | |
next | string | Where 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. |
CarouselPermission
Section titled “CarouselPermission”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.
CarouselPresentation
Section titled “CarouselPresentation”How a carousel is shown.
One of: sheet, card, full.
CarouselProgress
Section titled “CarouselProgress”What a carousel’s top bar shows of how far the guest is.
One of: dots, bar, none.
CarouselRecord
Section titled “CarouselRecord”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).
| Field | Type | Description |
|---|---|---|
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) | |
props | array of TrackProp | |
target_id (always) | string | The button’s or the option’s id. |
CarouselSaveTo
Section titled “CarouselSaveTo”One screen’s answer kept as an attribute.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
screen_id (always) | string |
CarouselScreen
Section titled “CarouselScreen”One screen of a carousel.
| Field | Type | Description |
|---|---|---|
align | Align (one of start, center, end) | Start or center; empty is center, and start on a text screen. |
background | CarouselBackground | Behind the screen; left out is the sheet’s own. |
blocks (always) | array of Block | |
buttons | array of CarouselButton | 0 to MaxCarouselButtons, stacked: the first is the main one. None gives the screen the app’s Next (or Done). |
choice | CarouselChoice | A question the screen asks; left out for none. |
id (always) | string | Names 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. |
image | CarouselImage | The 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. |
layout | CarouselLayout (one of centred, image_top, image_full, text) | How the screen is laid out; empty is centred. |
name | string | Staff’s own word for the screen, in the editor and the report. It is never sent to the app. |
next | string | Where 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. |
style | CarouselStyle | Style overrides the carousel’s Style for this screen, field by field; left out is the carousel’s. |
valign | VAlign (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. |
CarouselStyle
Section titled “CarouselStyle”A carousel’s look. Every field is optional: empty is the default (carousel_style.json’s “defaults”), and on a screen, the carousel’s.
| Field | Type | Description |
|---|---|---|
accent | string | Accent colours the buttons, the progress and a choice’s ticks; empty is the app’s brand accent. |
button_shape | ButtonShape (one of pill, rounded) | |
corner | Corner (one of soft, round, square) | |
text_scale | TextScale (one of compact, regular, large) |
CatalogTrial
Section titled “CatalogTrial”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.
| Field | Type | Description |
|---|---|---|
days (always) | integer | |
plan_id (always) | string |
Category
Section titled “Category”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.
ChatService
Section titled “ChatService”Where a team-chat step posts.
One of: slack, teams.
Checkin
Section titled “Checkin”Answers a check-in: what to show now, in the order to show it.
| Field | Type | Description |
|---|---|---|
messages (always) | array of InAppMessage | The 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) | integer | The soonest the app should check in again. |
send_links | boolean | Asks 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_phone | boolean | A 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. |
throttled | boolean | A 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) | integer | The messenger’s unread count, a chat staff started included. |
unread_notices (always) | integer | The inbox’s unread count: the notices PurrCRM pushed the guest and they have not read, for the bell. |
CheckinBody
Section titled “CheckinBody”The app asking what to show: when it opens or comes back to the front, and after it sends a batch of events.
| Field | Type | Description |
|---|---|---|
app_version (always) | string | |
device_model | string | |
holds_for_pages | boolean | Says 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_screens | boolean | Says 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_digest | string | LinksDigest of the destinations the app declares, when it declares any: a check-in answers SendLinks for one PurrCRM has not been sent. |
os_version | string | OSVersion and DeviceModel are the phone’s, as EventsBody’s (U5-3). |
page | string | The website’s page on screen (PagePath), when the app is one: the web SDK’s. |
platform (always) | DevicePlatform (one of ios, android, web) | |
screen | string | The named route on screen, when the app knows it. |
session_id (always) | string | The 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_zone | string | The phone’s IANA zone, for quiet hours and sending windows; left out when the phone does not say. |
CollectConfig
Section titled “CollectConfig”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.
| Field | Type | Description |
|---|---|---|
attribute | string | |
blocks (always) | array of Block | |
field (always) | CollectField (one of text, email, order_ref) | |
key (always) | string |
CollectField
Section titled “CollectField”The kind of data the bot asks for.
One of: text, email, order_ref.
Collection
Section titled “Collection”A group of help articles.
| Field | Type | Description |
|---|---|---|
articles (always) | integer | How many published articles the guest can read in it. |
description | string | |
id (always) | string | |
slug (always) | string | |
title (always) | string |
CollectionArticles
Section titled “CollectionArticles”One collection and its articles, in staff’s order.
| Field | Type | Description |
|---|---|---|
articles (always) | array of ArticleSummary | |
collection (always) | Collection | |
language | string | As Collections’ is. |
Collections
Section titled “Collections”Every collection with an article in it, in staff’s order.
| Field | Type | Description |
|---|---|---|
items (always) | array of Collection | |
language | string |
Company
Section titled “Company”PUT /server/v1/companies/{external_id}: what a company is, made when the app has none by the id. Only what is sent changes.
| Field | Type | Description |
|---|---|---|
data | object of any | The 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. |
employees | integer | How many work there; MonthlySpend what it spends a month, in the app’s own currency. |
industry | string | Industry and Plan are the app’s own words, at most 100 characters. |
monthly_spend | number | |
name | string | What it is called, at most 200 characters. |
people | array of string | The 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. |
plan | string | |
remove_people | array of string | |
website | string | Its http or https address. |
CompanyAnswer
Section titled “CompanyAnswer”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.
| Field | Type | Description |
|---|---|---|
added (always) | integer | |
created (always) | boolean | |
external_id (always) | string | |
missing (always) | array of string | |
removed (always) | integer |
Condition
Section titled “Condition”One test of a guest’s value.
| Field | Type | Description |
|---|---|---|
name (always) | string | |
op | string | "" (the value is set), ConditionIs or ConditionIsNot. |
value | string |
ConditionConfig
Section titled “ConditionConfig”A condition’s branches, in order.
| Field | Type | Description |
|---|---|---|
branches (always) | array of Branch |
Consent
Section titled “Consent”What PurrCRM keeps of the guest’s choices about its pushes.
| Field | Type | Description |
|---|---|---|
offers_by_push (always) | boolean |
ConsentBody
Section titled “ConsentBody”PUT consent: what the guest chose in the host’s own screens, when the host lets them choose there. Only what is sent changes.
| Field | Type | Description |
|---|---|---|
offers_by_push | boolean | The guest agreeing to offers by push: a marketing push goes only to a guest who has. |
Conversation
Section titled “Conversation”One conversation, with every part the guest sees, oldest first.
| Field | Type | Description |
|---|---|---|
assignee | Author | The member of staff answering, when one is. |
awaiting | string | The 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) | integer | The 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_seq | integer | The 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_id | string | The ticket this conversation is about, when there is one. |
unread (always) | integer | How many staff parts the guest has not read. |
updated_at (always) | string (date-time) |
ConversationPage
Section titled “ConversationPage”A page of the guest’s conversations, the most recently changed first. NextBefore is there when older ones are.
| Field | Type | Description |
|---|---|---|
items (always) | array of ConversationSummary | |
next_before | string |
ConversationState
Section titled “ConversationState”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.
ConversationSummary
Section titled “ConversationSummary”A conversation in a list.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
id (always) | string | |
preview (always) | string | The 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) |
ConversationUpdate
Section titled “ConversationUpdate”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.
| Field | Type | Description |
|---|---|---|
awaiting | string | As Conversation.Awaiting, now. |
last_seq (always) | integer | What 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. |
live | string | An 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_seq | integer | As Conversation.SeenSeq, now. |
state (always) | ConversationState (one of open, snoozed, closed) | |
typing | Author | The 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 |
Corner
Section titled “Corner”How round a carousel’s corners are: its sheet, its pictures, its tiles (carousel_style.json’s radii).
One of: soft, round, square.
crm.Consent
Section titled “crm.Consent”What the person agreed to.
| Field | Type | Description |
|---|---|---|
changed_at | string (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_email | boolean | Their agreeing to offers by email: a marketing email is sent only to a person who has. |
offers_by_push | boolean | Their agreeing to offers by push: a marketing push is sent only to a person who has, when PurrCRM pushes for the app itself. |
product_events | boolean | Their agreeing to what they do in the app being recorded (“Help improve …”): false drops every batch their app sends. |
sms | boolean | SMS 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. |
whatsapp | boolean |
crm.TicketField
Section titled “crm.TicketField”One of a new ticket’s fields, as text its type reads.
| Field | Type | Description |
|---|---|---|
key (always) | string | |
value (always) | string |
DarkMode
Section titled “DarkMode”Whether the SDK’s screens follow the phone’s dark mode.
One of: system, light, dark.
DataRequestBody
Section titled “DataRequestBody”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.
| Field | Type | Description |
|---|---|---|
due_at | string (date-time) | |
guest_id | string | |
kind (always) | DataRequestKind (one of access, erasure, rectification, restriction, objection, portability) | |
note | string | |
received_at | string (date-time) | |
requester (always) | string | |
status | DataRequestStatus (one of open, done, refused) |
DataRequestKind
Section titled “DataRequestKind”The right a person used.
One of: access, erasure, rectification, restriction, objection, portability.
DataRequestStatus
Section titled “DataRequestStatus”Where a request stands.
One of: open, done, refused.
DateConfig
Section titled “DateConfig”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.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
offset_days (always) | integer | |
yearly | boolean |
DeclaredEvent
Section titled “DeclaredEvent”What was done with one definition.
| Field | Type | Description |
|---|---|---|
added | array of string | The props a DeclarePropsAdded gave the event. |
index (always) | integer | |
name (always) | string | |
outcome (always) | DeclareOutcome (one of created, props_added, unchanged, refused) | |
problem | string | Why a DeclareRefused was not added. |
DeclaredEvents
Section titled “DeclaredEvents”Answers EventDefinitions: one DeclaredEvent for each definition, in the order they were sent, and how many of each outcome.
| Field | Type | Description |
|---|---|---|
created (always) | integer | |
items (always) | array of DeclaredEvent | |
props_added (always) | integer | |
refused (always) | integer | |
unchanged (always) | integer |
DeclaredLink
Section titled “DeclaredLink”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.
| Field | Type | Description |
|---|---|---|
name (always) | string | |
path (always) | string | |
screen | string | |
web_url | string |
DeclareOutcome
Section titled “DeclareOutcome”What a declaration did with one definition.
One of: created, props_added, unchanged, refused.
Definition
Section titled “Definition”One event an app has.
| Field | Type | Description |
|---|---|---|
category (always) | Category (one of account, app, crm) | |
description (always) | string | What 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) | |
passive | boolean | An event that happens to a person rather than one they do: it is recorded, and does not move when they were last seen. |
props | array of Prop | |
source (always) | Source (one of app, server, crm, both) |
DeviceBody
Section titled “DeviceBody”PUT devices: the registration token the host’s Firebase gave this device, which the package registers on every start and again whenever it changes.
| Field | Type | Description |
|---|---|---|
app_version | string | AppVersion and Locale are what the app is and speaks, for staff to tell devices apart; both may be left out. |
locale | string | |
platform (always) | PushPlatform (one of android, ios, web) | |
token (always) | string |
DevicePlatform
Section titled “DevicePlatform”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.
| Field | Type | Description |
|---|---|---|
handle (always) | string | Which 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 |
EmailBlock
Section titled “EmailBlock”One block of an email: a guest.Block, or a spacer or two columns.
| Field | Type | Description |
|---|---|---|
align | Align (one of start, center, end) | A text block’s, or an emoji’s; empty is the screen’s. |
alt | string | What a picture shows, for a guest who cannot see it. Required with ImageURL. |
aspect | ImageAspect (one of auto, 1:1, 4:3, 16:9, 3:4) | Aspect, Fit and Shape are a picture’s, as CarouselImage’s are. |
color | string | A 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). |
columns | array of array of Block | Exactly two, each of guest blocks. |
emoji | string | An emoji block’s, or the one before a callout’s words. |
fit | ImageFit (one of cover, contain) | |
height | integer | A spacer’s, 8 to 96 pixels. |
html | string | An html block’s. |
image_url | string | |
items | array of ListItem | |
label | string | |
level | integer | A heading’s, 1 to MaxHeadingLevel. |
link | string | Where 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. |
shape | ImageShape (one of rounded, circle, square) | |
show_if | Condition | ShowIf shows the block only to a guest whose values meet it; nil shows it to everyone. |
size | string | A 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. |
spans | array of Span | |
style | ButtonStyle (one of primary, secondary, text) | A button’s; empty is primary. |
tone | CalloutTone (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) | |
weight | TextWeight (one of regular, medium, bold) | A paragraph’s or a heading’s; empty is regular for a paragraph and bold for a heading. |
EmailConfirmPage
Section titled “EmailConfirmPage”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.
| Field | Type | Description |
|---|---|---|
accent | string | |
confirmed (always) | boolean | |
email | string | |
logo_url | string | |
product (always) | string |
EmailContent
Section titled “EmailContent”An email’s subject and blocks, laid out in its message’s layout.
| Field | Type | Description |
|---|---|---|
blocks (always) | array of EmailBlock | |
from_name | string | Who it says it is from; the layout’s when empty. |
preheader | string | The line a mail app shows after the subject. |
subject (always) | string |
EmailEvent
Section titled “EmailEvent”A mail provider telling PurrCRM what became of an email it sent, signed as InboundEmail is:
| Field | Type | Description |
|---|---|---|
address (always) | string | |
detail | string | |
hard | boolean | A bounce that is permanent; a soft one is counted and suppresses nothing. |
id (always) | string | The 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) |
EmailEventKind
Section titled “EmailEventKind”What became of an email.
One of: bounce, complaint, delivered.
EventBody
Section titled “EventBody”One thing the guest did.
| Field | Type | Description |
|---|---|---|
id (always) | string | The 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) | |
props | object of string | What 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. |
EventConfig
Section titled “EventConfig”An event trigger’s: the event, and tests of its props, all of which must hold.
| Field | Type | Description |
|---|---|---|
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) | |
filters | array of PropFilter |
EventCountConfig
Section titled “EventCountConfig”A count trigger’s: the event (its props passing every filter), done at least Count times within WithinDays days.
| Field | Type | Description |
|---|---|---|
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) | |
filters | array of PropFilter | |
within_days (always) | integer |
EventDefinitions
Section titled “EventDefinitions”PUT /server/v1/event-definitions: the app’s own events, as its servers declare them.
| Field | Type | Description |
|---|---|---|
definitions (always) | array of Definition |
EventRejected
Section titled “EventRejected”One event of a batch refused, by its place in the batch.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
index (always) | integer | |
reason (always) | string |
EventsAccepted
Section titled “EventsAccepted”Answers a batch.
| Field | Type | Description |
|---|---|---|
accepted (always) | integer | How 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. |
rejected | array of EventRejected | The 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. |
EventsBody
Section titled “EventsBody”A batch of events, oldest first, with the facts about the phone that every event in it shares.
| Field | Type | Description |
|---|---|---|
app_version (always) | string | |
device_model | string | |
events (always) | array of EventBody | |
os_version | string | OSVersion 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_at | string (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_zone | string | The phone’s IANA zone name (“Europe/London”), which PurrCRM uses for a guest’s quiet hours. Left out when the phone does not say. |
ExportArticleRating
Section titled “ExportArticleRating”The guest saying whether an article helped.
| Field | Type | Description |
|---|---|---|
article (always) | string | |
helpful (always) | boolean | |
rated_at (always) | string (date-time) |
ExportAttribute
Section titled “ExportAttribute”One attribute and its value.
| Field | Type | Description |
|---|---|---|
name (always) | string | |
value (always) | string |
ExportCollected
Section titled “ExportCollected”One thing the help bot kept from a conversation: what it is called (order_ref, email) and what the guest gave.
| Field | Type | Description |
|---|---|---|
conversation_id (always) | string | |
key (always) | string | |
value (always) | string |
ExportConsentChange
Section titled “ExportConsentChange”One change of the guest’s choices, for their export: a topic’s (by its name), or a channel’s own switch (no topic).
| Field | Type | Description |
|---|---|---|
at (always) | string (date-time) | |
channel (always) | PreferenceChannel (one of email, push, in_app, chat) | |
source (always) | string | |
subscribed (always) | boolean | |
topic | string | |
wording | string |
ExportContact
Section titled “ExportContact”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.
| Field | Type | Description |
|---|---|---|
article_ratings | array of ExportArticleRating | |
attributes (always) | array of ExportAttribute | The 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. |
collected | array of ExportCollected | |
consent_history | array of ExportConsentChange | |
conversations | array of ExportConversation | Conversations, 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. |
devices | array of ExportDevice | The 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_truncated | boolean | The export holding only the newest MaxExportEvents events of more. |
notes (always) | array of ExportNote | What staff wrote about the guest. Who wrote each is left out: that is the member of staff’s, not the guest’s. |
notices | array of ExportNotice | |
receipts | array of ExportReceipt | Receipts 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. |
subscriptions | array of ExportSubscription | The 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_responses | array of ExportSurveyResponse | |
tags (always) | array of string | The names of the tags staff put on the guest. |
test_phone | ExportTestPhone | The 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_sends | array of ExportTestSend | |
tickets | array of ExportTicket | |
workflows | array of ExportWorkflowRun | The 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. |
ExportConversation
Section titled “ExportConversation”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.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
id (always) | string | |
parts (always) | array of ExportPart | |
rating | integer | |
remark | string | |
state (always) | ConversationState (one of open, snoozed, closed) |
ExportDevice
Section titled “ExportDevice”One device the guest registered for pushes, for their export. Its token is a credential for the device and is left out.
| Field | Type | Description |
|---|---|---|
app_version | string | |
created_at (always) | string (date-time) | |
last_seen_at (always) | string (date-time) | |
locale | string | |
platform (always) | PushPlatform (one of android, ios, web) |
ExportEvent
Section titled “ExportEvent”One event recorded about the guest: one of AppEvents, or a server event.
| Field | Type | Description |
|---|---|---|
name (always) | string | |
occurred_at (always) | string (date-time) | |
props | object of string |
ExportNote
Section titled “ExportNote”One note staff wrote about the guest.
| Field | Type | Description |
|---|---|---|
body (always) | string | |
created_at (always) | string (date-time) |
ExportNotice
Section titled “ExportNotice”One notice in the guest’s inbox, for their export.
| Field | Type | Description |
|---|---|---|
body (always) | string | |
created_at (always) | string (date-time) | |
link | string | |
read_at | string (date-time) | |
title (always) | string | |
type (always) | PushType (one of support_reply, crm_message) |
ExportPart
Section titled “ExportPart”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.
| Field | Type | Description |
|---|---|---|
attachments | array of string | |
author (always) | Author | |
blocks | array of Block | |
created_at (always) | string (date-time) | |
kind (always) | PartKind (one of message, reply, note, bot, assignment, state, rating_request) | |
text | string |
ExportReceipt
Section titled “ExportReceipt”One message the guest was sent or shown, for their export: what it was and what they did with it.
| Field | Type | Description |
|---|---|---|
clicked_at | string (date-time) | |
completed_at | string (date-time) | |
dismissed_at | string (date-time) | |
kind (always) | MessageKind (one of chat, post, banner, carousel, survey, push, email) | |
message (always) | string | The message’s name, as staff called it. |
seen_at | string (date-time) | |
sent_at | string (date-time) | |
variant | string |
ExportSubscription
Section titled “ExportSubscription”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.
| Field | Type | Description |
|---|---|---|
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 | |
wording | string |
ExportSurveyAnswer
Section titled “ExportSurveyAnswer”One answer, as the words of the question and of the answer.
| Field | Type | Description |
|---|---|---|
answer (always) | string | |
question (always) | string |
ExportSurveyResponse
Section titled “ExportSurveyResponse”The guest’s answers to one survey.
| Field | Type | Description |
|---|---|---|
answers (always) | array of ExportSurveyAnswer | |
completed_at | string (date-time) | |
started_at (always) | string (date-time) | |
survey (always) | string |
ExportTestPhone
Section titled “ExportTestPhone”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.
| Field | Type | Description |
|---|---|---|
added_at (always) | string (date-time) | |
label | string |
ExportTestSend
Section titled “ExportTestSend”One test staff sent to the guest’s test phone: what it was, and what became of it. Who sent it is left out.
| Field | Type | Description |
|---|---|---|
answers | array of ExportSurveyAnswer | A survey test’s, in the words of the questions. |
clicked_at | string (date-time) | |
completed_at | string (date-time) | |
dismissed_at | string (date-time) | |
kind (always) | MessageKind (one of chat, post, banner, carousel, survey, push, email) | |
name (always) | string | The message’s, as staff called it when they sent it, or the built-in sample’s, when Sample. |
outcome | string | A push’s or a chat’s: sent, notifications_off, not_sent or started. |
picked_up_at | string (date-time) | When the app took an in-app test at a check-in; what the guest did with it follows. |
sample | boolean | |
seen_at | string (date-time) | |
sent_at (always) | string (date-time) |
ExportTicket
Section titled “ExportTicket”One of the guest’s tickets, for their export.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
fields (always) | array of TicketField | |
ref (always) | string | |
resolved_at | string (date-time) | |
state (always) | TicketState (one of submitted, in_progress, waiting_on_guest, resolved) | |
title (always) | string | |
type (always) | string |
ExportWorkflowRun
Section titled “ExportWorkflowRun”One run of a workflow the guest was in: the workflow’s name, where the run is and, once it has ended, how.
| Field | Type | Description |
|---|---|---|
ended_at | string (date-time) | |
outcome | string | |
started_at (always) | string (date-time) | |
state (always) | string | |
workflow (always) | string |
Feature
Section titled “Feature”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.
FieldType
Section titled “FieldType”What a ticket’s field holds.
One of: text, list, number, bool, date.
FilterOp
Section titled “FilterOp”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.
ForgetDeviceBody
Section titled “ForgetDeviceBody”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.
| Field | Type | Description |
|---|---|---|
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.
| Field | Type | Description |
|---|---|---|
event | 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) | |
filters | array of PropFilter | |
revenue_prop | string | The 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. |
rule | Rule | |
within_days (always) | integer |
A workflow’s nodes and the edges between them.
HandOffConfig
Section titled “HandOffConfig”HandOffConfig hands the conversation to TeamID (the default team when empty), saying Blocks first when there are any.
| Field | Type | Description |
|---|---|---|
blocks | array of Block | |
team_id | string |
HeaderMark
Section titled “HeaderMark”What the messenger’s header shows under its title.
One of: none, logo, faces.
HelpRequestPage
Section titled “HelpRequestPage”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).
| Field | Type | Description |
|---|---|---|
accent | string | |
email (always) | string | |
logo_url | string | |
opened (always) | boolean | |
product (always) | string | |
ref | string |
HomeCard
Section titled “HomeCard”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.
| Field | Type | Description |
|---|---|---|
articles | array of ArticleSummary | |
id (always) | string | The card’s, as staff made it: the same on every read. |
kind (always) | HomeCardKind (one of send, search_help, articles, conversations, tickets, link, status) | |
link | string | A path in the app or an https link, personalised. |
text | string | |
title | string |
HomeCardKind
Section titled “HomeCardKind”What a card of the messenger’s home is.
One of: send, search_help, articles, conversations, tickets, link, status.
Identify
Section titled “Identify”PUT /server/v1/contacts/{external_id}: who the person is. Only what is sent changes.
| Field | Type | Description |
|---|---|---|
attributes | object of any | The 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. |
companies | array of string | The 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. |
consent | crm.Consent | |
display_name | string | What they are called, at most 100 characters. |
email | string | Their address, which PurrCRM sends email to. |
language | string | Their language as a BCP 47 tag (“en”, “en-GB”). |
phone | string | Their 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. |
provider | string | How they sign in, in the app’s own word: apple, google, password, or any other of at most 40 characters. |
signed_up_at | string (date-time) | When they made their account. |
time_zone | string | Their IANA zone (“Europe/London”). |
IdentifyAnswer
Section titled “IdentifyAnswer”Answers an Identify: the person, and whether this made them.
| Field | Type | Description |
|---|---|---|
created (always) | boolean | |
external_id (always) | string |
IdentifyBatch
Section titled “IdentifyBatch”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.
| Field | Type | Description |
|---|---|---|
contacts (always) | array of BatchIdentify |
IdentifyBatchAnswer
Section titled “IdentifyBatchAnswer”Answers an IdentifyBatch: one result each, in the batch’s order.
| Field | Type | Description |
|---|---|---|
results (always) | array of BatchIdentifyResult |
ImageAspect
Section titled “ImageAspect”A picture’s shape, width to height; auto is the picture’s own.
One of: auto, 1:1, 4:3, 16:9, 3:4.
ImageFit
Section titled “ImageFit”How a picture fills its box: cover crops it to fill, contain shows it whole.
One of: cover, contain.
ImageShape
Section titled “ImageShape”A picture’s corners.
One of: rounded, circle, square.
ImageSize
Section titled “ImageSize”How much of the screen a picture takes: a hero’s height, or an image block’s width.
One of: small, medium, large, full.
Import
Section titled “Import”One import as the site shows it.
| Field | Type | Description |
|---|---|---|
bytes (always) | integer | The file’s size; Rows its rows after the header. |
checked_at | string (date-time) | |
columns (always) | array of string | |
created_at (always) | string (date-time) | |
delimiter (always) | string | ”,” or ”;”. |
done (always) | integer | How many rows the job going (or the last) has been through. |
errors (always) | array of ImportError | The 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_at | string (date-time) | |
has_error_file (always) | boolean | |
id (always) | string | |
new_tags (always) | array of string | The tags the import makes. |
plan | ImportPlan | |
preview | ImportCounts | What the check found; Result what the import did. |
problem | string | Why the whole import failed. |
requested_by (always) | string | |
result | ImportCounts | |
rows (always) | integer | |
sample (always) | array of array of string | The first rows, each with every column. |
started_at | string (date-time) | |
status (always) | ImportStatus (one of uploaded, checking, checked, importing, done, failed, cancelled) | |
workflows (always) | array of ImportWorkflow | The running workflows a change it makes starts. |
ImportColumn
Section titled “ImportColumn”One column of the file, by its place (from 0), and what it is read as.
| Field | Type | Description |
|---|---|---|
attribute | string | Names the custom attribute for ImportAttribute. |
channel | TopicChannel (one of email, push, in_app, chat) | |
column (always) | integer | |
create | string | Create, 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) | |
topic | string | Topic and Channel name the topic and the channel for ImportSubscription, and Wording, optionally, what the contacts agreed under (“the 2025 sign-up form”). |
wording | string |
ImportCounts
Section titled “ImportCounts”What a check found, or an import did, with its rows.
| Field | Type | Description |
|---|---|---|
errors (always) | integer | The rows that could not be read or taken. |
new (always) | integer | The people the app has no contact for that are made (or, in a check, would be). |
skipped (always) | integer | The rows of people the app has no contact for, left out (ImportSkip). |
unchanged (always) | integer | The contacts the row says nothing new about. |
updated (always) | integer | The contacts something was changed on. |
ImportError
Section titled “ImportError”One row that failed, by its line in the file (the header is line 1).
| Field | Type | Description |
|---|---|---|
error (always) | string | |
line (always) | integer |
ImportPlan
Section titled “ImportPlan”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.
| Field | Type | Description |
|---|---|---|
columns (always) | array of ImportColumn | |
tag | string | Put on every contact a row makes or matches; empty is none. |
unknown (always) | ImportUnknown (one of create, skip) |
ImportStatus
Section titled “ImportStatus”Where an import is.
One of: uploaded, checking, checked, importing, done, failed, cancelled.
ImportTarget
Section titled “ImportTarget”What a column of the file is read as.
One of: ignore, external_id, display_name, email, language, offers_by_email, attribute, tags, subscription.
ImportUnknown
Section titled “ImportUnknown”What becomes of a row whose person the app has no contact for.
One of: create, skip.
ImportWorkflow
Section titled “ImportWorkflow”A running workflow that starts when an attribute the plan sets changes: the import starts it for every contact it changes.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
id (always) | string | |
name (always) | string |
InAppMessage
Section titled “InAppMessage”One message to show: its kind’s content, and the variant the guest was given, which every receipt about it says again.
| Field | Type | Description |
|---|---|---|
banner | Banner | Exactly one of these is set, the one Kind names. |
carousel | Carousel | |
id (always) | string | |
kind (always) | MessageKind (one of chat, post, banner, carousel, survey, push, email) | |
pages | array of string | The 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. |
post | Post | |
screens | array of string | The 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. |
survey | Survey | |
test | boolean | A 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 |
InboundEmail
Section titled “InboundEmail”A reply by email to one of PurrCRM’s support emails, as the mail provider’s inbound hook posts it to PurrCRM, signed:
| Field | Type | Description |
|---|---|---|
cc | array of string | Who 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 | |
headers | object of string | The 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) | string | The provider’s id for the message: the same message posted twice is threaded once. |
in_reply_to | string | |
message_id | string | MessageID, 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) | |
references | array of string | |
subject | string | |
text (always) | string | The plain-text body, the quoted email under the reply still in it: PurrCRM keeps the reply alone. |
to (always) | array of string |
Launcher
Section titled “Launcher”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.
| Field | Type | Description |
|---|---|---|
badge (always) | boolean | The count of replies the guest has not read on it. |
bottom (always) | integer | Bottom 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_phones | boolean | HiddenOnPhones 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_pages | array of string | |
icon | LauncherIcon (one of chat, question, help) | What it shows; empty is IconChat. |
opens | MessengerSpace (one of home, messages, help, tickets) | Where the messenger opens when the launcher is pressed; empty is SpaceHome. |
shown (always) | boolean | |
side | LauncherSide (one of left, right) | The bottom corner it is in; empty is SideRight. It stays on that side in a right-to-left language. |
LauncherIcon
Section titled “LauncherIcon”What a launcher shows.
One of: chat, question, help.
LauncherSide
Section titled “LauncherSide”The bottom corner a launcher is in.
One of: left, right.
LinkClaimBody
Section titled “LinkClaimBody”A claim the app makes on its first run.
| Field | Type | Description |
|---|---|---|
token (always) | string |
LinkCount
Section titled “LinkCount”Clicks by one value of a breakdown.
| Field | Type | Description |
|---|---|---|
clicks (always) | integer | |
key (always) | string |
LinkCountryRule
Section titled “LinkCountryRule”LinkCountryRule sends visitors from Countries (ISO 3166 alpha-2) to Destination.
| Field | Type | Description |
|---|---|---|
countries (always) | array of string | |
destination (always) | string |
LinkDay
Section titled “LinkDay”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).
| Field | Type | Description |
|---|---|---|
bots (always) | integer | |
clicks (always) | integer | |
day (always) | string | |
installs (always) | integer | |
opens (always) | integer | |
uniques (always) | integer |
LinkDestinationCount
Section titled “LinkDestinationCount”One destination of a link’s split or country rules, and what it had.
| Field | Type | Description |
|---|---|---|
clicks (always) | integer | |
destination (always) | string | |
opens (always) | integer |
LinkGoal
Section titled “LinkGoal”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.
| Field | Type | Description |
|---|---|---|
converted (always) | integer | |
days (always) | integer | |
event (always) | string | |
opened (always) | integer |
LinkParam
Section titled “LinkParam”One placeholder of a destination’s path: its key, what staff call it, what it holds, and a value to start from or show.
| Field | Type | Description |
|---|---|---|
default | string | Default fills the placeholder when nothing else does. |
example | string | A value to show the link with. |
key (always) | string | |
label | string | |
options | array of string | A choice’s values. |
type (always) | LinkParamType (one of text, number, id, slug, choice) |
LinkParamType
Section titled “LinkParamType”What a placeholder’s value is.
One of: text, number, id, slug, choice.
LinkReportBody
Section titled “LinkReportBody”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.
| Field | Type | Description |
|---|---|---|
reason | string | |
to (always) | string | |
via | string |
LinkSource
Section titled “LinkSource”Where a destination came from.
One of: staff, app.
LinkStats
Section titled “LinkStats”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.
| Field | Type | Description |
|---|---|---|
channels (always) | array of LinkCount | |
days (always) | array of LinkDay | |
destinations | array of LinkDestinationCount | Destinations 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 | |
goal | LinkGoal | |
platforms (always) | array of LinkCount | |
reengage_days | integer | The 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 |
LinkTemplateDefaults
Section titled “LinkTemplateDefaults”What a template fills in a new link.
| Field | Type | Description |
|---|---|---|
android_url | string | |
campaign | string | |
channel | string | |
desktop_mode | string | |
desktop_url | string | |
goal_days | integer | |
goal_event | string | |
ios_url | string | |
tags | array of string | |
utm_campaign | string | |
utm_medium | string | |
utm_source | string |
LinkTotals
Section titled “LinkTotals”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.
| Field | Type | Description |
|---|---|---|
bots (always) | integer | |
clicks (always) | integer | |
installs (always) | integer | |
opens (always) | integer | |
returning | integer | |
uniques (always) | integer |
LinkVariant
Section titled “LinkVariant”One of a saved link’s destinations in a split, and its share (1 to 100, against the others’).
| Field | Type | Description |
|---|---|---|
destination (always) | string | |
weight (always) | integer |
ListItem
Section titled “ListItem”One item of a list.
| Field | Type | Description |
|---|---|---|
spans (always) | array of Span |
LookMotion
Section titled “LookMotion”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.
| Field | Type | Description |
|---|---|---|
banner | BannerMotion (one of slide, fade) | How a banner comes in; empty is BannerSlide. |
enter | MotionEnter (one of slide, fade, scale, spring) | How a sheet, a card and the messenger come in; empty is EnterSlide. |
speed | MotionSpeed (one of calm, standard, brisk, off) | Speed scales every animation’s time (carousel_style.json’s motion.speeds); empty is SpeedStandard. |
LookPresentation
Section titled “LookPresentation”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.
| Field | Type | Description |
|---|---|---|
account | SurfacePresentation | The guest’s own: their preferences and their inbox. |
help | SurfacePresentation | The help center, its search and its articles. |
messages | SurfacePresentation | An in-app post or survey. |
messenger | SurfacePresentation | The messenger: its home, and its conversations when one is what opens. |
tickets | SurfacePresentation | The guest’s tickets, and a ticket’s form. |
LookWords
Section titled “LookWords”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.
| Field | Type | Description |
|---|---|---|
search_help | string | The home’s help search (“Search for help”). |
send | string | The home’s button that starts a conversation (“Send us a message”). |
title | string | The messenger’s top bar (“Messages”). |
How a group joins its rules.
One of: all, any.
MessageBody
Section titled “MessageBody”The guest writing: in a new conversation, in one of theirs, or on a ticket. Text, pictures, or both.
| Field | Type | Description |
|---|---|---|
attachment_ids | array of string | Pictures uploaded through an AttachmentUpload and not yet sent. |
text (always) | string |
MessageKind
Section titled “MessageKind”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.
MessageSend
Section titled “MessageSend”One send the server API asked for.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
detail | string | |
external_id (always) | string | |
id (always) | string | |
message_id (always) | string | |
status (always) | SendStatus (one of queued, not_sent) |
MessageSendBody
Section titled “MessageSendBody”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.
| Field | Type | Description |
|---|---|---|
external_id (always) | string | |
props | object of string |
MessageTemplate
Section titled “MessageTemplate”One of an app’s templates.
| Field | Type | Description |
|---|---|---|
content (always) | TemplateContent | |
created_at (always) | string (date-time) | |
created_by (always) | string | CreatedBy 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 |
MessageTemplateBody
Section titled “MessageTemplateBody”POST message-templates.
| Field | Type | Description |
|---|---|---|
content (always) | TemplateContent | |
description | string | |
kind (always) | TemplateKind (one of carousel, carousel_screen, email) | |
name (always) | string |
MessageTemplateList
Section titled “MessageTemplateList”GET message-templates.
| Field | Type | Description |
|---|---|---|
items (always) | array of MessageTemplate |
MessageTemplatePatch
Section titled “MessageTemplatePatch”PATCH message-templates/{id}: only what is sent changes, and a template’s kind never does.
| Field | Type | Description |
|---|---|---|
content | TemplateContent | |
description | string | |
name | string |
MessengerCard
Section titled “MessengerCard”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).
| Field | Type | Description |
|---|---|---|
article_ids | array of string | |
ends_at | string (date-time) | |
id (always) | string | The 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) | |
link | string | A path in the app or an https link, which may carry personalisation tags after its host. |
segment_id | string | The segment it is shown to; empty for everyone. |
starts_at | string (date-time) | StartsAt and EndsAt bound when a status card is shown. |
text | string | |
title | string |
MessengerHome
Section titled “MessengerHome”The messenger’s first screen.
| Field | Type | Description |
|---|---|---|
articles (always) | array of ArticleSummary | The help center’s featured articles, when the help center is switched on; empty otherwise. |
layout | MessengerLayout | The 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 ConversationSummary | The guest’s open conversations, the most recently changed first, at most three. |
opening | MessengerOpening | What 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 SupportTicketSummary | The guest’s tickets not yet resolved, and those resolved in the last week. |
unread (always) | integer | Every staff part the guest has not read, in every conversation: the badge on the app’s top bar. |
MessengerLayout
Section titled “MessengerLayout”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.
| Field | Type | Description |
|---|---|---|
attachments (always) | boolean | The guest being able to send pictures: PurrCRM refuses a picture (attachment_invalid) while it is false. |
away_text | string | Said 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) | |
files | boolean | The 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) | string | The heading, personalised; empty for the app’s own words (“Talk to the … team”). |
help_center (always) | boolean | The home pointing to the help center (a search card, articles, a link to browse it). |
intro (always) | string | A line under it, personalised; empty for none. |
names | boolean | Names 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_text | string | Says 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 Author | The teammates to show when Faces is chosen, by first name, as Author of kind teammate; empty otherwise. |
MessengerOpening
Section titled “MessengerOpening”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.
| Field | Type | Description |
|---|---|---|
awaiting | string | The 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) | string | Workflow and Version are the help bot’s, for StartBody.Opening. |
MessengerOptions
Section titled “MessengerOptions”What a guest may do in the messenger.
| Field | Type | Description |
|---|---|---|
attachments (always) | boolean | The guest being able to send pictures. |
files | boolean | The guest being able to send files (guest.FileTypes: PDFs, text, spreadsheets and other documents); off unless staff turn it on. |
help_center (always) | boolean | The home pointing to the help center. |
new_conversation (always) | NewConversations (one of always, when_none_open, never) |
MessengerSettings
Section titled “MessengerSettings”The messenger’s home as staff set it.
| Field | Type | Description |
|---|---|---|
cards (always) | array of MessengerCard | |
greeting (always) | string | The heading, with personalisation tags; empty for the app’s own words. |
intro (always) | string | A line under it, with tags; empty for none. |
look (always) | PublicLook | How 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 |
MessengerSpace
Section titled “MessengerSpace”One of the messenger’s parts, where it may be opened.
One of: home, messages, help, tickets.
MessengerTeam
Section titled “MessengerTeam”Whose faces the home shows, and what it says about when a reply comes.
| Field | Type | Description |
|---|---|---|
away_text (always) | string | Said 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) | boolean | Names writes their first names under the faces. |
reply (always) | ReplyShown (one of office_hours, text) | |
reply_text (always) | string | The line when Reply is text. |
teammates (always) | array of string | The user ids of those shown when Faces is chosen, in order. |
MotionEnter
Section titled “MotionEnter”How a sheet, a card or the messenger comes in.
One of: slide, fade, scale, spring.
MotionSpeed
Section titled “MotionSpeed”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.
NewConversations
Section titled “NewConversations”When a guest may start a conversation.
One of: always, when_none_open, never.
NewTicketBody
Section titled “NewTicketBody”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).
| Field | Type | Description |
|---|---|---|
fields | array of TicketField | |
text | string | |
title (always) | string | |
type_id (always) | string |
One step of a workflow.
| Field | Type | Description |
|---|---|---|
config (always) | NodeConfig | |
id (always) | string | The 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) | |
label | string | What staff call the node on the canvas; empty shows the kind’s name. |
x (always) | number | X and Y are where it is on the canvas. |
y (always) | number |
NodeConfig
Section titled “NodeConfig”A node’s settings: exactly the field its kind names (ConfigOf), or none for a kind that has none.
| Field | Type | Description |
|---|---|---|
ai_answer | AIAnswerConfig | |
articles | ArticlesConfig | |
ask | AskConfig | |
assign | AssignConfig | |
attribute | AttributeConfig | |
bot_message | BotMessageConfig | |
collect | CollectConfig | |
condition | ConditionConfig | |
date | DateConfig | |
event | EventConfig | |
event_count | EventCountConfig | |
hand_off | HandOffConfig | |
notify | NotifyConfig | |
office_hours | OfficeHoursConfig | |
rating | RatingConfig | |
resolve | ResolveConfig | |
segment | SegmentConfig | |
send | SendConfig | |
set_attribute | SetAttributeConfig | |
set_state | SetStateConfig | |
sla | SLAConfig | |
split | SplitConfig | |
state_change | StateChangeConfig | |
tag | TagConfig | |
team_chat | TeamChatConfig | |
ticket | TicketConfig | |
track_event | TrackEventConfig | |
unresponsive | UnresponsiveConfig | |
update_ticket | UpdateTicketConfig | |
wait | WaitConfig | |
webhook | WebhookConfig |
NodeKind
Section titled “NodeKind”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.
Notice
Section titled “Notice”One notice in the guest’s inbox PurrCRM keeps: what it pushed them, kept to read again.
| Field | Type | Description |
|---|---|---|
body (always) | string | |
created_at (always) | string (date-time) | |
id (always) | string | |
link | string | A path in the app, which the app’s allow-list decides whether to open. |
read_at | string (date-time) | |
title (always) | string | |
type (always) | PushType (one of support_reply, crm_message) |
NoticePage
Section titled “NoticePage”A page of the guest’s inbox, newest first.
| Field | Type | Description |
|---|---|---|
next_before | string | The notice to ask for older ones before, and empty on the last page. |
notices (always) | array of Notice | |
unread (always) | integer | Unread counts the whole inbox, not only this page: the number on the bell. |
NoticesReadBody
Section titled “NoticesReadBody”POST notices/read: the notices shown, or all of them. A notice that is not the guest’s is left alone.
| Field | Type | Description |
|---|---|---|
all | boolean | |
ids | array of string |
NotifyConfig
Section titled “NotifyConfig”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.
| Field | Type | Description |
|---|---|---|
team_id | string | |
teammate_id | string | |
text (always) | string |
OfficeHoursConfig
Section titled “OfficeHoursConfig”The team whose hours are asked about; empty is the default team’s.
| Field | Type | Description |
|---|---|---|
team_id | string |
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.
OpeningRef
Section titled “OpeningRef”Names an opening by its workflow and the version it was worked out from.
| Field | Type | Description |
|---|---|---|
version (always) | integer | |
workflow (always) | string |
OpenMessageBody
Section titled “OpenMessageBody”POST /guest/v1/messages/{message_id}/open: the session the app opened the message in.
| Field | Type | Description |
|---|---|---|
session_id (always) | string |
OrderRef
Section titled “OrderRef”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.
| Field | Type | Description |
|---|---|---|
example (always) | string | One that matches, which the bot shows (“ORD-7K2QD”). |
label (always) | string | What the app calls it, “Order number”: at most 40 characters. |
pattern (always) | string | What a reference looks like, a regular expression (RE2) the whole answer must match, at most MaxOrderRefPattern bytes. |
prop | string | The 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. |
upper | boolean | An 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.
| Field | Type | Description |
|---|---|---|
attachments | array of Attachment | The part’s pictures, and only pictures: an SDK that knows no Files never draws a document as a picture. |
author (always) | Author | |
blocks | array of Block | A reply’s or the bot’s words (the content schema above). |
bot | BotPart | What a help-bot part asks of the guest. |
created_at (always) | string (date-time) | |
files | array of Attachment | The 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) | |
rating | integer | The guest’s answer to a rating request, 1 to MaxRating, once they give it. |
seq (always) | integer | Seq orders a conversation’s parts, from 1, and is what a wait is asked after. |
state | ConversationState (one of open, snoozed, closed) | Where a state part moved the conversation to. |
text | string | What the guest wrote, as they wrote it: never read as markup. |
PartKind
Section titled “PartKind”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.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
features | array of string | The features the plan includes (PlanCatalogue.Features lists every one there is). |
id (always) | string | |
limits (always) | PlanLimits | |
name (always) | string | |
prices | array of Price | Its price by the month in each currency it is sold in. |
public | boolean | Whether a workspace may choose the plan itself. |
sort | integer | Sort orders the plans, the least first. |
updated_at (always) | string (date-time) |
PlanLimits
Section titled “PlanLimits”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.
| Field | Type | Description |
|---|---|---|
ai_actions_per_month | integer | |
api_per_minute | integer | |
api_tokens | integer | |
apps (always) | integer | How many of a workspace’s apps may be on the plan. |
audit_days | integer | |
contacts (always) | integer | |
conversations_per_month (always) | integer | |
custom_attributes | integer | |
custom_roles | integer | These replace the product’s own number of each, where they are above 0: fewer or more. 0 leaves the product’s. |
destinations | integer | |
emails_per_month (always) | integer | |
event_days | integer | EventDays and AuditDays are how many days events and the activity log are kept; StorageMB how many megabytes of uploads. |
event_definitions | integer | |
events_per_month | integer | |
languages | integer | |
saved_reports | integer | |
seats (always) | integer | How many members reach the app; Viewers how many more who only view. |
segments | integer | |
sending_domains | integer | |
storage_mb | integer | |
viewers | integer | |
webhook_endpoints | integer | |
workflows | integer |
A full screen of blocks, from a member of staff.
| Field | Type | Description |
|---|---|---|
blocks (always) | array of Block | |
sender | Author | Who it is from, by first name; left out for the app itself (its brand’s name). |
PreferenceChannel
Section titled “PreferenceChannel”A way a topic reaches the guest.
One of: email, push, in_app, chat.
PreferenceChoice
Section titled “PreferenceChoice”One choice.
| Field | Type | Description |
|---|---|---|
channel (always) | PreferenceChannel (one of email, push, in_app, chat) | |
subscribed (always) | boolean | |
topic_id (always) | string |
Preferences
Section titled “Preferences”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).
| Field | Type | Description |
|---|---|---|
all_off (always) | boolean | |
topics (always) | array of PreferenceTopic |
PreferencesBody
Section titled “PreferencesBody”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.
| Field | Type | Description |
|---|---|---|
all_off | boolean | |
choices | array of PreferenceChoice | |
wording | string |
PreferenceState
Section titled “PreferenceState”One channel of a topic: whether the guest hears it.
| Field | Type | Description |
|---|---|---|
channel (always) | PreferenceChannel (one of email, push, in_app, chat) | |
subscribed (always) | boolean |
PreferenceTopic
Section titled “PreferenceTopic”One of the app’s topics, and the guest’s state on each channel it uses.
| Field | Type | Description |
|---|---|---|
channels (always) | array of PreferenceState | |
description | string | |
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.
| Field | Type | Description |
|---|---|---|
amount_minor (always) | integer | |
currency (always) | string | |
effective_from | string (date-time) | |
version | integer |
Problem
Section titled “Problem”A refusal (RFC 9457). Switch on code, never on detail, which is a sentence for people and may be reworded.
| Field | Type | Description |
|---|---|---|
code (always) | string | What 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. |
detail | string | What went wrong, in a sentence that can be shown to a person. |
errors | array of object | The fields that were wrong, for a 400 that has them. |
feature | string | For plan_feature: the feature the app’s plan and add-ons leave out, as the catalogue names it. |
meter | string | For plan_limit: the meter the plan, add-ons and credit have no more of (emails, ai_answers, contacts, conversations, events). |
request_id | string | The request’s id, to quote when asking for help. |
status (always) | integer | The HTTP status. |
title (always) | string | The HTTP status in words. |
type (always) | string | A URI for the kind of problem; about:blank for most. |
One prop an event carries.
| Field | Type | Description |
|---|---|---|
key (always) | string | |
type (always) | PropType (one of string, number, bool, time, money) |
PropFilter
Section titled “PropFilter”One test of an event’s prop.
| Field | Type | Description |
|---|---|---|
key (always) | string | |
op (always) | FilterOp (one of eq, ne, contains, starts_with, gt, gte, lt, lte, exists, not_exists) | |
value | string |
PropType
Section titled “PropType”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.
PublicApp
Section titled “PublicApp”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.
| Field | Type | Description |
|---|---|---|
brand (always) | PublicBrand | |
currency (always) | string | The 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. |
handle | string | The 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_host | string | The 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) | string | The app’s public key, the one asked for. |
languages | array of string | The languages its content is written in: its default first, then the others. Left out by a CRM older than that. |
link_base | string | Where 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). |
look | PublicLook | How 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_version | string | The 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_ref | OrderRef | Its order reference; left out for an app without one. |
PublicBrand
Section titled “PublicBrand”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.
| Field | Type | Description |
|---|---|---|
accent | string | |
logo_url | string | |
name (always) | string | |
support_email | string |
PublicCatalog
Section titled “PublicCatalog”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.
| Field | Type | Description |
|---|---|---|
addons (always) | array of Addon | |
currencies (always) | array of string | |
features (always) | array of string | |
plans (always) | array of Plan | |
rates (always) | array of Rate | Every pay-as-you-go rate in force, by meter, currency and tier. |
region | string | The region this catalogue is from, empty for a deployment of one. |
trial | CatalogTrial | The plan a new workspace’s first app tries, and for how long: left out where the deployment takes no payments, which gives no trial. |
PublicLinkApp
Section titled “PublicLinkApp”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.
| Field | Type | Description |
|---|---|---|
android_package | string | The 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_url | string | |
brand (always) | PublicBrand | |
key (always) | string | The app’s public key. |
link_base (always) | string | Where the app’s links are (PublicApp.LinkBase). |
name (always) | string | |
play_store_url | string | |
web | string | The 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. |
PublicLook
Section titled “PublicLook”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.
| Field | Type | Description |
|---|---|---|
accent | string | The screens’ accent, #rrggbb; empty is the brand’s (PublicBrand.Accent), and the SDK’s own without one. |
accent_dark | string | The accent in dark mode, #rrggbb; empty is Accent. |
button_shape | ButtonShape (one of pill, rounded) | |
corner | Corner (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_mode | DarkMode (one of system, light, dark) | Whether the screens follow the phone; empty is DarkSystem. |
header | CarouselBackground | Behind 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_mark | HeaderMark (one of none, logo, faces) | What the header shows under its title; empty is MarkNone. |
launcher (always) | Launcher | |
motion (always) | LookMotion | |
presentation | LookPresentation | How 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 |
PublicPreferences
Section titled “PublicPreferences”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.
| Field | Type | Description |
|---|---|---|
accent | string | Accent (#rrggbb) and LogoURL are the app’s, for the page to wear; either may be absent. |
all_off (always) | boolean | |
email | string | The contact’s address, all but its first letter and its domain hidden (“j•••@example.com”); empty for none. |
logo_url | string | |
product (always) | string | |
topics (always) | array of PreferenceTopic |
PublicRatingBody
Section titled “PublicRatingBody”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.
| Field | Type | Description |
|---|---|---|
helpful (always) | boolean | |
language | string | The language the reader read it in (Article.Language), for the help report; left out, the app’s default. |
visitor (always) | string |
PublicTicketBody
Section titled “PublicTicketBody”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.
| Field | Type | Description |
|---|---|---|
email (always) | string | |
name | string | |
ticket (always) | NewTicketBody |
PushPlatform
Section titled “PushPlatform”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.
PushType
Section titled “PushType”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.
QuestionType
Section titled “QuestionType”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.
| Field | Type | Description |
|---|---|---|
currency (always) | string | |
meter (always) | string | |
per (always) | integer | |
tier_from (always) | integer | |
unit_micros (always) | integer | |
version | integer |
RatingBody
Section titled “RatingBody”The guest’s answer to a rating request.
| Field | Type | Description |
|---|---|---|
rating (always) | integer | 1 (bad) to MaxRating (great). |
remark | string | Anything they want to add. |
RatingConfig
Section titled “RatingConfig”RatingConfig bounds the rating given: zero is no bound.
| Field | Type | Description |
|---|---|---|
at_least | integer | |
at_most | integer |
ReadBody
Section titled “ReadBody”Says the guest has seen a conversation up to a part.
| Field | Type | Description |
|---|---|---|
seq (always) | integer |
ReceiptAction
Section titled “ReceiptAction”What the guest did with a message the app showed.
One of: seen, clicked, dismissed, completed, answered.
ReceiptBody
Section titled “ReceiptBody”What the guest did with a message the app showed.
| Field | Type | Description |
|---|---|---|
action (always) | ReceiptAction (one of seen, clicked, dismissed, completed, answered) | |
answers | array of string | |
button | string | |
link | string | What was tapped, for clicked. |
message_id (always) | string | |
path | array of string | |
screen | string | A 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_id | string | The check-in’s session. |
test | boolean | About a test copy (InAppMessage.Test): MessageID is the test’s. |
variant (always) | string |
RedactPartBody
Section titled “RedactPartBody”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.
| Field | Type | Description |
|---|---|---|
words (always) | string |
ReferralLink
Section titled “ReferralLink”The user’s referral link: its slug, and its short and canonical addresses.
| Field | Type | Description |
|---|---|---|
short_url (always) | string | |
slug (always) | string | |
url (always) | string |
ReplyExpectation
Section titled “ReplyExpectation”How soon the guest can expect an answer.
| Field | Type | Description |
|---|---|---|
open (always) | boolean | Staff being at work now, by the team’s office hours. |
opens_at | string (date-time) | When they are next at work, when they are not now. |
within (always) | ReplyTime (one of minutes, hours, day) |
ReplyShown
Section titled “ReplyShown”How the home says when a reply comes.
One of: office_hours, text.
ReplyTime
Section titled “ReplyTime”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
Section titled “ResolveConfig”ResolveConfig closes the conversation as resolved, saying Blocks first when there are any.
| Field | Type | Description |
|---|---|---|
blocks | array of Block |
| Field | Type | Description |
|---|---|---|
count | integer | How many times, for an event’s count ops. |
filters | array of PropFilter | Filters 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. |
key | string | What 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. |
kind | RuleKind (one of attribute, tag, event, segment, subscription) | |
match | Match (one of all, any) | |
op | Op (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) | |
rules | array of Rule | |
value | string | What an attribute is compared with, as a string, read by the attribute’s type; for a subscription test, the channel. |
within_days | integer | WithinDays limits an event test to the last so many days. Zero is ever. |
RuleKind
Section titled “RuleKind”What a test is about.
One of: attribute, tag, event, segment, subscription.
RunCounts
Section titled “RunCounts”A workflow’s runs, by how they stand.
| Field | Type | Description |
|---|---|---|
active (always) | integer | Running, waiting or parked now. |
completed (always) | integer | |
exited (always) | integer | |
goal (always) | integer | |
total (always) | integer |
SavedLink
Section titled “SavedLink”One saved link.
| Field | Type | Description |
|---|---|---|
android_url | string | |
archived_at | string (date-time) | |
campaign | string | |
channel | string | |
countries | array of LinkCountryRule | |
created_at (always) | string (date-time) | |
created_by (always) | string | |
data (always) | object of string | Handed to the app with the link (at most MaxLinkData keys). |
desktop_mode (always) | string | DesktopFallback (the app’s web page, as any link) or DesktopQR (the landing page, with the code to scan, and no DesktopURL). |
desktop_url | string | |
destination (always) | string | The path in the app, with its query (the link picker’s string, never a web address). |
disabled_reason | string | The operators’ kill switch: a link with one answers 410. |
expired_url | string | |
expires_at | string (date-time) | |
goal_days | integer | |
goal_event | string | The goal: a contact who did GoalEvent within GoalDays of first opening the link converted. |
id (always) | string | |
ios_url | string | The overrides, ahead of the app’s fallbacks, each an https address. |
kind (always) | string | Who 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_description | string | |
og_image | string | |
og_title | string | The social preview a crawler is shown. |
owner_guest | string | The guest a shared or referral link is, "" for staff’s. |
short_url | string | Written 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_id | string | |
updated_at (always) | string (date-time) | |
url | string | |
variants | array of LinkVariant | Variants 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. |
SavedLinkBody
Section titled “SavedLinkBody”A saved link as staff write it. A PATCH carries only the fields it changes.
| Field | Type | Description |
|---|---|---|
android_url | string | |
campaign | string | |
channel | string | |
countries | array of LinkCountryRule | |
data | object of string | |
desktop_mode | string | |
desktop_url | string | |
destination (always) | string | |
expired_url | string | |
expires_at | string (date-time) | |
goal_days | integer | |
goal_event | string | |
ios_url | string | |
name (always) | string | |
og_description | string | |
og_image | string | |
og_title | string | |
slug (always) | string | Made up when it is empty. |
tags | array of string | |
template_id | string | |
variants | array of LinkVariant |
SavedLinkBulk
Section titled “SavedLinkBulk”A bulk upload as JSON.
| Field | Type | Description |
|---|---|---|
rows (always) | array of SavedLinkBody |
SavedLinkList
Section titled “SavedLinkList”GET /admin/v1/links: a page, the newest first, and the cursor of the next ("" for none).
| Field | Type | Description |
|---|---|---|
items (always) | array of SavedLinkRow | |
next | string |
SavedLinkOpen
Section titled “SavedLinkOpen”Where a saved link opens the app.
| Field | Type | Description |
|---|---|---|
campaign | string | |
channel | string | |
data (always) | object of string | The link’s data, for the app (at most ten keys). |
path (always) | string | The path in the app, with its query, without LinkSlugParam. |
saved (always) | string | The link’s slug, for link_opened’s saved prop. |
SavedLinkRow
Section titled “SavedLinkRow”A link in the list, with its last week.
| Field | Type | Description |
|---|---|---|
android_url | string | |
archived_at | string (date-time) | |
campaign | string | |
channel | string | |
clicks_week (always) | array of integer | Its clicks on each of the last seven days, the oldest first, and OpensWeek the times the app opened with it in them. |
countries | array of LinkCountryRule | |
created_at (always) | string (date-time) | |
created_by (always) | string | |
data (always) | object of string | Handed to the app with the link (at most MaxLinkData keys). |
desktop_mode (always) | string | DesktopFallback (the app’s web page, as any link) or DesktopQR (the landing page, with the code to scan, and no DesktopURL). |
desktop_url | string | |
destination (always) | string | The path in the app, with its query (the link picker’s string, never a web address). |
disabled_reason | string | The operators’ kill switch: a link with one answers 410. |
expired_url | string | |
expires_at | string (date-time) | |
goal_days | integer | |
goal_event | string | The goal: a contact who did GoalEvent within GoalDays of first opening the link converted. |
id (always) | string | |
ios_url | string | The overrides, ahead of the app’s fallbacks, each an https address. |
kind (always) | string | Who 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_description | string | |
og_image | string | |
og_title | string | The social preview a crawler is shown. |
opens_week (always) | integer | |
owner_guest | string | The guest a shared or referral link is, "" for staff’s. |
short_url | string | Written 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_id | string | |
updated_at (always) | string (date-time) | |
url | string | |
variants | array of LinkVariant | Variants 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. |
SavedLinkTemplateBody
Section titled “SavedLinkTemplateBody”A template as staff write it.
| Field | Type | Description |
|---|---|---|
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.
SegmentConfig
Section titled “SegmentConfig”The segment a guest comes to match, or ceases to.
| Field | Type | Description |
|---|---|---|
segment_id (always) | string |
SendConfig
Section titled “SendConfig”The message a send sends.
| Field | Type | Description |
|---|---|---|
message_id (always) | string |
SendStatus
Section titled “SendStatus”What became of a send when it was asked for.
One of: queued, not_sent.
ServerAccepted
Section titled “ServerAccepted”Answers a batch: how many were new and kept, and the ones refused, by their place in the batch.
| Field | Type | Description |
|---|---|---|
accepted (always) | integer | |
rejected (always) | array of ServerRejection |
ServerEnrol
Section titled “ServerEnrol”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.
| Field | Type | Description |
|---|---|---|
external_ids (always) | array of string |
ServerEnrolled
Section titled “ServerEnrolled”Answers a ServerEnrol: how many were queued, and the external ids of nobody PurrCRM knows (never identified, or erased), which are not.
| Field | Type | Description |
|---|---|---|
queued (always) | integer | |
unknown | array of string |
ServerEvent
Section titled “ServerEvent”One thing a person did, as a server saw it.
| Field | Type | Description |
|---|---|---|
at (always) | string (date-time) | |
external_id (always) | string | |
id (always) | string | The 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 | |
props | object of string | The event’s props, each as a string its definition reads by its type. |
ServerEvents
Section titled “ServerEvents”POST /server/v1/events.
| Field | Type | Description |
|---|---|---|
events (always) | array of ServerEvent |
ServerRejection
Section titled “ServerRejection”One event refused, and why.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
index (always) | integer | |
reason (always) | string |
SetAttributeConfig
Section titled “SetAttributeConfig”SetAttributeConfig sets Attribute to Value (as its type reads it), or, with Remove, takes the guest’s value away.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
conversation | boolean | Conversation sets one of the conversation’s attributes, not the guest’s (inbound only). |
remove | boolean | |
value | string |
SetStateConfig
Section titled “SetStateConfig”SetStateConfig moves the conversation to State; a snooze lasts SnoozeMinutes.
| Field | Type | Description |
|---|---|---|
snooze_minutes | integer | |
state (always) | ConversationState (one of open, snoozed, closed) |
SharedLink
Section titled “SharedLink”The link a guest made: its slug, and its short and canonical addresses on the app’s link base.
| Field | Type | Description |
|---|---|---|
short_url (always) | string | |
slug (always) | string | |
url (always) | string |
ShareLinkBody
Section titled “ShareLinkBody”What a guest shares: a path in the app, with its query, data handed to whoever opens it, and where it is shared (“whatsapp”).
| Field | Type | Description |
|---|---|---|
channel | string | |
data | object of string | |
path (always) | string |
SignupAccepted
Section titled “SignupAccepted”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.
| Field | Type | Description |
|---|---|---|
email (always) | string |
SignupBody
Section titled “SignupBody”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.
| Field | Type | Description |
|---|---|---|
app_name (always) | string | |
email (always) | string | |
password (always) | string | |
turnstile_token | string | |
workspace_name (always) | string |
SLAConfig
Section titled “SLAConfig”The service level that fell due; empty is any.
| Field | Type | Description |
|---|---|---|
target | SLATarget (one of first_reply, next_reply, close) |
SLATarget
Section titled “SLATarget”Which service level fell due, for an SLA trigger.
One of: first_reply, next_reply, close.
Source
Section titled “Source”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.
| Field | Type | Description |
|---|---|---|
bold | boolean | |
color | string | A 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. |
highlight | boolean | |
italic | boolean | |
link | string | Link makes the run a link, as Block.Link. |
strike | boolean | |
text (always) | string | |
underline | boolean | Underline, 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. |
SplitConfig
Section titled “SplitConfig”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).
| Field | Type | Description |
|---|---|---|
control_percent | integer | |
paths (always) | array of SplitPath |
SplitPath
Section titled “SplitPath”One way through a split, with its share.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
label (always) | string | |
weight (always) | integer |
StartBody
Section titled “StartBody”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.
| Field | Type | Description |
|---|---|---|
attachment_ids | array of string | |
button | string | The id of the opening’s button the guest tapped, with no words or pictures; empty when they wrote. |
opening | OpeningRef | The opening the guest was shown when they wrote or tapped; nil for none. |
text (always) | string |
StateChangeConfig
Section titled “StateChangeConfig”The state a conversation moves to.
| Field | Type | Description |
|---|---|---|
state (always) | ConversationState (one of open, snoozed, closed) |
StepSecret
Section titled “StepSecret”What is shown of one of an app’s step secrets.
| Field | Type | Description |
|---|---|---|
hint (always) | string | |
name (always) | string | |
set_at (always) | string (date-time) | |
set_by (always) | string |
SubscriptionChoice
Section titled “SubscriptionChoice”One choice: a topic, a channel, in or out.
| Field | Type | Description |
|---|---|---|
channel (always) | TopicChannel (one of email, push, in_app, chat) | |
subscribed (always) | boolean | |
topic_id (always) | string |
SubscriptionsBody
Section titled “SubscriptionsBody”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.
| Field | Type | Description |
|---|---|---|
all_off | boolean | |
choices | array of SubscriptionChoice | |
wording | string |
SupportTicket
Section titled “SupportTicket”One of the guest’s tickets: the fields staff let the guest see, and the conversation about it, oldest first.
| Field | Type | Description |
|---|---|---|
conversation_id | string | The conversation the ticket’s parts are in. |
created_at (always) | string (date-time) | |
description | array of Block | What 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_at | string (date-time) | |
state (always) | TicketState (one of submitted, in_progress, waiting_on_guest, resolved) | |
state_label | string | As SupportTicketSummary’s: State stays the category an app acts on. |
title (always) | string | |
type (always) | string | |
updated_at (always) | string (date-time) |
SupportTicketPage
Section titled “SupportTicketPage”The guest’s tickets, the most recently changed first.
| Field | Type | Description |
|---|---|---|
items (always) | array of SupportTicketSummary |
SupportTicketSummary
Section titled “SupportTicketSummary”A ticket in a list.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
ref (always) | string | How the guest and staff name it: “T-1042”. |
state (always) | TicketState (one of submitted, in_progress, waiting_on_guest, resolved) | |
state_label | string | Staff’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) |
SurfacePresentation
Section titled “SurfacePresentation”How one surface opens. Its zero value, which is what a surface left out means, is a sheet with a drag bar.
| Field | Type | Description |
|---|---|---|
full | boolean | Full opens the surface full screen rather than as a sheet: no drag bar, and no drag to close. |
handle | boolean | Whether 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. |
Survey
Section titled “Survey”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.
| Field | Type | Description |
|---|---|---|
format (always) | SurveyFormat (one of small, large) | |
intro | array of Block | The first screen of a large survey; left out for none. |
steps (always) | array of SurveyStep |
SurveyAnswer
Section titled “SurveyAnswer”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.
| Field | Type | Description |
|---|---|---|
choices | array of string | |
number | integer | |
other | string | |
question_id (always) | string | |
text | string |
SurveyAnswerBody
Section titled “SurveyAnswerBody”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.
| Field | Type | Description |
|---|---|---|
answers (always) | array of SurveyAnswer | |
test | boolean | A test copy’s answers (InAppMessage.Test), by the test’s id. |
variant (always) | string |
SurveyBranch
Section titled “SurveyBranch”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.
| Field | Type | Description |
|---|---|---|
max | integer | |
min | integer | |
next (always) | string | The id of a later step. |
question_id (always) | string | |
values | array of string |
SurveyFormat
Section titled “SurveyFormat”How a survey is shown.
One of: small, large.
SurveyOption
Section titled “SurveyOption”One option of a choice question.
| Field | Type | Description |
|---|---|---|
id (always) | string | |
label (always) | string |
SurveyQuestion
Section titled “SurveyQuestion”One question.
| Field | Type | Description |
|---|---|---|
description | string | |
id (always) | string | |
max | integer | |
max_label | string | |
min | integer | Min and Max are a numeric scale’s ends, 0 or 1 to at most 10. |
min_label | string | MinLabel and MaxLabel are the words under a scale’s ends. |
options | array of SurveyOption | A choice question’s, in order. |
other | boolean | Other adds “Other” to a single or multiple choice, with the guest’s own words. |
placeholder | string | The hint in a text answer’s box. |
required | boolean | |
title (always) | string | |
type (always) | QuestionType (one of nps, numeric, stars, emoji, dropdown, short_text, long_text, single_choice, multi_choice) |
SurveyStep
Section titled “SurveyStep”One screen of a survey.
| Field | Type | Description |
|---|---|---|
blocks | array of Block | A thank-you step’s words. |
branches | array of SurveyBranch | Tried 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) | |
questions | array of SurveyQuestion | A questions step’s. |
SurveyStepKind
Section titled “SurveyStepKind”What a survey’s step is.
One of: questions, thank_you.
SurveySubmit
Section titled “SurveySubmit”SurveySubmit finishes a survey: every answer along the path the guest took. Only then are answers written to the guest’s attributes.
| Field | Type | Description |
|---|---|---|
answers (always) | array of SurveyAnswer | |
test | boolean | A test copy finished (InAppMessage.Test): nothing is written to the guest’s attributes. |
variant (always) | string |
TagConfig
Section titled “TagConfig”TagConfig puts a tag on, or with Remove takes it off.
| Field | Type | Description |
|---|---|---|
conversation | boolean | Conversation tags the conversation, not the guest (inbound only). |
remove | boolean | |
tag_id (always) | string |
TagPeople
Section titled “TagPeople”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.
| Field | Type | Description |
|---|---|---|
external_ids (always) | array of string | |
remove | boolean |
TagPeopleAnswer
Section titled “TagPeopleAnswer”Answers a TagPeople: how many people it changed, and the external ids of the people PurrCRM has no contact of.
| Field | Type | Description |
|---|---|---|
changed (always) | integer | |
missing (always) | array of string |
TeamChatConfig
Section titled “TeamChatConfig”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.
| Field | Type | Description |
|---|---|---|
secret (always) | string | |
service (always) | ChatService (one of slack, teams) | |
text (always) | string |
TeamFaces
Section titled “TeamFaces”Whose faces the home shows.
One of: auto, chosen, none.
TemplateContent
Section titled “TemplateContent”A template’s content: exactly the field its kind names.
| Field | Type | Description |
|---|---|---|
carousel | CarouselContent | |
email | EmailContent | |
screen | CarouselScreen |
TemplateKind
Section titled “TemplateKind”What a template makes.
One of: carousel, carousel_screen, email.
TextScale
Section titled “TextScale”How large a carousel’s words are, beside the phone’s own text size, which scales them again.
One of: compact, regular, large.
TextWeight
Section titled “TextWeight”How heavy a text block’s words are.
One of: regular, medium, bold.
TicketConfig
Section titled “TicketConfig”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.
| Field | Type | Description |
|---|---|---|
fields | array of crm.TicketField | |
ticket_type_id (always) | string | |
title (always) | string |
TicketField
Section titled “TicketField”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.
| Field | Type | Description |
|---|---|---|
bool | boolean | |
date | string | |
key (always) | string | |
label (always) | string | |
number | number | |
text | string | |
type (always) | FieldType (one of text, list, number, bool, date) |
TicketForm
Section titled “TicketForm”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.
| Field | Type | Description |
|---|---|---|
description | string | |
fields (always) | array of TicketFormField | |
id (always) | string | |
name (always) | string |
TicketFormField
Section titled “TicketFormField”One field of a TicketForm: a list field’s Options are its choices.
| Field | Type | Description |
|---|---|---|
key (always) | string | |
label (always) | string | |
options | array of string | |
required | boolean | |
type (always) | FieldType (one of text, list, number, bool, date) |
TicketForms
Section titled “TicketForms”Every form, by name.
| Field | Type | Description |
|---|---|---|
items (always) | array of TicketForm |
TicketState
Section titled “TicketState”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.
| Field | Type | Description |
|---|---|---|
archived_at | string (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_by | string | |
defaults (always) | array of TopicDefault | The channels a contact who never chose is in. |
description (always) | string | |
id (always) | string | |
list (always) | string | The 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) | integer | How many messages are on it, archived ones included. |
name (always) | string | |
translations | object of TopicText | Its 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) |
TopicBody
Section titled “TopicBody”Defaults are the channels a contact who never chose is in. Archived, left out, keeps what the topic is.
| Field | Type | Description |
|---|---|---|
archived | boolean | |
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_understood | boolean | The 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 | |
translations | object of TopicText | Translations replace the topic’s whole; left out (an older site’s body), the topic keeps the ones it has. |
TopicChannel
Section titled “TopicChannel”A way a topic’s marketing reaches a contact.
One of: email, push, in_app, chat.
TopicDefault
Section titled “TopicDefault”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.
| Field | Type | Description |
|---|---|---|
channel (always) | TopicChannel (one of email, push, in_app, chat) | |
since (always) | string (date-time) |
TopicList
Section titled “TopicList”The app’s topics, by name.
| Field | Type | Description |
|---|---|---|
items (always) | array of Topic |
TopicText
Section titled “TopicText”A topic’s name and description in one language.
| Field | Type | Description |
|---|---|---|
description | string | |
name (always) | string |
TrackEventConfig
Section titled “TrackEventConfig”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).
| Field | Type | Description |
|---|---|---|
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) | |
props | array of TrackProp |
TrackProp
Section titled “TrackProp”One prop a tracked event carries.
| Field | Type | Description |
|---|---|---|
key (always) | string | |
value (always) | string |
UnreadCount
Section titled “UnreadCount”How many notices are still unread, for the bell.
| Field | Type | Description |
|---|---|---|
unread (always) | integer |
UnresponsiveConfig
Section titled “UnresponsiveConfig”How long a reply goes unanswered by the guest.
| Field | Type | Description |
|---|---|---|
minutes (always) | integer |
UpdateTicketConfig
Section titled “UpdateTicketConfig”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.
| Field | Type | Description |
|---|---|---|
fields | array of crm.TicketField | |
priority | boolean | |
state | TicketState (one of submitted, in_progress, waiting_on_guest, resolved) | |
state_id | string |
VAlign
Section titled “VAlign”Where a screen’s content sits in its height.
One of: top, center, bottom.
Version
Section titled “Version”One published version, kept whole and never changed.
| Field | Type | Description |
|---|---|---|
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 |
Visitor
Section titled “Visitor”A visitor just made: their id, which PurrCRM’s site shows as “Visitor · 4F2A”, and their secret, which is never shown again.
| Field | Type | Description |
|---|---|---|
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
Section titled “VisitorBody”VisitorBody makes a visitor.
| Field | Type | Description |
|---|---|---|
language | string | The 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). |
VisitorMerge
Section titled “VisitorMerge”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.
| Field | Type | Description |
|---|---|---|
conversations (always) | integer | How many of the visitor’s conversations are now the user’s, by the same ids. |
merged (always) | boolean |
VisitorMergeBody
Section titled “VisitorMergeBody”The signed-in user taking over a visitor: the secret the browser kept for them.
| Field | Type | Description |
|---|---|---|
visitor_secret (always) | string |
WaitConfig
Section titled “WaitConfig”What a wait waits for: only the fields its Mode uses are set.
| Field | Type | Description |
|---|---|---|
attribute | string | Attribute, OffsetDays and TimeOfDay are a date’s. |
days | array of integer | |
event | 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) | Event, Filters and TimeoutMinutes are an event’s; Rule and TimeoutMinutes a rule’s. |
filters | array of PropFilter | |
minutes | integer | A duration’s. |
mode (always) | WaitMode (one of duration, time_of_day, event, date, rule) | |
offset_days | integer | |
rule | Rule | |
time_of_day | string | TimeOfDay (“09:00”) and Days (Sunday = 0; none is any day) are a time of day’s. |
timeout_minutes | integer |
WaitlistAccepted
Section titled “WaitlistAccepted”The address taken: the same whether it was on the list already or not.
| Field | Type | Description |
|---|---|---|
email (always) | string |
WaitlistBody
Section titled “WaitlistBody”The website’s early-access form.
| Field | Type | Description |
|---|---|---|
company | string | The company’s name, if the form asked: 200 characters at most. |
email (always) | string | |
source | string | Where on the website the form was (such as “home”), kept as a label of 64 characters at most. |
turnstile_token | string |
WaitMode
Section titled “WaitMode”What a wait waits for.
One of: duration, time_of_day, event, date, rule.
WebhookConfig
Section titled “WebhookConfig”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.
| Field | Type | Description |
|---|---|---|
attributes | array of string | |
headers | array of WebhookHeader | |
map | array of WebhookMap | |
method | string | |
url (always) | string | |
wait | boolean |
WebhookDelivery
Section titled “WebhookDelivery”One try of a post to an endpoint.
| Field | Type | Description |
|---|---|---|
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) | string | Delivered, 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) |
WebhookEndpoint
Section titled “WebhookEndpoint”One of an app’s endpoints.
| Field | Type | Description |
|---|---|---|
created_at (always) | string (date-time) | |
created_by (always) | string | |
description (always) | string | |
disabled_reason (always) | string | Why PurrCRM switched it off: “failing” when every post had failed for a day; "" for on, or off by a teammate. |
enabled (always) | boolean | |
failing_since | string (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) | string | The URL’s, which the app’s webhooks may post to for as long as the endpoint is there. |
id (always) | string | |
last | WebhookDelivery | Its latest delivery, nil before any. |
secret | string | The signing secret itself, in the answer that made it alone (adding the endpoint, or making a new secret): never again. |
secret_hint (always) | string | The last four characters of its signing secret, "" for none; SecretSetAt when it was made. |
secret_set_at | string (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 |
WebhookEndpointBody
Section titled “WebhookEndpointBody”POST and PUT /staff/v1/apps/{id}/webhook-endpoints.
| Field | Type | Description |
|---|---|---|
description (always) | string | |
enabled | boolean | |
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 |
WebhookEndpointList
Section titled “WebhookEndpointList”GET /staff/v1/apps/{id}/webhook-endpoints.
| Field | Type | Description |
|---|---|---|
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) |
WebhookHeader
Section titled “WebhookHeader”One header a webhook sends: Value, or the app’s step secret named Secret.
| Field | Type | Description |
|---|---|---|
name (always) | string | |
secret | string | |
value | string |
WebhookMap
Section titled “WebhookMap”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.
| Field | Type | Description |
|---|---|---|
attribute (always) | string | |
path (always) | string |
WebhookSecret
Section titled “WebhookSecret”What is shown of an app’s webhook secret.
| Field | Type | Description |
|---|---|---|
hint (always) | string | |
set_at (always) | string (date-time) | |
set_by (always) | string |
WebhookTopic
Section titled “WebhookTopic”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.
Workflow
Section titled “Workflow”One workflow as PurrCRM site shows it: its draft, and the version guests enter.
| Field | Type | Description |
|---|---|---|
changed (always) | boolean | The draft differing from that version. |
created_at (always) | string (date-time) | |
created_by (always) | string | |
description (always) | string | |
draft (always) | Graph | Draft 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_at | string (date-time) | |
runs (always) | RunCounts | |
seeded | string | Names a workflow PurrCRM made itself (“help_bot”). |
settings (always) | WorkflowSettings | |
state (always) | WorkflowState (one of draft, running, paused, archived) | |
trigger | 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) | The published version’s trigger; empty before the first. |
updated_at (always) | string (date-time) | |
updated_by (always) | string | |
version (always) | integer | The newest published version, which guests enter; zero before the first. |
WorkflowKind
Section titled “WorkflowKind”Where a workflow runs.
One of: outbound, inbound.
WorkflowSettings
Section titled “WorkflowSettings”Who may enter a workflow, what takes them out, and what it is for.
| Field | Type | Description |
|---|---|---|
audience (always) | Rule | Who may enter; the empty rule is everyone. |
exit | Rule | Exit takes a guest out of their run, at the next step, once they match it. |
exit_on_goal | boolean | |
goal | Goal | What the workflow is for, met within its days of entering; reaching it records goal_reached, and with ExitOnGoal ends the run. |
re_entry | boolean | ReEntry 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_days | integer | ReEntryAfterDays is, with ReEntry, how many days after their last run ended a guest may enter again; zero is at once. |
WorkflowState
Section titled “WorkflowState”Where a workflow is in its life.
One of: draft, running, paused, archived.