# Authenticate with Google Authenticates a user using a Google ID token obtained from Google Sign-In (OAuth 2.0). This endpoint supports tokens from web applications, Chrome extensions, iOS apps, and Android apps. If the user doesn't exist, a new account is automatically created. Endpoint: POST /v1/auth/google Version: 1.0.0 ## Request fields (application/json): - `id_token` (string, required) Google ID token obtained from Google Sign-In SDK or OAuth 2.0 flow Example: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." - `device_name` (string, required) Name of the device or application requesting the token Example: "Chrome Extension" ## Response 200 fields (application/json): - `status` (string, required) Status of the authentication request Example: "success" - `token` (string, required) Authentication token value Example: "nv-sk-2|4qrD6iCn5FYhHyrdVX1IE4kk6RWg091WpboNklOC" - `token_id` (integer, required) Unique identifier for the token Example: 123 - `user` (object, required) - `user.id` (integer) User ID Example: 1 - `user.name` (string) User's full name Example: "John Doe" - `user.current_team_id` (integer) ID of the user's current team Example: 5 - `user.email` (string) User's email address Example: "john.doe@example.com" - `team` (object, required) - `team.id` (integer) Team ID Example: 5 - `team.name` (string) Team name Example: "Medical Practice" - `is_new_user` (boolean, required) Indicates if a new user account was created during this authentication ## Response 422 fields (application/json): - `message` (string, required) Error message Example: "Validation failed" - `errors` (object) Detailed validation errors by field Example: {"email":["The email must be a valid email address","The email has already been taken"],"password":["The password must be at least 8 characters"],"template_name":["This field is required"]}