Documentation Index
Fetch the complete documentation index at: https://docs.spn.wtf/llms.txt
Use this file to discover all available pages before exploring further.
API Overview
The SPN API is built with FastAPI and follows REST conventions.Base URL
Authentication
The API uses JWT (JSON Web Tokens) for authentication.Getting a Token
Using the Token
Include the token in the Authorization header:Rate Limits
| Tier | Limit | Endpoints |
|---|---|---|
| AUTH | 20/min | Login, register, password reset |
| GENERAL | 120/min | Authenticated CRUD |
| UPLOAD | 10/min | File uploads |
| PUBLIC | 60/min | Public endpoints |
Endpoints Summary
| Module | Path | Description |
|---|---|---|
| Auth | /auth | Login, Register, OAuth, Password Reset |
| Companies | /companies | Company CRUD, search, domain check |
| Catalog | /catalog | Products, bulk upload, XML feed |
| Contacts | /contacts | Contact management |
| Enquiries | /enquiries | Lead management, WhatsApp verify |
| Users | /users | Profile, password change, picture |
| Try-On | /tryon | AI virtual try-on |
| System | /system | Configuration |
Response Format
Success
Error
OpenAPI Documentation
Interactive API documentation is available at:- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc