SwiftGoma.SwiftGoma

Search endpoints

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

Password

Change password

POST/api/v1/auth/password/update

Changes the password on the signed-in account. Requires the current password.

Requires Authorization
Credential check

Body parameters

currentPasswordstringrequired
The account's current password.
newPasswordstringrequired
New password. Minimum 8 characters.
localestring
en or fr.

Possible errors

401UNAUTHORIZEDLe mot de passe actuel est incorrect.

Notes

  • Every other session (all devices except the current one) is revoked once the password changes.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/auth/password/update \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currentPassword": "••••••••",
  "newPassword": "NewSecurePassword123",
  "locale": "fr"
}'
200Example response
{
  "success": true,
  "data": {
    "id": "3f2a1c9e-7b41-4e2a-9c31-8e6b2d4f10aa",
    "name": "Aline Mapendo",
    "role": "BUYER",
    "email": "aline@example.com",
    "isEmailVerified": true,
    "phone": "243812345678",
    "isPhoneVerified": false,
    "createdAt": "2026-01-14T10:32:00.000Z"
  }
}