Resend

This endpoint allows you to resend the OTP request (message) using its request Id and a resend token.

post
Authorizations
x-auth-tokenstringRequired
Body
requestIdstringRequired
resendTokenstringRequired
operationstring · enumRequiredPossible values:
Responses
201Success
application/json
post
/public/otp/resend
POST /public/otp/resend HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "requestId": "text",
  "resendToken": "text",
  "operation": "CODE"
}
201Success
{
  "requestId": "text",
  "resendToken": "text",
  "remainingRetries": 1,
  "expiration": 1
}

Endpoint: /public/otp/resend

Method: POST

Resend an OTP request.

Request Body:

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

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

  • operation (enum): The type of the operation (CODE, VOICE, FLASH_CALL)

POST /public/otp/resend HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/json
{
  "requestId": "string",
  "resendToken": "string",
  "operation": "CODE"
}

Response:

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

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

  • remainingRetries (number): The number of times left to resend the OTP.

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

{
  "requestId": "string",
  "resendToken": "string",
  "remainingRetries": 0,
  "expiration": 0
}

Last updated