Overview

Sections

Theme switcher

Generate OTP

Header Parameters

StoreIdstring Required

The API key assigned by Tuned Global to authenticate and authorize access to this service. Must be included in the request header.

Query Parameters

msisdnstring Required

The user's mobile phone number used for delivering the OTP via SMS. Required if the email parameter is not provided.

smsHashstring

A verification hash required by certain OTP providers for SMS validation. Ensures the integrity and authenticity of the SMS request.

languagestring Required

Language code for the OTP message content (e.g. en, fr, th)

otpproviderstring Required

OTP delivery provider. Default: GBilling. Accepted values: GBilling, Twilio, AwsSns, Email, Infobip, EtLocal, Gabb, Sonsy, GatewayApi

Enum values:
NoneGBillingTwilioFirebaseEmailAwsSnsInfobipEtLocalSonsy
emailstring Required

The user's email address used for delivering the OTP via email. Required if the msisdn parameter is not provided.

Response

200
Object

OK

Response Attributes

errorstring

Error code returned when the OTP generation request fails. Indicates the type of failure encountered.

error_descriptionstring

Detailed message describing the error encountered during the OTP generation process, providing additional context for troubleshooting.

400
Object

Bad Request

401
Object

Unauthorized

403
Object

Forbidden

404
Object

Not Found

Was this section helpful?

GET

/

Select
1

Response

Status Codes

200

OTP generated and sent successfully.

400

Invalid parameters or configuration.

401

Authentication failure.

403

The API key doesn't have permissions to perform the request.

404

The requested resource does not exist.

Error Codes

600

telco settings not found for group/country.

601

Msisdn or email not found in request.

601

Msisdn must not exceed 15 characters.

601

Failure to properly authenticate yourself in the request.

601

Email not supplied.

601

OTP Provider not supported.

603

Msisdn is not valid.

607

Error generating OTP in db.

Was this section helpful?