- Send
external_ref, your permanent id for the user, andemail. - The code is valid for 10 minutes.
- No account or token exists until the code is confirmed.
- Call again to resend after
resend_after_sseconds, or to update the user's details. - Send the user's IP address as
X-Flume-Client-IP. Flume then also limits codes per IP address. - Codes count against a daily limit per partner.
- Docs
- API reference
- Users
- Send a verification code
Send a verification code
Code samples show live values. Live is in early access and not yet open to new partners: see Environments.
https://sandbox-api.tryflume.ai/partner/v1/users/trigger-verificationEmails a 6-digit verification code to a user.
Guide: Verify a user
Request
Headers
| Header | Required | Description |
|---|---|---|
X-Flume-Partner-Key | Yes | Your partner key. See Authentication and keys. |
X-Flume-Client-IP | No | The user's own IP address: one IPv4 or IPv6 address. When sent, Flume also limits codes per IP address. Without it, only the limits per mailbox apply. |
Body
Send application/json. A field the API does not list returns a 422 that names it.
Your permanent id for the user.
- 1 to 128 characters
Where the code goes. It is also the user's Flume sign-in address.
- Max 320 characters
- Pattern
^[^@\s]+@[^@\s]+\.[^@\s]+$
The user's first name.
- Max 128 characters
The user's last name.
- Max 128 characters
A US phone number, in any common format.
- Max 32 characters
The firm the user works at.
ShowHide the 3 fields of
orgYour id for the firm.
- Max 128 characters
The firm's name.
- Max 255 characters
The firm's website domain.
- Max 255 characters
How the user proves their email.
email_codeis the only method today.- Default
"email_code"
- Default
Returns
202 with these fields. Every field is always present. A field with no value is null.
external_refstringYour id for the user.
masked_emailstringThe address the code went to, masked. Safe to show the user.
expires_in_sintegerHow long the code is valid, in seconds.
resend_after_sintegerHow long to wait before you ask for another code for this user, in seconds.
Errors
Every error uses one envelope. Branch on error.code.
| Status | Code | Meaning |
|---|---|---|
| 401 | EMBED_TOKEN_INVALID | You sent an Authorization header and no X-Flume-Partner-Key. Flume read the call as one from its own iframe. |
| 401 | PARTNER_KEY_INVALID | The partner key is missing, unknown, revoked, expired, or from the other environment. On live, also a platform Flume has not enabled yet. |
| 401 | USER_TOKEN_INVALID | The user access token is unknown, revoked, another partner's, or replaced by a later verification. A verification in the iframe replaces it too. |
| 422 | USER_ACCOUNT_CLOSED | The user's email belongs to a Flume account that Flume has closed. |
| 422 | VALIDATION_FAILED | A field is missing, unknown or has an unusable value. field names it as a dotted path. Some refusals carry the detail in details and leave field empty. |
| 429 | RATE_LIMITED | Today's limit for this call is used up. Retry-After is the number of seconds until 00:00 UTC. |
| 429 | VERIFICATION_RATE_LIMITED | A resend came too soon, or the mailbox reached its limit. When you send X-Flume-Client-IP, the limit per IP address applies too. |
| 500 | INTERNAL | Something failed on Flume's side. |
| 502 | VERIFICATION_EMAIL_FAILED | The email could not be sent. |