Request and Send Code - OTP Code
GLOBAL means system will randomize the channel to send or receive the message from or to the user. This approach will need the Global Token instead of Channel Token. The Request and Send OTP Code endpoint enables you to generate a One-Time Password (OTP) with customizable validation settings to ensure uniqueness. You can easily toggle these validation features on or off, depending on your needs. Once generated, the OTP is automatically sent to the specified phone number, providing a secure and flexible way to authenticate users.
post/otp/code/global
Request
- Base URLhttps://api.crunchz.app/api
- AuthOAuth 2Client credentialsToken URLhttps://example.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
200
Example response
{
"success": true,
"message": "OK",
"data": {
"id": "9cf5fda0-ffc7-4acb-aa83-52cfb9c77110",
"code": "4807",
"chat_id": "6281357541790@c.us",
"message": "[Your Company Name] *4807*",
"expired_at": "2024-09-08T14:19:21.034878Z",
"timestamp": "2024-09-08T13:49:21.000000Z"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.