To implement the API which OTP Send system provides, an authorization token (API KEY) is required. The authentication token is automatically issued after your game registers on AppCenter. Authorization token, which follows JWT (JSON Web Token: https://jwt.io) specification, doesn’t limit the expiry time, so it is available to keep using this token.
Hive Console > Notification > SMS OTP > Sending Information Settings > Registration or Modification > Sending ID
Callback required when you send OTP SMS directly
If OTP SMS is not sent directly by OTP but by yourself, you can receive the necessary information for sending OTP SMS via a callback. In Hive Console > Notification > SMS OTP > Sending Information Settings, select Direct Sending, and the following data will be sent to the registered callback URL in JSON format in the Request Body. Please refer to Callback Request Example and Callback Data.
Request Body
Field
Type
Required
Description
to
String
O
The receiver's phone number
toCountryNo
String
O
The receiver's country code
retry
Boolean
X
This field indicates the existence of your trial to send OTP SMS to the same receiver via this API. If this field is left empty, it is set to true if this API was called more than once for the same receiver within the last 5 minutes, and set to false if not.
lookup
Boolean
X
This field indicates whether to verify to is in valid format for a phone number, and the default values is false. If it is true, the API response time would approximately be 250ms ~ 2000ms due to the verification process, and normally within 200ms if it is false.
lang
String
X
This is language code, and the default value is en. the valid language codes: