---
title: "Sign in or sign up with a Google ID token from Google Identity Services: verified here (signature, issuer, audience, expiry, verified email); the same Google account always reaches the same account, an email account with that verified address is linked"
method: POST
path: "/api/v1/auth/google"
tags: ["Account"]
---

# Sign in or sign up with a Google ID token from Google Identity Services: verified here (signature, issuer, audience, expiry, verified email); the same Google account always reaches the same account, an email account with that verified address is linked

`POST /api/v1/auth/google`

## Request

- Base URL: `https://philforms.com`
- URL: `https://philforms.com/api/v1/auth/google`
- Auth: none declared

## Request body

- object
  - `credential` string, required: The ID token (JWT) Google returned
  - `referral_code` string

## Response `200`

{ session_token, account, is_new: false, is_onboarding_needed }

## Other responses

- `201`: { session_token, account, is_new: true, is_onboarding_needed }
- `401`: Token not genuine, expired, for another site, or email not verified
- `404`: Not set up
- `409`: Email linked to a different Google account

---

[API](https://skmtc.dev/philforms/apis/philforms-api.md) · [All operations](https://skmtc.dev/philforms/apis/philforms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/philforms/apis/philforms-api/revisions/a43bf313729c?raw)
