http://127.0.0.1:8000
All endpoints except registration and login require JWT authentication via Bearer token.
Authorization: Bearer <your_access_token>
- URL:
POST /api/auth/register/ - Description: Create a new user account
- Request Body:
{ "email": "user@example.com", "username": "username", "password": "password123", "password2": "password123" } - Success Response:
201 Created
- URL:
POST /api/auth/token/ - Description: Get JWT tokens
- Request Body:
{ "email": "user@example.com", "password": "password123" } - Success Response:
200 OK{ "access": "jwt_token", "refresh": "refresh_token" }
- URL:
GET /api/auth/profile/ - Authentication: Required
- Success Response:
200 OK
- URL:
GET /api/chat/conversations/ - Authentication: Required
- Success Response:
200 OK
- URL:
POST /api/chat/conversations/ - Authentication: Required
- Request Body:
{ "title": "Conversation Title" }
- URL:
POST /api/chat/chat/(new conversation) - URL:
POST /api/chat/chat/{conversation_id}/(existing) - Authentication: Required
- Request Body:
{ "message": "Your message here" }
- Register a user
- Login to get tokens
- Use access token for authenticated requests
- Create a conversation
- Send messages
- View conversation history
- Import the collection file:
zenith-ai-api.postman_collection.json - Import the environment file:
zenith-ai-api.postman_environment.json