Guide
Getting Started
Make your first call to the AxosilDesk REST API: find the base URL, pick how to authenticate and send a request.
Base URL
The API is served by the AxosilDesk web app itself, under /api/v1 on the same address you sign in to. There is no separate API host.
https://<your-axosildesk-host>/api/v1This deployment is configured with https://app.axosil.com. When you run the platform locally the tenant app listens on http://localhost:3000. The examples below read the address from an AXOSIL_URL shell variable:
export AXOSIL_URL="https://app.axosil.com"Authentication
Except for a few public endpoints (health, sign-in, agent registration, sign-up), every request must be authenticated. Pick the method that matches your client:
| Client | Method | Header |
|---|---|---|
| Server-to-server integration | Workspace API key, created by an owner or admin | Authorization: Bearer axk_… |
| Mobile app or custom client acting as a user | Token from POST /api/v1/auth/mobile/login | Authorization: Bearer <token> |
| Desktop agent | Agent token from POST /api/v1/agent/register | Authorization: Bearer <agent-token> |
| Browser (the AxosilDesk web app) | Session cookie set by the sign-in page | Cookie, sent automatically |
Details, token lifetimes and roles are in Authentication & API keys.
Quick start
1. Check the API is reachable
The health check needs no authentication.
curl "$AXOSIL_URL/api/health"{
"status": "ok",
"service": "tenant-app",
"version": "0.1.0",
"timestamp": "2026-01-15T09:00:00.000Z"
}Add ?ready=1 to also check the database; the endpoint then answers 503 with "status": "degraded" when the database does not respond within 3 seconds.
2. Create an API key
Sign in as a workspace owner or admin and open Settings → Integrations → API keys. Choose a role (read-only, manager or admin), create the key and copy it: it is shown only once.
export AXOSIL_API_KEY="axk_ro_…"3. Make an authenticated request
curl "$AXOSIL_URL/api/v1/users?limit=10" \
-H "Authorization: Bearer $AXOSIL_API_KEY"Responses use one envelope: { "success": true, "data": … } on success and { "success": false, "error": { "code", "message" } } on failure. See Rate Limits & Best Practices for error codes and pagination.
Clients
Desktop Agent (Tauri)
Native Windows agent for activity tracking, idle detection and screenshots.
Next steps
- Read Authentication & API keys for token lifetimes, roles and SSO
- Browse the REST API Reference for every endpoint
- Stream live data with Server-Sent Events
- Review Rate Limits & Best Practices before going to production