Build with the
Gravitre API
Programmatically execute AI agents, trigger workflows, and integrate Gravitre into your applications with our RESTful API.
High Performance
Sub-100ms response times with global edge distribution
Secure by Default
OAuth 2.0, API keys, and signed webhooks
Rate Limiting
Generous limits with burst capacity for spikes
Global Infrastructure
Multi-region deployment for low latency
Simple, powerful integration
Execute AI agents with just a few lines of code
import { Gravitre } from '@gravitre/sdk';const client = new Gravitre({ apiKey: process.env.GRAVITRE_API_KEY, orgId: process.env.GRAVITRE_ORG_ID});// Execute a workflowconst run = await client.workflows.execute('wf_lead_sync', {await client.workflows.execute('wf_lead_sync', { parameters: { source: 'salesforce', destination: 'hubspot', syncMode: 'incremental' }});// Poll for completion or use webhooksconst result = await run.waitForCompletion();await run.waitForCompletion();console.log(result.status); // 'completed'console.log(result.status); // 'completed'console.log(result.steps); // Array of step outputsconsole.log(result.steps); // Array of step outputs// [{ name: 'Fetch Data', status: 'completed', output: {...} }, ...]API Endpoints
Full reference/api/workflows/{id}/executeCore/api/workflows/api/workflows/{id}/builder/api/workflows/{id}/dry-runCore/api/runs/{id}/api/runs/{id}/approve/api/connectors/api/connectors/{id}/sync/api/metrics/overview/api/operator/action-planAIOfficial SDKs
Type-safe clients for your favorite languages
Webhooks
Receive real-time notifications when runs complete, workflows trigger, or errors occur. All webhooks are signed for security.
Configure webhooksAuthentication
Secure API access with scoped API keys or OAuth 2.0. Fine-grained permissions let you control exactly what each integration can access.
Authentication guideRate Limits
Generous limits designed for production workloads
Ready to build?
Get your API key and start integrating Gravitre in minutes.