API Reference
The Apptork Root System embraces modern API development standards. All endpoints, parameters, request payloads, and standardized error responses are automatically mapped and exposed using OpenAPI 3 specifications via drf-spectacular.
Interactive Documentation Interfaces
We provide two distinct, interactive UI frameworks to explore the API, built directly into the core routing.
Swagger provides a highly interactive playground. You can inject JWT tokens, populate request bodies, and execute real queries against the API directly from your browser.
ReDoc offers a beautiful, three-panel, static reading experience. It is ideal for sharing with front-end developers who need a clean, comprehensive overview of the available payloads and error codes without necessarily executing requests inline.
Authentication in Swagger
To test protected endpoints in the Swagger UI, you must authenticate.
- Obtain a JWT: Use the
/api/v1/auth/...endpoints (e.g., OTP verify) to generate anaccesstoken. - Authorize: Click the green Authorize button at the top right of the Swagger interface.
- Inject: Paste your token into the
jwtAuthfield. (You do not need to type "Bearer ", just the raw JWT string depending on configuration). - Execute: You can now freely execute requests against protected endpoints like
/api/v1/wallets/me/.
The Raw Schema
If you are utilizing code generation tools (like openapi-generator for Dart/Flutter or Typescript/Vue.js), you can download the raw JSON/YAML specification file directly:
Schema URL: http://localhost:8000/api/schema/
Security Warning
In a true production environment, you must consider disabling these routes behind an administrative feature flag or firewall to prevent exposing your complete internal schema to the public internet.