SuperDocs Demo

Get User by ID

Retrieve a single user by their unique identifier

GET /users/{id}

Overview

Retrieves detailed information about a specific user by their ID.

Path Parameters

Path Parameters

id required
integer

The unique identifier of the user to retrieve

Response

id integer

Unique identifier for the user

name string

Full name of the user

username string

Unique username

email string

Email address

phone string

Phone number

website string

Personal website URL

Example Response

{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "Sincere@april.biz",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
"zipcode": "92998-3874",
"geo": {
"lat": "-37.3159",
"lng": "81.1496"
}
},
"phone": "1-770-736-8031 x56442",
"website": "hildegard.org",
"company": {
"name": "Romaguera-Crona",
"catchPhrase": "Multi-layered client-server neural-net",
"bs": "harness real-time e-markets"
}
}

Error Responses

StatusDescription
404User not found - the specified ID does not exist
Try it out
GET /users/{id}