---
title: "Gets user details by username"
method: GET
path: "/api/Users/{username}"
tags: ["Users"]
---

# Gets user details by username

`GET /api/Users/{username}`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Users/{username}`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Users/:username/get.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
            
    Get api/users/john

## Path parameters

- `username` string, required

## Response `200`

User details

- GetUsersResDto[]
  - `name` string, nullable
  - `email` string, nullable
  - `userName` string, nullable
  - `status` string, nullable
  - `role` string[], nullable

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: username not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
