API reference

Rendered from /api/openapi.json. Click Authenticate below and paste a token to try any endpoint live — reads and writes. Also imports into Swagger UI, Postman or Insomnia.

Get a token to try it out

  • API key — an admin creates one under Admin → Settings → Developer & API (use a dmk_test_ key to experiment safely).
  • Temporary OAuth token — exchange a client id + secret for a short-lived token:
curl -s https://ashr.work/api/oauth/token \
  -H "Content-Type: application/json" \
  -d '{"grant_type":"client_credentials","client_id":"dmk_client_…","client_secret":"dmk_secret_…"}'
# → { "access_token": "dmk_at_…", "expires_in": 3600, "refresh_token": "dmk_rt_…", "scope": "leave:read …" }

Paste the key or dmk_at_… token into Authenticate, then use Test Request on any endpoint.