Pocketm8
  1. User
Pocketm8
  • Auth
    • User
      • Sign In
        POST
      • Reset Password
        POST
      • Send SMS Code
        POST
      • Verify Code
        POST
      • Verify Token
        POST
      • Verify Challenge
        POST
  • Profile
    • Get Profile
      GET
    • Update Profile
      PATCH
    • Update Email
      PUT
    • Update Phone
      PUT
    • Resend Code
      POST
    • Update Avatar
      POST
    • Verify Code
      POST
  • Users
    • Get Users
      GET
  • Contacts
    • Get Contact
      GET
    • Get Contacts
      GET
  • Tasks
    • Create Task
      POST
    • Delete Task
      DELETE
    • Update Task
      PUT
    • Update Task Status
      POST
    • Get Task
      GET
    • Get Tasks
      GET
  • Relations
    • Task Edit
      GET
    • File Edit
      GET
  • Files
    • Get File
    • Get Files
    • Upload File
    • Delete File
    • Update File
  • Avatars
    • Upload Avatar file
  • Integrations
    • Matrix
      • Files
        • Link File
        • Unlink File
  1. User

Send SMS Code

Developing
POST
/auth/user/code
This endpoint sends an SMS verification code to a given phone number. The user receives a one-time password (OTP) via SMS.

Request

Body Params application/json

Example
{
    "phone": "string"
}

Request Code 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://admin.letschat.ch/api/auth/user/code' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "message": "SMS_CODE_HAS_BEEN_SENT",
    "data": {
        "userId": "67b9f20c001aef4f23ed"
    }
}
🟠400Bad Request
Modified at 2025-02-23 17:52:59
Previous
Reset Password
Next
Verify Code
Built with