Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Account → Create Phone Session
AI-generatedOverview
This node interacts with the Appwrite API to create a phone session for a user account. It is useful in scenarios where you need to initiate a phone-based session for user authentication or verification, such as sending a verification code to a user's phone number to start a session.
Use Case Examples
- Creating a phone session for a user to verify their phone number during account setup.
- Initiating a phone session to enable phone-based login or multi-factor authentication.
Properties
| Name | Meaning |
|---|---|
| Phone | The phone number in E.164 format to be used for creating the phone session. |
| User ID | The unique identifier of the user for whom the phone session is being created. |
Output
JSON
sessionId- The ID of the created phone session.status- The status of the phone session creation request.message- Additional information or message related to the phone session creation.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure the phone number is in the correct E.164 format, e.g., +14155552671.
- Verify that the User ID provided exists and is correct.
- Check that the Appwrite API credentials (endpoint, project ID, API key) are correctly configured.
- Common errors include authentication failures due to invalid API keys, or validation errors if the phone number format is incorrect.
Links
- Appwrite Account Create Phone Session API - Official documentation for creating a phone session in Appwrite accounts.