SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Phone Number

Request phone number change

POST/api/v1/users/phone/update/request

Sends a verification code by SMS to the new number, ahead of replacing the account's current phone number.

Requires Authorization
Request/initiation

Body parameters

newPhonestringrequired
The new phone number to switch to.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/users/phone/update/request \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "newPhone": "<newPhone>"
}'
200Example response
{
  "success": true,
  "data": {
    "message": "Un code de vérification a été envoyé par SMS."
  }
}