SwiftGoma.SwiftGoma

Search endpoints

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

Login

Complete login with a 2FA code

POST/api/v1/auth/login/totp

Second step of login for accounts with TOTP enabled. Exchanges the pendingToken from an earlier login step, plus a current 6-digit authenticator code (or an unused backup code), for a real session.

No authentication required
Credential check — tight, feeds automatic IP blocking

Body parameters

pendingTokenstringrequired
Short-lived token returned by a login endpoint when requiresTotp is true.
codestringrequired
6-digit code from the authenticator app, or an unused backup code.
deviceNamestring
Human-readable device label for the new session.
localestring
en or fr.

Possible errors

401UNAUTHORIZEDCode d'authentification invalide.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/auth/login/totp \
  --header 'Content-Type: application/json' \
  --data '{
  "pendingToken": "mfa_9f8e7d6c5b4a3210",
  "code": "482913",
  "deviceName": "Chrome on macOS",
  "locale": "fr"
}'
200Example response
{
  "success": true,
  "data": {
    "user": {
      "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"
    }
  }
}