> ## Documentation Index
> Fetch the complete documentation index at: https://dev.nimbo-x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate a patient portal OTP

> Exchanges the one-time code and patient phone number for a patient portal token. Use this token to access the people authorized for that patient session.



## OpenAPI

````yaml /openapi/nimbo_patient_portal.yml post /api/v1/patient_portal/validate
openapi: 3.1.0
info:
  title: Nimbo patient portal
  version: 1.0.0
  description: >-
    Nimbo API reference. Use the API host and integration access provided by
    Nimbo.
servers:
  - url: https://api.example.test
security: []
tags:
  - name: Patient Portal
  - name: Patient portal authentication
paths:
  /api/v1/patient_portal/validate:
    post:
      tags:
        - Patient portal authentication
      summary: Validate a patient portal OTP
      description: >-
        Exchanges the one-time code and patient phone number for a patient
        portal token. Use this token to access the people authorized for that
        patient session.
      operationId: customerPatientPortalValidate
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                country_code:
                  type: string
                phone:
                  type: string
      responses:
        '200':
          description: A patient portal token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
      security: []

````