ZiadaPOS Documentation
ZiadaPOS is a complete point-of-sale and shop management system built for Tanzanian businesses. It consists of three main components:
| Component | Tech Stack | Purpose |
|---|---|---|
| REST API | Go + Gin + GORM + PostgreSQL | Backend serving all business logic |
| MCP Agent | Python + FastMCP + LLM | Natural-language AI assistant |
| Docs | Next.js + Nextra | This documentation site |
Quick Start
For API Consumers
- Register an account via
POST /api/v1/auth/register - Login via
POST /api/v1/auth/loginto get JWT tokens - Use the
access_tokeninAuthorization: Bearer <token>header - Start making authenticated requests
For Agent Users
- The agent exposes an MCP endpoint at
/mcp - Or use the HTTP bridge at
POST /askwith{"question": "..."}queries - The agent supports both English and Swahili
Base URLs
| Environment | API | Agent |
|---|---|---|
| Local | http://localhost:8080/api/v1 | http://localhost:8081 |
| Production | https://api.ziadapos.com/api/v1 | https://agent.ziadapos.com |
Documentation Structure
- REST API - Complete API reference with all 152 endpoints
- MCP Agent - AI agent documentation with 111 tools
- Architecture - System design and data flow