Skip to main content
POST

Path Parameters

workflowId
string<uuid>
required

Unique identifier of the workflow

Body

application/json
key
string
required

Where to send the code: an email address for EMAIL, or a phone number in E.164 format for PHONE.

Example:

"+2348012345678"

verificationId
string<uuid>
required

The verification the code is for.

Example:

"85c94e71-6e3f-4a19-b15c-781d8a876542"

channel
enum<string>
default:EMAIL

How to send the code. Defaults to EMAIL.

Available options:
EMAIL,
PHONE

Response

Whether a code was sent

sent
boolean

false when an SMS was skipped because the organization's credits couldn't pay for it. Always true for email.