1. users
Autonomk
  • users
    • Get all users
      GET
    • Create User
      POST
    • Delete user
      DELETE
    • Get single user
      GET
    • Update User
      PUT
  • auth
    • Login
      POST
    • refresh token
      POST
    • Logout
      POST
  • chat
    • Chat
      POST
  • sessions
    • Get all logged in sessions
      GET
    • Delete logged in token
      DELETE
  • conversations
    • Get single conversation with chat messages
      GET
    • Get list of all conversations
      GET
    • Create Conversation History
      POST
    • Delete Conversation History
      DELETE
    • Update the conversation properties
      PATCH
    • insert chat into conversation
      PATCH
  • Untitled Endpoint
    POST
  1. users

Create User

Developing
Development
http://localhost:8080/api/v0
Development
http://localhost:8080/api/v0
POST
http://localhost:8080/api/v0
/users
Admin: Create a new user.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢201Created
application/json
Create a new user. You will have to create the password seprately and is left to implement on the server side when you create the user.
Headers

Bodyapplication/json

🟠400Bad Request
🟠422Unprocessable Entity
🟠403Forbidden
🟠401Unathorized
🟠409Conflict
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:8080/api/v0/users' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "Sophia.Corwin",
    "first_name": "Sophia",
    "last_name": "Corwin",
    "email": "Sophia.Corwin@yahoo.com"
}'
Response Response Example
201 - Response from creating user
{
    "id": "406c9856-6631-413c-8d9b-4d8ade685f97",
    "first_name": "Grayce",
    "last_name": "Toy",
    "email": "Krystel_Runolfsdottir@hotmail.com",
    "username": "Lyric29"
}
Modified at 2025-06-16 15:44:32
Previous
Get all users
Next
Delete user
Built with