AI Assistant

How can I help you today?

UsersCreate Users
Users

POST /users

Create a new user account

curl -X POST "https://api.petstore.example.com/v1/users" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "username": "John Doe",
  "firstName": "John Doe",
  "lastName": "John Doe",
  "email": "user@example.com",
  "password": "example_string",
  "phone": "+1-555-0123"
}'
{
  "id": 1,
  "username": "johndoe",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+1-234-567-8900",
  "userStatus": 1
}
POST
/users
POST
Security Scheme
Bearer Tokenstring
Required

JWT token obtained from the login endpoint

JWT token obtained from the login endpoint
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

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

Responses