OpenAPI / Swagger
The API service exposes a machine-readable OpenAPI 3.1 specification and an interactive Swagger UI.
Interactive Swagger UI
The Swagger UI is available at:
https://sapi.i18nme.com/docsYou can authorize with your API key via the Authorize button (top right), then call any endpoint directly from the browser.
Raw OpenAPI spec
https://sapi.i18nme.com/openapi.jsonDownload and import into any OpenAPI-compatible tool (Postman, Insomnia, Stoplight, etc.).
Import into Postman
- Open Postman → Import → Link
- Paste
https://sapi.i18nme.com/openapi.json - Click Import
- Open the collection → Variables → set
baseUrlandX-API-Key
Import into Insomnia
- File → Import → URL
- Enter
https://sapi.i18nme.com/openapi.json - Create an environment variable
api_keywith your key value - Add
X-API-Key:to the collection-level headers
Generate a typed client
TypeScript (openapi-typescript)
bash
npx openapi-typescript https://sapi.i18nme.com/openapi.json -o src/types/api.d.tsPython (openapi-python-client)
bash
pip install openapi-python-client
openapi-python-client generate --url https://sapi.i18nme.com/openapi.jsonOpenAPI version
The spec follows OpenAPI 3.1.0. It is generated automatically by FastAPI from the route definitions and Pydantic models — it is always in sync with the running API.
Local development
When running the API service locally (non-production mode), the following URLs are available:
| URL | Purpose |
|---|---|
http://localhost:8001/docs | Interactive Swagger UI |
http://localhost:8001/redoc | ReDoc documentation |
http://localhost:8001/openapi.json | Raw OpenAPI 3.1 spec |
http://localhost:8001/v1/spec | Redirect shortcut → /openapi.json |
Note: In production these URLs are disabled. Use the production URLs above for the live spec.