FlowmageDocs

List messages

BetaReads dataVersion 2

Finds sent and received messages by sender, recipient, status or period.

Settings

SettingWhat it is
ConnectionRequiredThe MessageBird connection the step signs in with.
SenderOnly messages sent from this sender id or number.
Phone numberOnly messages to or from this number, in international format.
Direction"any" or "mt" or "mo"
Type"any" or "sms" or "binary" or "flash"
Status"any" or "scheduled" or "sent" or "buffered" or "delivered" or "expired" or "delivery_failed"
Contact idOnly messages to or from this contact. The List contacts node gives the ids.
Text containsOnly messages whose text contains this.
FromThe start of the period, in RFC 3339.
UntilThe end of the period, in RFC 3339.
Messages per call1 to 100. MessageBird answers 20 by default.
SkipHow many messages to skip. Ignored when Fetch every page is on.
Fetch every pageWalks the offset from the start, and refuses past 5,000 messages rather than answering a short list.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `messagebird`)
originatortextits `{{ }}` must give a string
recipienttextits `{{ }}` must give a string
direction"any" or "mt" or "mo", by default "any"
type"any" or "sms" or "binary" or "flash", by default "any"
status"any" or "scheduled" or "sent" or "buffered" or "delivered" or "expired" or "delivery_failed", by default "any"
contactIdtextits `{{ }}` must give a string
searchtermtextits `{{ }}` must give a string
fromtextits `{{ }}` must give a string
untiltextits `{{ }}` must give a string
limitnumber, by default 20
offsetnumber, by default 0
returnAlltrue/false, by default false
cursortext

Output

FieldType
messagesarray
messageCountMessages in this answernumber
hasMoreMore messages are waiting behind this pageboolean
totalCountMessages MessageBird has in totalnumber
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • hasMorefalse
  • messageCount0
  • messages[]
  • totalCount0

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "contactId": "",
    "cursor": "",
    "direction": "any",
    "from": "",
    "limit": 20,
    "offset": 0,
    "originator": "",
    "recipient": "",
    "returnAll": false,
    "searchterm": "",
    "status": "any",
    "type": "any",
    "until": ""
  },
  "label": "List messages",
  "type": "messagebird.listMessages",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe MessageBird connection the step signs in with.
SenderOnly messages sent from this sender id or number.
Phone numberOnly messages to or from this number, in international format.
Direction"any" or "mt" or "mo"
Type"any" or "sms" or "binary" or "flash"
Status"any" or "scheduled" or "sent" or "buffered" or "delivered" or "expired" or "delivery_failed"
Contact idOnly messages to or from this contact. The List contacts node gives the ids.
Text containsOnly messages whose text contains this.
FromThe start of the period, in RFC 3339.
UntilThe end of the period, in RFC 3339.
Messages per call1 to 100. MessageBird answers 20 by default.
SkipHow many messages to skip. Ignored when Fetch every page is on.
Fetch every pageWalks the offset from the start, and refuses past 5,000 messages rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `messagebird`)
originatortextits `{{ }}` must give a string
recipienttextits `{{ }}` must give a string
direction"any" or "mt" or "mo", by default "any"
type"any" or "sms" or "binary" or "flash", by default "any"
status"any" or "scheduled" or "sent" or "buffered" or "delivered" or "expired" or "delivery_failed", by default "any"
contactIdtextits `{{ }}` must give a string
searchtermtextits `{{ }}` must give a string
fromtextits `{{ }}` must give a string
untiltextits `{{ }}` must give a string
limitnumber, by default 20
offsetnumber, by default 0
returnAlltrue/false, by default false