---
title: "Validate Otp"
method: POST
path: "/api/v3/auth/validate-otp"
tags: ["Authentication"]
---

# Validate Otp

`POST /api/v3/auth/validate-otp`

## Request

- Base URL: `https://api.endless.health` (the document declares no server; this is the origin it was published from)
- URL: `https://api.endless.health/api/v3/auth/validate-otp`
- Auth: none declared

## Request body

- OTPValidationRequestSchema
  - `firebase_token` string, required
  - `locale` 'en' | 'es'
  - `google_credentials` GoogleCredentialsSchema
    - `idToken` string, required
    - `accessToken` string, required
    - `pendingToken` string, nullable
    - `providerId` string, required
    - `signInMethod` string, required
  - `code` string, required

## Response `200`

Successful Response

- UserLoginResponseSchema
  - `id` integer, required
  - `email` string, required
  - `site_id` integer, required
  - `organization_identifier` string, required
  - `first_name` string, nullable, required
  - `last_name` string, nullable, required
  - `is_superuser` boolean
  - `roles` string[]
  - `permissions` string[]
  - `is_staff` boolean, nullable
  - `is_physician` boolean, nullable
  - `is_kit_assembly` boolean, nullable
  - `locale` string, nullable, required
  - `has_pending_token` boolean, nullable
  - `features` object, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/endless/apis/eh-core-v3-api-prod.md) - [All operations](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/revisions/9046a1eb2d0c?raw)
