Overview
Sanka exposes workspace-scoped REST endpoints. Tokens you generate carry yourworkspace_id and are used as Bearer JWTs across all endpoints.
Generate an access token
- Sign in to the app and open Developers → API.
- Click Create Token, choose Full Access (POST+GET) or Regular (GET only), then save.
- Copy the Access Token (shown once) and Refresh Token to a safe place.
Base URLs
https://app.sanka.com/- Local dev:
http://app.localhost:8000/
Authentication
All endpoints use:POST /api/token/refresh/ with body { "refresh": "<refresh_token>" }.
Quickstart examples (cURL)
List orders:Try it in the API reference
Open the Developers tab and use the OpenAPI-backed API Reference. SetAuthorization: Bearer <token> when trying any endpoint.