Make new otp

POST /otp/make

make new otp

Body

  • phone string

    phone number with e164 format

  • otpType string

    Values are waindirect or telegram.

  • data string(base64) | null

    Consumer related custom data in base64 format

Responses

POST /otp/make
curl \
 -X POST https://api.goove.id/v1/otp/make \
 -H "X-API-KEY: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"phone":"string","otpType":"waindirect","data":"string"}'
Request example
{
  "phone": "string",
  "otpType": "waindirect",
  "data": "string"
}
Request examples
{
  "phone": "string",
  "otpType": "waindirect",
  "data": "string"
}
Response examples (200)
{
  "otpID": "string",
  "redirectLink": "string",
  "validUntil": "2023-05-04T09:42:00+00:00"
}
Response examples (200)
{
  "otpID": "string",
  "redirectLink": "string",
  "validUntil": "2025-05-04T09:42:00+00:00"
}
Response examples (400)
"string"
Response examples (400)
string
Response examples (500)
"string"
Response examples (500)
string