Pocketm8
  1. Profile
Pocketm8
  • Auth
    • User
      • Sign In
      • Reset Password
      • Send SMS Code
      • Verify Code
      • Verify Token
      • Verify Challenge
  • 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
    • Get Files
      GET
    • Upload File
      POST
    • Delete File
      DELETE
    • Update File
      PATCH
  • Avatars
    • Upload Avatar file
  • Integrations
    • Matrix
      • Files
        • Link File
        • Unlink File
  1. Profile

Update Phone

Developing
PUT
/profile/phone
This endpoint allows an authenticated user to update their phone number. Phone number verification is required before the change takes effect.
When called, the endpoint triggers a verification process by sending a code to the new phone number. After the user submits the correct code, the system updates the phone number.
To verify the phone number, use the /profile/verify-code endpoint

Request

Body Params application/json

Example
{
    "phone": "+4176545653"
}

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 PUT 'https://admin.letschat.ch/api/profile/phone' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "+4176545653"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "message": "VERIFICATION_CODE_SENT"
}
Modified at 2025-06-03 13:50:59
Previous
Update Email
Next
Resend Code
Built with