Test all 16 PraisonAIUI feature APIs using curl. Each example creates real data and verifies backend processing.
PraisonAIUI includes built-in integration tests via
aiui test. These run against a live server and verify chat, memory, sessions,
aiui test
and API endpoint health.
| Command | What It Tests |
|---------|---------------|
| aiui test endpoints | API endpoint availability (/health, /api/features, /api/sessions, /api/chat) |
aiui test endpoints
| aiui test chat | Message sending, session history isolation, context recall |
aiui test chat
| aiui test memory | Cross-session persistent memory (store + recall facts) |
aiui test memory
| aiui test sessions | Session file persistence (survives server restarts) |
aiui test sessions
| aiui test all | Runs all of the above in sequence |
aiui test all
--server
-s
http://127.0.0.1:8082
--timeout
-t
30
Endpoints (6 checks, 2 optional skips):
GET /api/features
GET /api/sessions
GET /api/chat/history
POST /api/chat/send
GET /api/provider/health
GET /api/provider/agents
GET /health
Chat (8 checks):
Memory (2 checks):
Sessions (4 checks):
---
Use the example at examples/python/14-all-features/app.py which tests all 16 features programmatically:
examples/python/14-all-features/app.py
| Feature | Endpoints | Expected |
|---------|-----------|----------|
| Channels | 4 | All 200/201 |
| Agents | 3+ | 201 create, 200 list, 501 run (no praisonaiagents) |
| Approvals | 6 | Auto-approve low-risk, manual approve high-risk |
| Jobs | 3 | 202 submit, 200 list/stats |
| Schedules | 2 | 201 create, 200 list |
| Usage | 4+ | 201 track, 200 summary with by_model breakdown |
| Skills | 2 | 18 skills, 7 categories |
| Config | 5 | Schema, defaults, validate, runtime set/get |
| Auth | 4 | API key generation, multi-mode auth |
| OpenAI API | 2 | 11 endpoints, 13 models |
| Logs | 2 | 5 log levels |
| Sessions | 3 | State save/get/preview |
| Memory | 6 | List, add, search, context, session-scoped, status |
| Hooks | 1 | 200 (empty until registered) |
| Workflows | 1 | 200 (empty until created) |
| Features | 1 | 16 features registered |