---
title: "Log in a patient with BP Passport UUID and OTP"
method: POST
path: "/patient/login"
tags: ["Patient"]
---

# Log in a patient with BP Passport UUID and OTP

`POST /patient/login`

## Request

- Base URL: `/api/v4` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v4/patient/login`
- Auth: none declared

## Request body

- object
  - `passport_id` string, uuid
  - `otp` string: This string should not be empty.

## Response `200`

Correct OTP is submitted and API credentials are returned

- object
  - `patient` LoginPatient
    - `id` string, uuid
    - `access_token` string: This string should not be empty.
    - `passport` object
      - `id` string, uuid
      - `shortcode` string: This string should not be empty.

## Other responses

- `401`: Incorrect BP Passport UUID or OTP

---

[API](https://skmtc.dev/simpledotorg/apis/simple-api.md) - [All operations](https://skmtc.dev/simpledotorg/apis/simple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simpledotorg/apis/simple-api/revisions/31ffa1d07978?raw)
