Engagement API
In-app messages and their events, chat replies, the changelog and posts.
AAgent44Updated 4 min read
On this page
Every request sends Authorization: Bearer a44_pub_…. How to show what these return is in In-app messages.
These endpoints take platform (ios, android or web; the key's app platform by default) and app_version in the query string, and return only what's aimed at that platform and version and, for in-app messages and posts, at the key's app.
GET /v1/prompts#
The in-app messages to show at this launch, most important first. Show the first only.
Parameter | Meaning |
|---|---|
| The running version. Without it, update prompts and What's New are never returned. |
| The version the device ran at its previous launch; leave it out on a fresh install. |
| Also picks |
| Optional. The device's system version, like |
| Optional, Android only. The device's API level, like |
Without os_version and os_api_level (older SDKs), updates are returned as before. Send the user's identity headers so frequency is applied across their devices, and so messages limited to a segment reach the people in it: a message with an audience segment is only returned to a user or anonymous id whose contact matches the segment's rules, never to a device we haven't seen yet. Force updates can't be limited to a segment.
{
"prompts": [
{
"id": "6f1c2b4e-…",
"kind": "force_update",
"style": "modal",
"title": "Update required",
"body": "This version of Akmi is no longer supported. Update to keep using it.",
"image_url": null,
"primary": { "label": "Update now", "action": "open_store", "url": null },
"secondary": null,
"dismissible": false,
"frequency": "every_launch",
"latest_version": "4.0",
"store_url": "https://apps.apple.com/app/id1234567890",
"sender": null,
"entry": null
}
],
"media_base": "https://akmi.agent44.ai/changelog/media/",
"media_prefix": "/media/changelog/<workspace id>/"
}Field | Meaning |
|---|---|
|
|
|
|
| Plain text. |
| A wide image, or |
|
|
|
|
|
|
|
|
| For updates, the version to update to, or |
| For updates and |
| For a chat, |
| For What's New, the changelog update: |
POST /v1/prompts/{id}/events#
{ "type": "shown", "app_version": "4.2.0" }type is shown, clicked or dismissed; app_version is optional. Answers 204. Without identity headers nothing is stored. A message that isn't for the key's app, or one limited to an audience segment the user isn't in, is a 404, so report events only for messages GET /v1/prompts returned to this user. A message paused or ended since it was shown still takes its events. Also used for push campaigns: report clicked with the notification's a44_message_id when the user opens it.
POST /v1/prompts/{id}/reply#
Answers a live chat message:
{ "body": "Yes please, show me." }Needs identity headers (the user is created if they're new). Opens a conversation with the teammate's message and the user's reply, assigned to that teammate, and marks the chat as clicked. Answers 201 like GET /v1/conversations/{id}: { "conversation", "messages" }. It counts against the user's 10 new conversations a day. A chat that isn't live (or is outside its start and end dates), isn't for the key's app, or is limited to an audience segment the user isn't in is a 404.
GET /v1/changelog#
Your published changelog updates, newest first.
Parameter | Meaning |
|---|---|
| 1 to 30, 10 by default. |
| For the next page: the |
| Leave out each entry's content (titles and excerpts only). |
{
"entries": [
{ "id": "q8w2e4r6t1", "title": "Offline mode", "excerpt": "…", "labels": ["new"], "version": "4.2.0",
"published_at": "2026-11-20T10:00:00+00:00", "url": "https://akmi.agent44.ai/changelog/q8w2e4r6t1-offline-mode", "doc": { "type": "doc", "content": [] } }
],
"next_before": null,
"media_base": "https://akmi.agent44.ai/changelog/media/",
"media_prefix": "/media/changelog/<workspace id>/"
}labels are new, improved and fixed. url is null while your public changelog page is off (Engagement › Changelog, the "Public page" menu); the API returns entries either way.
While the workspace has reactions or comments on (the "Public page" menu's "Reactions and comments"), each entry also carries:
{ "reactions": { "fire": 3, "hundred": 4 }, "my_reactions": ["fire"], "comment_count": 2 }and the response has "feedback": { "reactions": { "who": "anyone" }, "comments": { "who": "contacts" } } (null for one that's off). my_reactions are this user's, from the identity headers. who: "contacts" means only a signed-in user may take part: an app user counts as signed in only when their user ID comes with a valid X-A44-User-Hash.
GET /v1/changelog/{id}#
One entry, in the same shape plus media_base and media_prefix. An entry that isn't for this reader is a 404.
POST /v1/changelog/{id}/reactions#
Adds or takes back the user's reaction: { "emoji": "fire", "on": true }. One of each emoji per user. The emojis are fire 🔥, hundred 💯, tada 🎉, partying 🥳, heart ❤️, confetti 🎊, champagne 🍾, mind_blown 🤯, eyes 👀 and beers 🍻. Answers { "reactions", "my_reactions", "comment_count" }. 404 while reactions are off or the update isn't published; 401 with "sign_in": true when reactions need a signed-in user and this one isn't.
GET /v1/changelog/{id}/comments#
The update's approved comments, oldest first: { "comments": [{ "id", "body", "author_name", "by_team", "created_at" }] }. by_team is a reply from your team: show it as " team".
POST /v1/changelog/{id}/comments#
The user's comment, { "body": "Love it" } (at most 2,000 characters), under their name. 201 with { "id", "moderation" }: pending while it waits for your team's review. 401 with "sign_in": true when comments need a signed-in user (by default they do).
GET /v1/posts#
Published posts for the reader, newest first, at most 20: { "posts": [{ id, title, excerpt, display, published_at, doc }], "media_base", "media_prefix" }. display is snippet (show a card) or full (open it in full once). doc=0 leaves out the content.
GET /v1/posts/{id}#
One post, with its doc. A post that isn't for this reader is a 404.