- Design
- Runner
- Customer Auth
- Utility
- Warehouse
- Store
- Document
Verify OTP
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/identity/auth/rego/otp/verify/
Last modified:2024-12-05 07:40:14
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
mode
enum<string>Â
required
Allowed values:
smsemail
value
stringÂ
required
otp
stringÂ
required
Example
{
"mode":"sms",
"username": "9599976692",
"otp": "250254"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/v1/identity/auth/rego/otp/verify/' \
--header 'Content-Type: application/json' \
--data-raw '{
"mode":"sms",
"username": "9599976692",
"otp": "250254"
}'
Responses
🟢200Success
application/json
Body
message
stringÂ
required
Example
{
"message": "string"
}