Garnet API
Programmatic access to all platform features.Base URL
Quick Start
OpenAPI Spec
Complete OpenAPI 3.0 specification
Authentication
The Garnet API supports multiple authentication methods to suit different use cases:User Authentication
OAuth 2.0 via Auth0 for secure user login and session management.Project Token Authentication
For programmatic access to project resources. Include your project token in the Authorization header:Agent Token Authentication
Limited to agent operations only. Used by Garnet agents to communicate with the platform:Authorization System
The API implements Role-Based Access Control (RBAC) with granular permissions:create
: Create new resourcesread
: View existing resourcesupdate
: Modify existing resourcesdelete
: Remove resourceslist
: List multiple resources
Error Handling
The API returns specific error types based on the resource being accessed:Resource | Error Type | Status Code |
---|---|---|
Agents | UnauthorizedAgent | 401 |
Issues | UnauthorizedIssue | 401 |
Network Policies | UnauthorizedNetworkPolicy | 401 |
Events | UnauthorizedEvents | 401 |
Tokens | UnauthorizedTokenAccess | 401 |
Project Settings | UnauthorizedProjectSetting | 401 |
Rate Limiting
The API implements rate limiting to ensure fair usage:- Authenticated requests: 1000 requests per hour
- Agent requests: 10,000 requests per hour
- Burst limit: 100 requests per minute