---
title: "Get a user by ID with their role assignments"
method: GET
path: "/api/v1/users/{id}"
tags: ["Users"]
---

# Get a user by ID with their role assignments

`GET /api/v1/users/{id}`

Get a user by ID with their role assignments

## Path parameters

- `id` string, uuid, required — The user ID

## Response `200`

Success

- UserResponse — Response containing a single user
  - `success` boolean, required — Indicates if the request was successful
  - `data` object, required — User information with role assignments
    - `id` string, uuid, required — The unique identifier of the user
    - `email` string, email, required — The email address of the user
    - `first_name` string — First name of the user
    - `last_name` string — Last name of the user
    - `default_partner_id` string, uuid — Default partner context for the user
    - `default_merchant_id` string, uuid — Default merchant context for the user
    - `created_at` string, date-time, required — The creation date of the user
    - `updated_at` string, date-time, required — The last update date of the user
    - `role_assignments` object[], required — Roles assigned to this user
      - `id` string, uuid, required — The unique identifier of the role assignment
      - `role` string, required — Role in format "scopeType:roleName" or "scopeType:roleName:scopeId"
      - `created_at` string, date-time, required — When the role was assigned

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/banqzinc/apis/quidkey-api.md) · [All operations](https://skmtc.net/banqzinc/apis/quidkey-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/banqzinc/quidkey-api/versions/f86d2bdbcb08/schema)
