AI Assistant

How can I help you today?

UsersGet Users
Users

GET /users

Retrieve a list of all users (admin only)

curl -X GET "https://api.petstore.example.com/v1/users" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "users": [
    {
      "id": 1,
      "username": "johndoe",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john.doe@example.com",
      "phone": "+1-234-567-8900",
      "userStatus": 1
    }
  ]
}
GET
/users
GET
Security Scheme
Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token obtained from the login endpoint

JWT token obtained from the login endpoint
Request Preview
Response

Response will appear here after sending the request

Authentication

bearerAuth
header
Authorizationstring
Required

Bearer token (JWT). JWT token obtained from the login endpoint

Responses

usersarray