FlowmageDocs

Send verification code

BetaChanges data

Sends a one-time code by SMS, voice or e-mail.

Settings

SettingWhat it is
ConnectionRequiredThe MessageBird connection the step signs in with.
Phone number or e-mailRequiredWhere the code goes: a number in international format, or an e-mail address when you pick E-mail below.
SenderThe sender the person sees. MessageBird uses Code when you leave this as it is, and the sender must be registered for the destination country.
Send as"sms" or "flash" or "tts" or "email"
MessageThe text around the code. It must contain %token, which is where the code is written — leave it out and the person never sees the code. Empty uses MessageBird's own text.
Valid for (seconds)30 to 172801 seconds. MessageBird's own default is 30.
Code length6 to 10 digits.
Attempts allowed1 to 10. Every check spends one, right or wrong.
Voice"default" or "male" or "female"
LanguageThe language the code is read out in.
SubjectThe subject line of the e-mail.
Your referenceA label MessageBird echoes back. It does not stop a duplicate send.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `messagebird`)
recipienttextits `{{ }}` must give a string
originatortext, by default "Code"its `{{ }}` must give a string
type"sms" or "flash" or "tts" or "email", by default "sms"
templatetext
timeoutnumber, by default 30
tokenLengthnumber, by default 6
maxAttemptsnumber, by default 1
voice"default" or "male" or "female", by default "default"used when `type` is "tts"
languagetextused when `type` is "tts"
subjecttextits `{{ }}` must give a string; used when `type` is "email"
referencetextits `{{ }}` must give a string

Output

FieldType
verifyIdVerification id — Check verification code needs itstring
statusStatus (sent, expired, failed, verified)string
validUntilThe moment the code stops workingstring
Sample output, and the expression for each field
  • status"sent"
  • validUntil"2026-09-22T12:00:30Z"
  • verifyId"vf-1"

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>",
    "language": "",
    "maxAttempts": 1,
    "originator": "Code",
    "recipient": "<phone number or e-mail>",
    "reference": "",
    "subject": "",
    "template": "",
    "timeout": 30,
    "tokenLength": 6,
    "type": "sms",
    "voice": "default"
  },
  "label": "Send verification code",
  "type": "messagebird.sendVerificationCode",
  "version": 1
}