# GET /users/{id}

## GET /api/v1/Users/{userId}

> Retrieves detailed information for a specific user by ID.

```json
{"openapi":"3.0.4","info":{"title":"Cakewalk Open API","version":"v1"},"servers":[{"url":"https://open-api.getcakewalk.io"}],"security":[{"API Key":[]}],"components":{"securitySchemes":{"API Key":{"type":"apiKey","description":"Public API key used to identify the client application. It should be included in all requests.","name":"X-API-KEY","in":"header"}},"schemas":{"UserDetailedRecordViewModelV1":{"required":["data","links"],"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/UserDetailedViewModelV1"}],"description":"The single data record returned by the request."},"links":{"allOf":[{"$ref":"#/components/schemas/LinksViewModel"}],"description":"Navigation links related to the resource."}},"additionalProperties":false,"description":"A response model that contains a single data record and related navigation links."},"UserDetailedViewModelV1":{"required":["email","id","name","roleName","statusName"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the user.","format":"uuid"},"name":{"minLength":1,"type":"string","description":"Full name of the user."},"email":{"minLength":1,"type":"string","description":"Email address of the user."},"roleId":{"type":"integer","description":"Identifier of the user's role.","format":"int32"},"roleName":{"allOf":[{"$ref":"#/components/schemas/UserRole"}],"description":"Name of the user's role."},"statusId":{"type":"integer","description":"Identifier of the user's status.","format":"int32"},"statusName":{"allOf":[{"$ref":"#/components/schemas/UserStatus"}],"description":"Name of the user's status."},"lastLogin":{"type":"string","description":"Timestamp of the user's last login, if available.","format":"date-time","nullable":true},"managerId":{"type":"string","description":"Unique identifier of the manager.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"Detailed information about a user, including role, status, and optional last login timestamp."},"UserRole":{"enum":["User","Admin","SuperAdmin"],"type":"string"},"UserStatus":{"enum":["Active","Invited","Deactivated","Offboarding","Discovered","Ignored"],"type":"string"},"LinksViewModel":{"required":["self"],"type":"object","properties":{"self":{"minLength":1,"type":"string","description":"URL to the current resource or page."},"next":{"type":"string","description":"URL to the next page in the collection, if available.","nullable":true}},"additionalProperties":false,"description":"Pagination-related URLs for navigating a paginated collection."},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}},"paths":{"/api/v1/Users/{userId}":{"get":{"tags":["Users"],"summary":"Retrieves detailed information for a specific user by ID.","parameters":[{"name":"userId","in":"path","description":"The unique identifier of the user.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-API-SECRET","in":"header","description":"API Secret is used to verify the integrity of the request and authenticate the client. It should be included in all requests. This value must be kept confidential and should never be exposed in client-side code or public repositories.","required":true,"schema":{"type":"string","description":"API Secret is used to verify the integrity of the request and authenticate the client. It should be included in all requests. This value must be kept confidential and should never be exposed in client-side code or public repositories."}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/UserDetailedRecordViewModelV1"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserDetailedRecordViewModelV1"}},"text/json":{"schema":{"$ref":"#/components/schemas/UserDetailedRecordViewModelV1"}}}},"401":{"description":"Unauthorized","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error"}}}}}}
```
