Back to Docs
API Reference5 min read
API Quickstart
Get started with the Gravitre API in minutes. Learn how to authenticate, make your first request, and integrate with your applications.
Authentication
All API requests require authentication using an API key. Generate your API key from the dashboard under Settings > API Keys.
curl -X GET "https://api.gravitre.app/v1/workflows" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Your First Request
Let's create a simple workflow using the API. This example creates a workflow that triggers daily and syncs data between two systems.
const response = await fetch('https://api.gravitre.app/v1/workflows', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Daily Data Sync',
trigger: { type: 'schedule', cron: '0 9 * * *' }
})
});