AdvancedIntegrations

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();
{
  "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 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.

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.

header
X-API-KEYstring
Required

Your Siteglide API key.

header
Account-IDinteger
Required

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();
}

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.

Third-Party App Connections

Beyond Zapier, connect directly via API or native integrations.

Use webhooks to post Siteglide updates to Slack channels.