REST API v1 · Resource
Integrations
Read each integration’s status, sync it, change its settings and messages, and disconnect it.
API reference · Integrations
Endpoints
Paths are relative to https://fliok.com/api/v1. Each endpoint names the scope and the lowest key role it needs; a key without them gets 403 (see Authentication).
Integrations
7- GET
/integrationsEvery connector your Integrations page shows — Shopify, WooCommerce, WordPress, HubSpot, Zoho, Google Sheets, Instagram, Razorpay, Meta ads and catalog, Facebook Lead Ads, lead sources, the API — with whether it is connected or needs attention, the account, its last activity and a connectUrl. Never a tokenScopeintegrations:read· viewer role or higherNeeds an API key - GET
/integrations/{key}One connector with what its dashboard popup shows: settings, counts and recent errors, or the stores and WordPress sites behind it. facebook-lead-ads: the Pages leads come in through, the forms seen, leads in 30 days, the last lead and recent errorsScopeintegrations:read· viewer role or higherNeeds an API key - POST
/integrations/{key}/syncThe dashboard’s “Sync now” for HubSpot ({ backfill } sends existing leads), Zoho CRM and Google Sheets ({ action }). Same plan gates and allowance as the button; others answer not_syncableScopeintegrations:manage· admin role or higherNeeds an API key - PATCH
/integrations/{key}/settingsChange what a person can change in the connector’s popup — HubSpot, Zoho CRM, Google Sheets streams. Strict: tokens and secrets are never acceptedScopeintegrations:manage· admin role or higherNeeds an API key - GET
/integrations/{key}/messagesshopify / woocommerce: the store’s WhatsApp messages — order events, COD confirmation, abandoned carts, order statuses, tracking, refunds, payment reminders, reviews, back in stock, the team’s alert — with each template and mapping, and the approved templates to choose fromScopeintegrations:read· viewer role or higherNeeds an API key - PATCH
/integrations/{key}/messagesChange a store’s WhatsApp messages, only what is sent. Approved templates only; turning anything on follows the plan, as in the dashboardScopeintegrations:manage· admin role or higherNeeds an API key - DELETE
/integrations/{key}Disconnect HubSpot, Zoho, Google Sheets, Shopify, WooCommerce, a WordPress site (?account=), Instagram, Razorpay, WhatsApp Pay, the Conversions API or the Meta ad account — as the dashboard does, audit-logged. Connecting stays in the dashboardScopeintegrations:manage· admin role or higherNeeds an API key
Rate limits
These endpoints have no row of their own in the rate-limit table.
Every limit, the RateLimit-* headers and what to do on a 429: Rate limits.