---
title: "Retrieve patient profile by username"
method: GET
path: "/profiles/v1/patient/{username}/username/?flatten=true"
---

# Retrieve patient profile by username

`GET /profiles/v1/patient/{username}/username/?flatten=true`

## Request

- Base URL: `https://api.eka.care`
- URL: `https://api.eka.care/profiles/v1/patient/{username}/username/?flatten=true`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/eka/apis/eka-developer-apis/docs/profiles/v1/patient/:username/username/%3Fflatten=true/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves patient profile using username in a workspace.

## Path parameters

- `username` string, required

## Headers

- `client-id` string, required

## Response `200`

Patient profile details

- PatientProfile[]
  - `oid` string
  - `wid` string
  - `ps` string
  - `c_ate` integer
  - `u_ate` integer
  - `gen` string
  - `dob` string, date
  - `is_age` boolean
  - `fn` string
  - `ln` string
  - `fln` string
  - `bg` string
  - `mobile` string
  - `ccd` string
  - `email` string, email
  - `username` string
  - `s` string
  - `abha` string

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/eka/apis/eka-developer-apis.md) - [All operations](https://skmtc.dev/eka/apis/eka-developer-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/eka/apis/eka-developer-apis/revisions/9ea23456f722?raw)
