Overview
The Granite API provides programmatic access to all platform features. It’s a RESTful API with JSON request/response bodies.Base URL
Authentication
- API Key
For server-to-server communication:
API Categories
The API is organized into these categories:| Category | Description | Endpoints |
|---|---|---|
| Authentication | User login, logout, sessions | 7 |
| Organizations | Org management, members | 7 |
| Agent | Agent execution, runs | 8 |
| Automations | Workflow jobs, processes | 7 |
| RPA | RPA execution | 5 |
| Analytics | Metrics and dashboards | 15 |
| API Management | Keys, endpoints | 10 |
| Drivers | Machine management | 6 |
| VM Management | MIG, installation VMs | 16 |
Request Format
All requests should include:Response Format
Successful responses return JSON:Status Codes
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
404 | Not found |
429 | Rate limited |
500 | Server error |
Rate Limits
| Plan | Limit |
|---|---|
| Free | 100 requests/hour |
| Pro | 1,000 requests/hour |
| Enterprise | Custom |
Pagination
List endpoints support pagination:Streaming Endpoints
Some endpoints return Server-Sent Events (SSE):GET /api/agent/run- Agent execution streamGET /api/rpa/run- RPA execution stream
WebSocket Endpoints
Real-time communication:wss://api.getgranite.ai/ws/driver- Driver connectionwss://api.getgranite.ai/api/frontend-ws- Frontend updates
OpenAPI Specification
The complete API specification is available:- Swagger UI:
https://api.getgranite.ai/docs - ReDoc:
https://api.getgranite.ai/redoc - OpenAPI JSON:
https://api.getgranite.ai/openapi.json