---
title: "Create Google Login State"
method: POST
path: "/api/auth/google-login-state"
tags: ["auth"]
---

# Create Google Login State

`POST /api/auth/google-login-state`

## Request

- Base URL: `https://api.retirementlab.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retirementlab.app/api/auth/google-login-state`
- Auth: none declared

## Request body

- GoogleLoginStateRequest
  - `terms_accepted` boolean
  - `marketing_email_opt_in` boolean
  - `attribution` object
  - `auth_flow_id` string
  - `auth_intent` string

## Response `200`

Successful Response

- GoogleLoginStateResponse
  - `state` string, required
  - `expires_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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