POST
/
otp
/
request_token
curl --request POST \
  --url https://api.simpu.co/otp/request_token \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "recipient": "2348023456789",
  "length": 6,
  "expires_in": 30,
  "token": "123456"
}'
{
  "id": "674535b2b39158b9aae90188fcec23eb",
  "recipient": "2348023456789",
  "status": 1,
  "status_desc": "SENT",
  "created_datetime": "2024-06-28T23:56:38.128604+00:00",
  "updated_datetime": "2024-06-28T23:56:38.128604+00:00"
}

Authorizations

Authorization
string
header
required

An API key to authenticate requests

Body

application/json
OTP request object

The body is of type object.

Response

200
application/json
OTP response

The response is of type object.