power-offInitiate

This endpoint is the starting point of the OTP service, initiating an OTP request (message) to send it to a specific recipient.

post
Authorizations
x-auth-tokenstringRequired
Body
phoneNumberstringRequired
lengthnumber · enumRequired

4 or 6 digits code

Default: 4Possible values:
expirationnumberRequired

in seconds

Default: 300
clientOsstring · enumRequired

Operating system of the client

Default: OTHERPossible values:
languagestring · enumRequired

Language of the client

Default: ENPossible values:
operationstringRequired

OTP type

senderIdstringRequired
Responses
post
/public/otp/initiate
201Success

Endpoint: /public/otp/initiate

Method: POST

Description: Initiate a new OTP request.

Request Body:

  • phoneNumber (string): The recipient phone number.

  • length (number): The length of OTP code.

  • expiration (number): The Expiration period of the OTP code, the expiration length could be: 120, 300, 600 second.

  • clientOs (enum): The operating system of the client.

Response:

  • expiration (number): The Expiration period of the OTP code.

  • price (number): The price of the OTP request.

  • requestId (string): The unique identifier of the OTP request.

  • resendToken (string): The token used to resend the OTP request.

Last updated