Integrations and API
Connect Siteglide to external services and leverage its API for custom workflows.
const response = await fetch('https://api.siteglide.com/v2/1234/items.json?system_name=pages', {
headers: {
'X-API-KEY': 'YOUR_SITEGLIDE_API_KEY',
'Account-ID': '1234'
}
});
const data = await response.json();
curl -X GET \
'https://api.siteglide.com/v2/1234/items.json?system_name=pages' \
-H 'X-API-KEY: YOUR_SITEGLIDE_API_KEY' \
-H 'Account-ID: 1234'
{
"items": [
{
"id": 1,
"name": "Home Page",
"slug": "home"
}
]
}
Overview
Siteglide provides seamless integrations with popular services like Zapier, along with a robust REST API for custom automation. You can sync data between Siteglide and third-party apps, trigger webhooks for real-time updates, and build tailored workflows.
Zapier
Automate workflows with no-code Zapier triggers and actions.
REST API
Access Siteglide data programmatically with full CRUD operations.
Webhooks
Receive real-time notifications for site events.
Third-Party Apps
Connect to tools like Slack, Google Sheets, and more.
Zapier Integration Setup
Zapier lets you connect Siteglide to over 5,000 apps without writing code. Common use cases include syncing form submissions to email tools or updating CRM records.
Start with a free Zapier account. Siteglide supports triggers like new form submissions and actions like creating items.
Create a Zap
Log in to Zapier and click "Create Zap".
Choose Trigger
Select Siteglide as the trigger app and choose an event, such as "New Form Submission".
Connect Account
Authenticate with your Siteglide API_KEY and site ID.
Set Up Action
Choose an action app (e.g., Google Sheets) and map Siteglide data fields.
Test and Publish
Test the Zap and turn it on.
New item created in Siteglide triggers a Slack notification.
New Google Form entry creates a Siteglide item.
API Authentication and Endpoints
Siteglide's REST API uses API key authentication. Generate your key from the Siteglide dashboard under Settings > API.
Keep your API_KEY secure. Use environment variables in production: process.env.SITEGLIDE_API_KEY.
Your Siteglide API key.
Your Siteglide account ID (found in dashboard).
List Items Endpoint
Fetch items from a module, such as pages or blog posts.
const fetch = require('node-fetch');
const API_KEY = process.env.SITEGLIDE_API_KEY;
const ACCOUNT_ID = 1234;
async function getPages() {
const res = await fetch(`https://api.siteglide.com/v2/${ACCOUNT_ID}/items.json?system_name=pages`, {
headers: { 'X-API-KEY': API_KEY, 'Account-ID': ACCOUNT_ID.toString() }
});
return res.json();
}
import requests
API_KEY = 'YOUR_SITEGLIDE_API_KEY'
ACCOUNT_ID = 1234
response = requests.get(
f'https://api.siteglide.com/v2/{ACCOUNT_ID}/items.json?system_name=pages',
headers={'X-API-KEY': API_KEY, 'Account-ID': str(ACCOUNT_ID)}
)
data = response.json()
Webhook Configuration
Webhooks notify your app of Siteglide events like new orders or form submissions.
Generate Webhook URL
Use a service like ngrok for local testing: https://your-webhook-url.com/webhook.
Configure in Siteglide
Go to Settings > Webhooks > Add Endpoint with your URL and events (e.g., item.created).
Handle Payload
Verify signature and process JSON data.
Siteglide signs payloads with HMAC SHA256 using your secret.
const crypto = require('crypto');
const signature = req.headers['x-siteglide-signature'];
const hash = crypto.createHmac('sha256', 'YOUR_WEBHOOK_SECRET')
.update(JSON.stringify(req.body))
.digest('hex');
if (hash !== signature) throw new Error('Invalid signature');
Third-Party App Connections
Beyond Zapier, connect directly via API or native integrations.
Use webhooks to post Siteglide updates to Slack channels.
Pull Siteglide data into Sheets for reporting.
Sync contacts between Siteglide and HubSpot or similar.