Send a unique security code to any mobile device via SMS.
Use this API to verify mobile phone numbers, help reduce fraud and in authentication systems for implementing multi-factor authentication (MFA and 2FA) or one-time passwords (OTP).
Supply your own security code for use in TOTP (the most common standard for 2FA implementations) or let us auto generate a secure random code.
To then verify a delivered code you can either implement this on your side or use use the Verify Security Code API.
Send SMS globally to any country at great rates:
SMS Rates
We use multiple networks and mobile carriers to ensure your messages will arrive every time.
If more than one request to the same number is received in a short space of time we automatically switch to alternative delivery routes.
Note on message customization:
We recommend that you set the 'brand-name' option as needed so that end-users will recognize who the message is sent from.
If our default message template does not suit your needs, you can also fully customize it.
To setup a custom template: Contact Us
The number of digits to use in the security code (must be between 4 and 12)
security-code
no
integer
Pass in your own security code. This is useful if you have implemented TOTP or similar 2FA methods. If not set then we will generate a secure random code
brand-name
no
string
Set a custom brand or product name in the verification message
country-code
no
string
ISO 2-letter country code, assume numbers are based in this country. If not set numbers are assumed to be in international format (with or without the leading + sign)
language-code
no
string
en
The language to send the verification code in, available languages are:
de - German
en - English
es - Spanish
fr - French
it - Italian
pt - Portuguese
ru - Russian
limit
no
integer
10
Limit the total number of SMS allowed to the supplied phone number, if the limit is reached within the TTL then error code 14 will be returned
limit-ttl
no
integer
1
Set the TTL in number of days that the 'limit' option will remember a phone number (the default is 1 day and the maximum is 365 days)
API Response
Parameter
Type
Description
sent
boolean
True if the SMS has been sent
number-valid
boolean
True if this a valid phone number
security-code
string
The security code generated, you can save this code to perform your own verification or you can use the Verify Security Code API
API Performance
Characteristic
Value
Description
Avg Latency
20ms
Average RTT for requests within the same data center/region
Max Rate
2/second
Maximum inbound request rate. Exceeding this will result in request throttling
Max Concurrency
10
Maximum concurrent/simultaneous requests. Exceeding this will result in error code 06 [TOO MANY CONNECTIONS]