Skip to content
Browse articles
API reference

Engagement API

In-app messages and their events, chat replies, the changelog and posts.

Agent44Updated 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

app_version

The running version. Without it, update prompts and What's New are never returned.

previous_version

The version the device ran at its previous launch; leave it out on a fresh install.

platform

Also picks store_url.

os_version

Optional. The device's system version, like 17.4.1 (iOS) or 14 (Android). An update whose minimum iOS version the device is below is left out, because it can't install it.

os_api_level

Optional, Android only. The device's API level, like 34. An update whose minimum API level the device is below is left out.

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

kind

force_update, recommended_update, whats_new, announcement or chat.

style

modal, sheet or banner.

title, body

Plain text.

image_url

A wide image, or null.

primary

{ label, action, url }; action is dismiss, open_store, url or open_changelog.

secondary

{ label } for a button that closes it, or null.

dismissible

false only for a force update.

frequency

once, until_clicked or every_launch.

latest_version

For updates, the version to update to, or null.

store_url

For updates and open_store buttons, the store page for this platform, or null. Updates without one for this platform aren't sent.

sender

For a chat, { name, avatar_url }.

entry

For What's New, the changelog update: { id, title, version, labels, doc, url }.

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

limit

1 to 30, 10 by default.

before

For the next page: the next_before of the previous one.

doc=0

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.

Did this answer your question?