SwiftGoma.SwiftGoma

Search endpoints

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

Google Account

Link Google account

POST/api/v1/users/google/link

Links a Google account to the signed-in user, enabling "Log in with Google" for this account going forward.

Requires Authorization
Authenticated action

Body parameters

idTokenstringrequired
Google Sign-In ID token from the client SDK.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/users/google/link \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "idToken": "eyJhbGciOiJSUzI1NiIsIn..."
}'
200Example response
{
  "success": true,
  "data": {
    "linked": true,
    "googleEmail": "aline@gmail.com"
  }
}