---
title: "Get a user by username"
method: GET
path: "/v1/users/{username}"
tags: ["Users (User)"]
---

# Get a user by username

`GET /v1/users/{username}`

## Path parameters

- `username` string, required

## Response `200`

User retrieved successfully

- GetUserResponse
  - `user` User
    - `id` string
    - `email` string, email
    - `name` string
    - `role` 'user' | 'admin'
  - `points` integer — Points associated with the user.
  - `assets` UserAssets
    - `prepaidCards` string[] — List of prepaid cards associated with the user.
    - `giftCards` string[] — List of gift cards associated with the user.
    - `vouchers` string[] — List of vouchers associated with the user.
    - `utilityTokens` string — Utility tokens associated with the user.

---

[API](https://skmtc.net/openloyalty/apis/loyalty-blockchain-api.md) · [All operations](https://skmtc.net/openloyalty/apis/loyalty-blockchain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openloyalty/loyalty-blockchain-api/revisions/e825144e9ffd/schema)
