Skip to main content

REST API

ION Guard provides a complete REST API for integration with external systems, automations, and custom application development.

Endpoint Reference

The interactive, auto-generated endpoint documentation is available at:

https://<seu-servidor>/docs/api

The reference is automatically generated from the source code via Scramble, ensuring it is always up to date with the installed version.

Overview

AspectDetail
Base URL/api/v1
AuthenticationBearer Token (Laravel Sanctum)
FormatJSON
PaginationCursor-based (limit parameter, default 20, maximum 100)
Rate Limiting60 req/min (user), 5 req/min (auth)
Token validity24 hours (1440 min), configurable via SANCTUM_TOKEN_EXPIRATION
VersioningVia URL prefix (/v1/)

Available resources

  • Tenants — Organization management
  • Sites — Site CRUD
  • Zones — Zone management within sites
  • Alerts — Listing, details, acknowledge, and resolve
  • Events — Domain event history
  • Users — User and permission management
  • Dashboard — Metrics summary by site
  • Audit Logs — Change history
  • Health CheckGET /api/v1/health (no authentication required)

Guides