Timeline

Read everything that happened with a customer, newest first.

A customer's timeline is one list of what they did, every message sent to them with how it went, what they wrote back, the team's notes, and when they were added.

Requirements

  • An API key with the activity.read permission. Messages also need messages.read, and notes notes.read; without them they are left out.

Requests

GET /v1/customers/{id}/timeline?kind=<KINDS>&limit=<LIMIT>&cursor=<CURSOR>
PlaceholderDescriptionSample value
<KINDS>String. Optional. Comma separated: activity, sent, received, note, added. All when left out.sent,received
<LIMIT>Number. Optional. Up to 100 entries a page. 30 when left out.50
<CURSOR>String. Optional. The nextCursor of the previous page.

Example request

curl "https://api.goomzo.africa/v1/customers/cus_4hq2v9n1c8x0t6pk/timeline?kind=sent,received" \
  -H "Authorization: Bearer $GOOMZO_TOKEN"

Responses

The answer is 200 with items, newest first, and nextCursor, which is null on the last page. Each entry has an id, a kind and when it happened (at), and one of:

  • activity: its key and value. For opening or clicking a message, context names the message.
  • message: for sent and received, its channel, text (up to 1,000 characters), and for sent ones its status.
  • note: its text, whether it was edited, and whether the key can change it (canEdit).
{
  "items": [
    { "id": "rcv_9f2k1m0x7c3p", "kind": "received", "at": "2026-11-20T09:14:02Z", "message": { "channel": "whatsapp", "kind": "text", "text": "Bado mnayo size 42?" } },
    { "id": "msg_4hq2v9n1c8x0", "kind": "sent", "at": "2026-11-20T08:00:00Z", "message": { "channel": "whatsapp", "text": "Black Friday: 30% off all shoes.", "status": "read" } },
    { "id": "act_5k1p7z3w0r2t", "kind": "activity", "at": "2026-11-18T15:30:00Z", "activity": { "key": "purchased", "value": "Shoes" } }
  ],
  "nextCursor": null
}

Notes

  • Nothing twice: a message sent or a reply shows as the message, not again as activity.
  • What hasn't happened: messages scheduled for later, and canceled ones, are left out.

Next steps

Last updated