What is the SDK?
The@getgraniteai/ts-sdk package provides a type-safe client for the Granite API. It’s auto-generated from our OpenAPI specification.
Features
Type Safety
Full TypeScript types for all requests and responses
Auto-Generated
Always in sync with the latest API
All Endpoints
Access to 110+ API operations
Zero Dependencies
Lightweight, just fetch-based
Quick Start
Available Operations
The SDK exposes all Granite API operations:| Category | Examples |
|---|---|
| Auth | loginUser, getCurrentUser, logoutUser |
| Organizations | createOrganization, listOrganizations |
| Processes | listWorkflowJobs, getWorkflowJob |
| Agent Runs | runAgent, listAgentRuns, cancelAgentRun |
| API Keys | createApiKey, listApiKeys, revokeApiKey |
| Analytics | getBatchedAnalytics, getSuccessRate |
| Drivers | listMachines, registerMachine |