In-app messages (management API)
Messages the SDK shows inside your app. A new message starts off. Any endpoint that takes {message} accepts its ID or its name. For what each setting does, see the user guide.
Every path also works under /v1/manage/appspaces/{appspace}, which you need when an OAuth token reaches more than one Appspace. See the management API overview for signing in, errors, dry runs and paging.
| Method | Path | What it does | Permission |
|---|---|---|---|
GET | /v1/manage/messages | List in-app messages | Read |
POST | /v1/manage/messages | Create an in-app message | Read and write |
GET | /v1/manage/messages/{message} | Get an in-app message | Read |
PATCH | /v1/manage/messages/{message} | Change an in-app message | Read and write |
DELETE | /v1/manage/messages/{message} | Delete an in-app message | Read and write |
GET | /v1/manage/messages/{message}/preview | Preview an in-app message | Read |
PUT | /v1/manage/messages/{message}/content | Publish a message’s design | Read and write |
POST | /v1/manage/messages/{message}/activate | Turn an in-app message on | Read and write |
POST | /v1/manage/messages/{message}/deactivate | Turn an in-app message off | Read and write |
POST | /v1/manage/messages/{message}/restore | Restore a deleted in-app message | Read and write |
List in-app messages
Section titled “List in-app messages”/v1/manage/messagesPermission: Read.
The Appspace’s in-app messages, highest priority first, paged with cursor: each with every field a change takes (the design itself only from GET /messages/{message}), and whether it shows now.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
trigger | manual, milestone, event | No | Only messages with this trigger. |
active | true, false | No | Only messages that are on (true) or off (false). |
limit | integer | No | How many to return, 1 to 100 (default 50). |
cursor | string | No | From the previous page’s next_cursor, to get the page after it. |
Response 200: a page of results in data, and next_cursor for the next page (see Paging). Each item:
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
Create an in-app message
Section titled “Create an in-app message”/v1/manage/messagesPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
The dashboard’s rules apply: a name, Free’s one message (403 plan_limit) and manual trigger, and an audience of this Appspace. A new message is off unless active is true; add the design with PUT /messages/{message}/content, preview it, then activate it. Send Idempotency-Key so a retry never makes two. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A name for your team, such as “Spring sale”. Not shown to people. |
title | string | No | The headline people see. Default: the name. |
body | string or null | No | The text under the title, for a message without a design (and the fallback for one). |
trigger | manual, milestone, event | No | When the app shows it. manual (default): when your code asks (Tolinku.messages / showMessage). milestone: when someone reaches a referral step (trigger_value, such as installed). event: when your app asks for messages for an event by name (trigger_value). Free: manual only. |
trigger_value | string or null | No | The milestone or event name, for those triggers. |
background_color | string or null | No | The card’s colour, #RRGGBB (default #ffffff). A design’s own background wins. |
priority | integer | No | When several messages qualify at once, only the highest shows. Default 0. |
dismiss_days | integer or null | No | After someone closes it, hide it from them for this many days. Empty: a close isn’t remembered. |
max_impressions | integer or null | No | Show it at most this many times to each person (1: a one-time announcement). Empty: no limit. Not on Free. |
min_interval_hours | integer or null | No | At least this many hours between two showings. Empty: no gap. Not on Free. |
starts_at | string or null | No | When it starts showing. ISO 8601, such as 2026-12-01T09:00:00Z. Empty: none. |
ends_at | string or null | No | When it stops showing. ISO 8601, such as 2026-12-01T09:00:00Z. Empty: none. |
audience_id | string or null | No | Only show it to people in this audience: its id or its name (an audience of this Appspace). The app must identify the user (setUserId). Empty: everyone. Not on Free. |
ab_eligible | boolean | No | Whether A/B tests may use this message. Default false. |
active | boolean | No | Whether it shows straight away. Default false, as in the dashboard: add the content, preview it, then turn it on. |
Response 201: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Get an in-app message
Section titled “Get an in-app message”/v1/manage/messages/{message}Permission: Read.
One message: every field a change takes, by the same names, its published design (content) and whether it shows now.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Response 200: the result in data, with preview.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Change an in-app message
Section titled “Change an in-app message”/v1/manage/messages/{message}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Its settings: only the fields sent change; null clears one. The design is PUT /messages/{message}/content. Send expected_updated_at and a change made in the meantime is refused with 412. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | A new name. |
title | string | No | A new headline. |
body | string or null | No | The text under the title, for a message without a design (and the fallback for one). |
trigger | manual, milestone, event | No | When the app shows it. manual (default): when your code asks (Tolinku.messages / showMessage). milestone: when someone reaches a referral step (trigger_value, such as installed). event: when your app asks for messages for an event by name (trigger_value). Free: manual only. |
trigger_value | string or null | No | The milestone or event name, for those triggers. |
background_color | string or null | No | The card’s colour, #RRGGBB (default #ffffff). A design’s own background wins. |
priority | integer | No | When several messages qualify at once, only the highest shows. Default 0. |
dismiss_days | integer or null | No | After someone closes it, hide it from them for this many days. Empty: a close isn’t remembered. |
max_impressions | integer or null | No | Show it at most this many times to each person (1: a one-time announcement). Empty: no limit. Not on Free. |
min_interval_hours | integer or null | No | At least this many hours between two showings. Empty: no gap. Not on Free. |
starts_at | string or null | No | When it starts showing. ISO 8601, such as 2026-12-01T09:00:00Z. Empty: none. |
ends_at | string or null | No | When it stops showing. ISO 8601, such as 2026-12-01T09:00:00Z. Empty: none. |
audience_id | string or null | No | Only show it to people in this audience: its id or its name (an audience of this Appspace). The app must identify the user (setUserId). Empty: everyone. Not on Free. |
ab_eligible | boolean | No | Whether A/B tests may use this message. Default false. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Delete an in-app message
Section titled “Delete an in-app message”/v1/manage/messages/{message}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Apps stop showing it at once. It goes to the trash with its design and draft, and can be restored for 30 days. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
deleted | true | |
id | string | |
name | string | |
trash_id | string | The trash entry: POST /trash/{id}/restore, or POST /messages/{message}/restore, brings it back. |
restorable_until | string |
Preview an in-app message
Section titled “Preview an in-app message”/v1/manage/messages/{message}/previewPermission: Read.
The HTML the apps show for it (the renderer behind /v1/api/messages/{id}/render, without its reporting), with a summary in words. Send Accept: text/html for the page itself. There is no PNG.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Response 200: the result in data.
| Field | Type | Description |
|---|---|---|
html | string | A whole HTML document; open it in a browser or a phone-sized frame. |
summary | string | |
showing_now | boolean | |
png | null | No screenshot: the HTML is the preview. |
Publish a message’s design
Section titled “Publish a message’s design”/v1/manage/messages/{message}/contentPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Replaces the published design, checked exactly as the visual builder’s publish is (a content array of components with a type and object props, within 1 MB, 20 levels and 500 components). Text is always shown as text; links and images that could run code are left out by the apps, and the answer warns about them and about components the apps don’t draw. The copy joins the publish history; a person’s unpublished draft in the builder is left alone. Not on Free. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
content | object or string | Yes | The design, as the visual builder saves it (Puck data): { “root”: { “props”: { “bgColor”: “#ffffff”, “padding”: 24 } }, “content”: [ { “type”: “Heading”, “props”: { “id”: “h1”, “text”: “Hi”, “fontSize”: 24 } }, { “type”: “TextBlock”, “props”: { “id”: “t1”, “content”: “Text, with links” } }, { “type”: “Button”, “props”: { “id”: “b1”, “label”: “Shop now”, “action”: “https://example.com/sale” } } ], “zones”: {} }. Components: Heading, TextBlock, Image (url, alt, width), Button (label, action: a URL or “close”; style filled, outline or soft; bgColor, textColor), Section (bgColor, padding; its children in zones[“<id>:content”]), Spacer (height), Divider, AppIcon, StoreButtons, DeepLinkButton. Text is shown as text, never HTML. At most 1 MB. Also a JSON string of the same. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Turn an in-app message on
Section titled “Turn an in-app message on”/v1/manage/messages/{message}/activatePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Apps show it from their next check, within its schedule and trigger. Already on: nothing changes. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Turn an in-app message off
Section titled “Turn an in-app message off”/v1/manage/messages/{message}/deactivatePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Apps stop showing it from their next check; nothing else changes. Already off: nothing changes. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The message: its id or its name. URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |
Restore a deleted in-app message
Section titled “Restore a deleted in-app message”/v1/manage/messages/{message}/restorePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Brings back a message deleted in the last 30 days, with the same id, design and history, on or off as it was. {message} is its old id or name, or the trash entry’s id. On Free, refused with 409 conflict while there’s another message. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
message | The deleted message: its old id or name, or the trash entry’s id. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with preview and warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The message’s id. Any endpoint taking {message} also takes its name. |
name | string | |
title | string | |
body | string or null | |
trigger | manual, milestone, event | |
trigger_value | string or null | |
background_color | string | |
priority | number | |
dismiss_days | number or null | |
max_impressions | number or null | |
min_interval_hours | number or null | |
starts_at | string or null | |
ends_at | string or null | |
audience_id | string or null | |
audience_name | string or null | |
ab_eligible | boolean | |
active | boolean | On or off (POST /activate, /deactivate). |
showing_now | boolean | On, and within its schedule (the app still decides when, by the trigger). |
state | string | |
has_content | boolean | Whether it has a design (content); without one, apps show the title and body. |
draft | object or null | Unpublished changes someone has in the visual builder, if any. |
draft.updated_at | string or null | |
draft.by | string or null | |
created | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
content | object or null | The published design (Puck data), as PUT /messages/{message}/content takes it; null without one. |