API Reference
Users
Users API
This document outlines the API endpoints for managing users in PySpur. Users and sessions are required for deploying agents and chatbots that maintain message history.
Create User
Description: Creates a new user. If a user with the given external ID already exists, returns the existing user.
URL: /user/
Method: POST
Request Payload:
Response Schema:
List Users
Description: Lists users with pagination.
URL: /user/
Method: GET
Query Parameters:
Response Schema:
Get User
Description: Gets a specific user by ID.
URL: /user/{user_id}/
Method: GET
Parameters:
Response Schema:
Update User
Description: Updates a user.
URL: /user/{user_id}/
Method: PATCH
Parameters:
Request Payload:
Response Schema:
Delete User
Description: Deletes a user.
URL: /user/{user_id}/
Method: DELETE
Parameters:
Response: 204 No Content