Infronest REST API
Every Infronest module is backed by a REST API scoped to your workspace. The API is described by a live OpenAPI 3 schema generated from the running backend, so the endpoint groups below are the real ones — not a hand-written wish list.
Base URL
Each tenant is served from its own workspace subdomain, and the API lives directly under it:
https://<workspace>.infronest.com/api/Replace <workspace> with your workspace slug (the one derived from your company name at sign-up). All requests and responses are JSON. The schema itself is served by drf-spectacular and rendered as interactive Swagger UI and ReDoc inside the app for administrators at /api/docs/ and /api/redoc/.
Authentication
Infronest uses JSON Web Tokens (SimpleJWT). Exchange your workspace credentials for an access and a refresh token, then send the access token as a bearer header on every call:
Authorization: Bearer <access_token>Access tokens are short-lived (60 minutes by default); refresh tokens last up to 7 days and are rotated on use. A successful login returns both tokens plus the signed-in user’s profile:
POST /api/auth/login/
{ "username": "you@company.com", "password": "••••••••" }
200 OK
{
"access": "eyJhbGciOiJIUzI1NiIs…",
"refresh": "eyJhbGciOiJIUzI1NiIs…",
"user": {
"id": 42,
"email": "you@company.com",
"role": "SUPER_ADMIN",
"role_display": "Super Admin",
"department": "IT",
"permissions": [ … ]
}
}When a user has two-factor authentication enabled, the login response withholds the tokens and returns totp_required: true with a short-lived pre-auth token; the caller completes the second factor before receiving JWTs. Refresh with POST /api/auth/refresh/, check a token with POST /api/auth/verify/, and revoke a session (blacklisting the refresh token) with POST /api/auth/logout/.
Browser sessions can also run in httpOnly-cookie mode, and device agents authenticate with their own enrollment token (Authorization: DeviceToken <token>) — the schema advertises all of these security schemes.
Conventions
- Resource-oriented. Most resources are standard collections:
GETto list,POSTto create,GET /{id}/to retrieve,PATCH/PUTto update,DELETEto remove — with custom actions like/{id}/acknowledge/or/{id}/launch/hung off the resource. - Pagination. List endpoints are paginated (page number, 50 items per page by default) and wrap results as
{ count, next, previous, results }. Pass?page=Nto page through. - Tenant isolation. Every response is scoped to the organization of the authenticated caller. There is no cross-tenant access — you only ever see your own workspace’s data.
- Caching. Some
GETresponses are cached briefly server-side for performance; writes return fresh data.
Endpoint groups
The API spans roughly forty modules and over a thousand routes. Below are the primary top-level groups with a couple of real endpoints each; the modules your workspace can call depend on your plan.
/api/auth/Obtain, refresh, verify, and revoke JWTs; self-serve workspace registration.
/api/auth/login//api/auth/refresh//api/auth/verify//api/auth/logout//api/mdm/Enrolled fleet, policies, alerts, and per-OS agent downloads across Windows, macOS, Linux, and Android.
/api/mdm/devices//api/mdm/policies//api/mdm/alerts/{id}/acknowledge//api/mdm/agent/download/{os_type}//api/patch-management/Patch posture dashboard, deployment rings, and deployment lifecycle.
/api/patch-management/dashboard//api/patch-management/deployments//api/patch-management/deployments/{id}/cancel//api/vapt/Vulnerability assessment, analyst triage queue, bug-bounty programs, and threat intel.
/api/vapt/bugbounty/programs//api/vapt/analyst/queue//api/it-assets/Asset inventory with assignment, bulk import/export, and acknowledgment workflows.
/api/it-assets/assets//api/it-assets/assets/bulk-import//api/itsm/ITIL service management — change requests, service catalog, and approvals.
/api/itsm/changes//api/itsm/catalog//api/tickets/Helpdesk tickets with comments, attachments, and per-ticket audit logs.
/api/tickets//api/tickets/{id}/add_comment//api/security/Two-factor enrollment, backup codes, and the counter-attack / security monitoring system.
/api/security/2fa/status//api/security/2fa/enable//api/rmm/Remote monitoring & management — network discovery and agent inventory ingest.
/api/rmm/discovered//api/rmm/agent/inventory//api/firewall/Firewall alerts, blocked IPs, and dashboard telemetry.
/api/firewall/blocked-ips//api/firewall/blocked-ips/{id}/unblock//api/phishing/Security-awareness campaigns, target assignments, and campaign lifecycle.
/api/phishing/campaigns//api/phishing/campaigns/{id}/launch//api/compliance/Data-subject requests, consent records, and breach incidents.
/api/compliance/dsr//api/compliance/consent-records//api/network-telemetry/Metric ingest, incidents, and automated response playbooks.
/api/network-telemetry/playbooks//api/network-telemetry/playbooks/{id}/execute//api/reports/Server-generated PDF reports — executive summary, assets, audit logs, and more.
/api/reports/executive-summary//api/reports/assets//api/sso/Enterprise SAML and OIDC provider configuration, plus SCIM token management.
/api/sso/oidc/providers//api/sso/admin/saml//api/audit-trail/Tamper-evident audit history, asset change logs, and correlation alerts (with SIEM export).
/api/audit-trail/asset-history//api/audit-trail/correlation-alerts/Example call
List the first page of tickets in your workspace with a bearer token:
curl https://<workspace>.infronest.com/api/tickets/ \
-H "Authorization: Bearer <access_token>"
200 OK
{
"count": 128,
"next": "https://<workspace>.infronest.com/api/tickets/?page=2",
"previous": null,
"results": [ { "id": 1, "subject": "…", "status": "open", … } ]
}New to the platform? Start with the documentation for workspace setup, roles, and module configuration.
Planning an integration? We’ll walk your team through auth and the endpoints you need.