Actions116
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Add Participants
- Remove Participants
- Promote To Admin
- Demote To Admin
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- 🖥️ Sessions Actions
- 🆔 Profile Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
- 🔑 Auth Actions
Overview
This node operation requests a one-time authentication code to be sent to a specified phone number. It supports different delivery methods such as SMS or voice call, or can be left empty for web pairing. This is useful for scenarios requiring user verification or registration via phone number authentication.
Use Case Examples
- Requesting a verification code via SMS to a user's phone during account registration.
- Sending a voice call with a code for two-factor authentication setup.
Properties
| Name | Meaning |
|---|---|
| Session | The session name used to identify the authentication session. |
| Phone Number | The mobile phone number in international format to which the one-time code will be sent. |
| Method | The method to receive the one-time code, either 'sms' or 'voice'. Leaving it empty defaults to web pairing. |
| Request Options | Additional options for the request such as batching, SSL certificate validation, proxy settings, and timeout configuration. |
Output
JSON
codeRequested- Indicates whether the request for the one-time code was successful.session- The session name associated with the authentication request.phoneNumber- The phone number to which the code was sent.method- The method used to send the code (sms, voice, or web pairing).
Dependencies
- Requires an API key credential or authentication token to interact with the authentication service.
Troubleshooting
- Common issues include invalid phone number format, unsupported method values, or network connectivity problems.
- Errors related to SSL certificate validation can be resolved by enabling the 'Ignore SSL Issues' option if appropriate.
- Timeout errors can be mitigated by increasing the timeout setting in the request options.