Skip to main content
Languages: every operation supports cURL, Node.js (TypeScript), Python, Go, Ruby, and PHP. The first 15 operations on this page show all six languages; the remaining 22 show cURL and TypeScript — the two most-used.

Integrations API

Integrations endpoints exposed by the Devotel CPaaS API Base path: /api/v1/integrations Endpoint count: 35

title: “Worked request and response samples” description: “The SaaS-connect chain — discover the catalogue, start the OAuth handshake, read back the synced scopes, tune feature toggles — plus the sync pull, the synced-record read-back, the automation-blueprint downloads, and every error class worth branching on.”

Worked request and response samples

Copy a request as written, substitute your own ids, and compare the response envelope. Successful reads and writes return { data, meta }; failures return the { error, meta } envelope, and the retry-vs-surface matrix for every class sits at the bottom of this page. The four calls below are the chain every third-party CRM connection walks: discover what the catalogue offers, start the OAuth handshake, confirm the connection stuck and data is flowing, then trim the capabilities the connection exposes. HubSpot, Salesforce and Pipedrive ride the same rails — pick whichever the customer runs. A hidden catch-up sync exists too: POST /:id/sync with { "sync_name": … } forces a re-pull, and GET /:id/data?model=contacts reads back the synced records. Both are in the generated operation list below; the chain spans them.

1. Discover the catalogue

GET /api/v1/integrations/catalog
Every provider tile the Integrations grid offers is answered here — each row carries the provider’s key, the syncs and actions it advertises, and a status flag so you can gate a roadmap row before you send an operator into an OAuth flow. ?coming_soon= on the dashboard merges preview rows; the plain list covers the live set. Request
Response
Row-level badges come from a different call — GET /api/v1/integrations pages the same providers with the org’s connected flag folded in. Treat status: "coming_soon" as un-connectable and skip the OAuth kickoff for it.

2. Start the OAuth handshake

POST /api/v1/integrations/connect
Starts the connect flow for a catalogue key and returns the provider authorization URL your operator should be sent to. The handler resolves the provider’s own authorize endpoint — there is no connection record to create beforehand; the kickoff is one POST. Owner/admin role plus the integrations:write scope; a one-time audit event records who started the flow. Request
Response
Redirect the operator’s browser to data.auth_url. When the provider callback returns, the connection registers and the next poll of GET /api/v1/integrations/{id}/status flips connected to true — re-fetch with GET /api/v1/integrations/connections?fresh=1 if your page caches connection state.

3. Confirm the connection — scopes and last sync

GET /api/v1/integrations/{id}/status
Reads the connection back after the OAuth redirect: granted provider scopes sit under metadata, and each sync plus its last heartbeat carries the timestamp your data-freshness banner renders. A never-connected or revoked key returns connected: false with an empty syncs list rather than an error, so poll it freely. Request
Response
A PAUSED, STOPPED, ERROR or FAILED status on any sync marks the connection as errored at the fan-out layer (GET /api/v1/integrations/connections), and the dashboard card flips to a warning state — rely on the same classification when you build your own health probe.

4. Tune what the connection exposes

PATCH /api/v1/integrations/{id}/features
Per-tenant capability flags on the connection: audience (list building), crm_context (agent CRM tools), agent_tools, engagement, automation. Unknown keys are rejected with a 422; a disconnected integration returns 409 instead of silently saving a dead override. GET /:id/features returns the same object with every flag defaulted to true before any save. Request
Response
Rotate a connected connection off the same way: DELETE /:id/disconnect, or key-scoped DELETE /connections/{uniqueKey} — for Slack it also flushes the per-tenant bot token before the upstream revoke so no stale events keep landing.

5. Force a sync, then read the records back

POST /api/v1/integrations/{id}/sync
The scheduled cadence is usually enough, but after a big import on the provider side you can force the named sync to run now instead of waiting. The call returns as soon as the run is queued, not when it finishes: poll section 3 for the outcome. Owner/admin role plus the integrations:write scope; a failed upstream trigger answers 502 SYNC_TRIGGER_FAILED. Request
Response
Once that run lands, pull the synced records for one model yourself. The read walks the full record set, not a first page, so the array is the model’s complete current copy.
GET /api/v1/integrations/{id}/data?model=contacts
Request
Response
model is required and is one of the sync names GET /catalog lists for the provider (for HubSpot: contacts, companies, deals). A model the connection does not sync answers 422 VALIDATION_ERROR with error.details.field: "model", the same envelope as the 422 branch in the matrix below; the new 502 SYNC_RECORDS_FAILED class means the integration server failed mid-fetch, so back off and retry rather than treating it as “no records”. If the integration server is not configured the endpoint returns data: [], which reads exactly like a model that has not synced yet — disambiguate with GET /{id}/status.

6. Take the integration further than the API — blueprints and Postman

Every GET below is authenticated with the same X-API-Key and answers application/json with a per-org Content-Disposition filename (for an org slug of acme-corp, orbit-acme-corp.…), so save the body straight to that file. The blueprints are pre-wired to your tenant’s API host: triggers subscribe to the Orbit webhook event catalog and actions call the existing message, contact and verify endpoints.
GET /api/v1/developers/connector/zapier · GET /api/v1/developers/connector/make · GET /api/v1/developers/connector/n8n
Request
Response
/connector/make and /connector/n8n serve the same download for Make (orbit-acme-corp.make-app.json) and n8n (orbit-acme-corp.n8n-nodes.json); import the file into the tool rather than coding against it. Need the machine-readable trigger/action summary without downloading all three? GET /api/v1/developers/connector/catalog is the one inline { data, meta } read of the set. For Postman, the pair is a tenant-scoped collection plus its environment:
GET /api/v1/developers/postman-collection · GET /api/v1/developers/postman-environment
Request
Response
Import the collection and the environment together; the environment carries the base URL and scopes the collection’s requests to your org.

7. Sync states worth polling

The status values GET /{id}/status returns per sync, and what to do with each while you poll: A never-run sync reports last_synced_at: null; the connections fan-out mirrors the same classification in its errored flag, so a health probe of your own can branch on the identical set.

Errors worth branching on

These failures cover the chain above. Each block is a full { error, meta } envelope as the API returns it, and the matrix at the bottom answers retry vs surface for the same classes. For the platform-wide decision table these branches plug into, see the error handling guide.

401 — Unauthorized

A 401 on this page is the bearer key failing before the route ran — it never means the resource is wrong. Rotate the key or re-mint the scoped token; retrying the same request changes nothing.

403 — Forbidden

A 403 means the key authenticated but the operation is gated by scope — check the key’s scopes on the developer page; a 403 is never a data-not-found shape. The connect, feature-flag and disconnect writes additionally require an owner or admin role.

422 — validation or connection-state mismatch

A 422 means the payload did not match the request schema — branch on error.details.field and resend with one of the keys GET /catalog returns instead of blind-retrying the same body. On the features PATCH the validator rejects any key outside audience | crm_context | agent_tools | engagement | automation the same way, and re-saving a feature override the catalogue no longer lists surfaces as a 409 with code INTEGRATION_NOT_CONNECTED (see below) — connect first, then re-apply.

429 — Rate

The Retry-After header and error.details.retry_after are both set on every 429 — resend the SAME request after the lower of the two.

409 — the connection was not there yet

The features PATCH refuses to store an override for a key with no live connection — send the operator through the connect flow (section 2), then re-apply the override. GET /{id}/status tells you whether that has happened without erroring on a false.

60-second retry matrix

8. Connect Intercom — OAuth install and the inbound receiver

Intercom rides the same rails as sections 1–5, with one structural difference: Orbit registers the event subscriptions on the Intercom side itself during the connect handshake, so there is no per-topic registration call for you to make. Start the install. GET /api/v1/integrations/intercom/oauth/start answers, in the standard envelope, with the Intercom authorization URL for your app. Hand that URL to a workspace admin; the install only completes once an admin approves it on the Intercom side. The redirect back. Intercom sends the admin’s browser to GET /api/v1/integrations/intercom/oauth/callback, which verifies the signed state, exchanges the code for a workspace token, registers the webhook topics, and stores the connection:
200
A declined install answers 400 with the standard error envelope; re-run the start call to retry. The inbound receiver. Once connected, Intercom delivers workspace events to POST /api/v1/integrations/webhooks/intercom — the URL Orbit registered during the handshake. Your integration never calls this endpoint; it is documented so you can recognize it in access logs and allow-list it. Every delivery authenticates with X-Hub-Signature: sha1=<hex>, an HMAC-SHA1 over the raw body, and re-deliveries (Intercom retries a notification up to 30 times) no-op on the (topic, notification_id) dedupe — a 200 from the receiver always means “recorded exactly once.” Read-back and re-pull. GET /api/v1/integrations/intercom/status reads the connection back exactly like section 3 (connected, per-sync last_synced_at); POST /api/v1/integrations/intercom/sync forces a re-pull after a big import on the Intercom side instead of waiting for the scheduled cadence. Any write against a workspace that has not completed the handshake answers 409 INTEGRATION_NOT_CONNECTED (matrix above) — connect first, then re-apply.

Slack and Intercom OAuth endpoints

Use the provider-specific OAuth endpoints when you want a branded install button instead of the generic integration connect flow. They return an auth_url (Intercom) or authorize_url (Slack); redirect the signed-in operator’s browser to that URL. The provider redirects back to the matching callback after approval. Do not call the callback from your server: it is a browser redirect target and completes the token exchange and connection setup.
Open the returned URL in the operator’s browser. The provider callback is handled by Orbit; after approval, check the connection with GET /api/v1/integrations/{id}/status. A start request returns 503 when the provider’s OAuth configuration is unavailable. Intercom’s callback returns a 400 error envelope when the install is declined; Slack reports a cancelled install with ok: false.

Segment inbound Source lifecycle

Create a Source for each Segment inbound stream, then use its returned webhook URL and one-time signing secret in Segment. Store the secret when it is returned: the list operation exposes only a masked value, and rotation returns the replacement secret once while invalidating the old one. Send a test event after setup to verify the Source can deliver to Segment. Delete a Source only when you intend to stop accepting its inbound events.
These five endpoints require the integrations:write scope and an owner or admin role for writes. A missing Source returns 404; a test delivery that fails still returns 200, so inspect its ok field rather than relying only on the HTTP status. Use the endpoint reference immediately above for the create request fields and the full response shapes.

List integrations with the org’s connection status

GET /api/v1/integrations
Lists every integration available to the current organization with a connected flag, provider, category and sync names, cursor-paginated. Backs the Settings → Integrations grid. Supports a ?fields= projection to trim the per-item payload, and falls back to a static catalog when the integration server is unreachable so the page always renders.

Retrieve synced records for an integration model

GET /api/v1/integrations/{id}/data
Returns ALL records the integration has synced for the given data model (a required query parameter, e.g. contacts or deals) — the Nango client walks the full /sync/records cursor instead of the single default page. Reads from the integration server’s synced-record store and returns an empty array when it is not configured. Returns 502 when the fetch fails upstream.
string
required
—

Get an integration’s feature preference flags

GET /api/v1/integrations/{id}/features
Returns the per-tenant feature toggles for the integration (audience, crm_context, agent_tools, engagement, automation). Each flag defaults to enabled unless explicitly turned off, so a freshly connected integration exposes all capabilities. Reading is always allowed, even before any preference has been saved.
string
required
—

Get connection and sync status for an integration

GET /api/v1/integrations/{id}/status
Returns whether the integration is connected for the current organization plus its connection metadata and the status of each configured sync. An absent or unwired connection resolves to connected: false with an empty sync list rather than an error, so the Settings tab can render a disconnected state cleanly.
string
required
—

List the available integration catalog

GET /api/v1/integrations/catalog
Returns the live catalog of every integration configured on the integration server, merged with any ?coming_soon= roadmap hints. Each row carries its unique key, provider, display name, logo, status and the syncs and actions it exposes. Cached briefly per pod and fails closed with 503 when the integration server is not configured so the misconfiguration is visible to operators.

List per-integration connection statuses for the org

GET /api/v1/integrations/connections
Returns a per-integration connection summary for the current organization — connected flag, errored flag, last-synced timestamp and granted scopes — fanned out across the catalog (or the subset in ?keys=). Cached for 30s per org; pass ?fresh=1 to bypass the cache right after an OAuth popup closes.

Complete the Intercom OAuth install

GET /api/v1/integrations/intercom/oauth/callback
OAuth redirect target Intercom sends the operator’s browser back to after they authorize the app. Verifies the HMAC-signed state, exchanges the code for a workspace access token, registers the webhook topics, and stores the connection. Intercom calls this endpoint as a top-level browser redirect — your application does not call it directly. A declined install returns a 400 error body.

Start the direct Intercom OAuth install

GET /api/v1/integrations/intercom/oauth/start
Mints an HMAC-signed state token for the organization passed in the state query parameter and returns the Intercom auth_url the dashboard should redirect the operator to. Use this for a branded ‘Install on Intercom’ button instead of the generic Nango connect flow; the raw organization id is never forwarded to Intercom. Returns 503 when Intercom OAuth is not configured.

List Segment inbound sources

GET /api/v1/integrations/segment/sources
Returns the tenant’s configured Segment inbound Sources, each with its masked inbound secret, delivery webhook URL and last-event / last-test status, cursor-paginated on (created_at, id). Backs the Segment integration settings screen. Page with ?limit= and ?cursor=; a limit above the hard cap is clamped rather than rejected. A not-yet-provisioned tenant returns an empty list.

List Slack channels and the current notification channel

GET /api/v1/integrations/slack/channels
Lists the Slack workspace’s public and private channels the bot can post to (archived channels excluded), plus the workspace name and the currently-pinned notification channel. Use this to power a channel picker in the dashboard before calling PATCH /slack/notifications-channel. Returns connected: false with an empty channel list when no Slack workspace is installed, so the client can render a connect-first empty state rather than an error.

Complete the Slack OAuth install

GET /api/v1/integrations/slack/oauth/callback
OAuth redirect target Slack sends the operator’s browser back to after they approve the workspace install. Verifies the HMAC-signed state, exchanges the code for a bot token, and stores the encrypted per-tenant Slack connection. Slack calls this endpoint as a top-level browser redirect — your application does not call it directly. A cancelled install returns 200 with ok: false.

Start the direct Slack OAuth install

GET /api/v1/integrations/slack/oauth/start
Returns the Slack authorize_url the dashboard should redirect the logged-in operator to so they can install Orbit into their own Slack workspace. The organization is read from the authenticated session and pinned into an HMAC-signed state token so the resulting install cannot be replayed against another tenant. Use this to offer a branded “Add to Slack” button instead of the generic Nango connect flow. Returns 503 when Slack OAuth is not configured.

List nango

GET /api/v1/integrations/webhooks/nango

Invoke a named action on an integration

POST /api/v1/integrations/{id}/actions/{name}
Fires an imperative provider action (for example create-contact or log-call) by name on the connected integration, forwarding the request body as the action input. The action name is validated against the provider’s advertised actions. Admin-only (owner/admin). Returns 400 for an unknown action, 404 when no connection exists, and 401 when the stored credentials have expired.
string
required
—
string
required
—

Trigger an immediate data sync for an integration

POST /api/v1/integrations/{id}/sync
Triggers an immediate run of the named sync (sync_name) for the connected integration via the integration server, instead of waiting for its scheduled cadence. Admin-only (owner/admin) and audited. Returns 502 when the trigger fails upstream.
string
required
—

Start a connect flow for an integration

Need this flow in Python, Go, Ruby, or PHP? The Worked sequences section renders this surface’s hero flows in the full six-language group.
POST /api/v1/integrations/connect
Initiates the connect flow for the given integration_id via the integration server and returns the auth_url the client should open for the operator. OAuth providers get the provider’s authorization screen (connect_mode: "oauth_redirect"); API-key, Basic and other credential-based providers get a hosted credential form (connect_mode: "connect_ui") — the operator pastes the key there and the connection is created the same way. A provider that declares connection-config params whose value forms its authorize URL (Shopify, Zendesk and Okta all take a subdomain) must be sent them as connection_config, e.g. { "integration_id": "shopify", "connection_config": { "subdomain": "acme-store" } } — without it the provider’s own redirect cannot be built. Admin-only (owner/admin). Returns 503 when the integration server is not configured or unreachable, and 404 when the provider has no credentials set up yet.

Request a new integration

POST /api/v1/integrations/requests
Records a customer request for an integration Orbit does not yet offer so the team can prioritize the connector backlog, and best-effort notifies the Orbit operators. Send the vendor name plus an optional use case and contact email. The request is always persisted and the created id returned even if the operator notification cannot be sent.

Create a Segment inbound source

POST /api/v1/integrations/segment/sources
Creates a new Segment inbound Source for the tenant and returns its delivery webhook URL plus a freshly generated inbound HMAC secret shown in plaintext exactly once — store it now, it cannot be retrieved again (rotate to issue a new one). Point a Segment webhook destination at the returned URL and sign requests with the secret. Requires the integrations:write scope and an owner/admin role.

Rotate a Segment source’s inbound secret

POST /api/v1/integrations/segment/sources/{id}/rotate-secret
Generates a new inbound HMAC secret for the Segment Source and immediately invalidates the previous one, returning the new secret in plaintext exactly once. Use this if the current secret may have leaked; update your Segment webhook destination with the new value right away, since deliveries signed with the old secret stop verifying. Requires the integrations:write scope and an owner/admin role. Returns 404 when the Source does not exist.
string
required
—

Send a test event to a Segment source

POST /api/v1/integrations/segment/sources/{id}/test
Sends a synthetic identify call to Segment using the Source’s stored write key to verify the connection end-to-end, then records the outcome on the Source’s last-test status. Use it after creating a Source to confirm the write key is valid before relying on it. Requires the integrations:write scope and an owner/admin role. The call returns 200 with ok: false and the provider error when the test event could not be delivered.
string
required
—

Receive a Calendly webhook event

POST /api/v1/integrations/webhooks/calendly
Ingests Calendly v2 scheduling events (invitee created and canceled, no-show, routing-form submission) for the tenant identified by the ?org= query parameter. The Calendly-Webhook-Signature HMAC is the authentication — Calendly calls this endpoint, not your application. Each event is matched to a contact, stored for audit and dedupe, and fanned out as a tenant webhook so downstream automations can react.

Receive a HubSpot webhook event

POST /api/v1/integrations/webhooks/hubspot
Ingests HubSpot v3 CRM events (contact, deal and ticket creation, property changes and deletions) and mirrors them into tenant state so campaign triggers can react in real time. The X-HubSpot-Signature-v3 HMAC is the authentication — HubSpot’s app subscription calls this endpoint, not your application. Events arrive as a batch and re-deliveries are idempotent; the response reports how many were processed, deduplicated or unrecognised.

Intercom webhooks

POST /api/v1/integrations/webhooks/intercom

Nango webhooks

POST /api/v1/integrations/webhooks/nango

Salesforce webhooks

POST /api/v1/integrations/webhooks/salesforce

Segment webhooks

POST /api/v1/integrations/webhooks/segment

Shopify webhooks

POST /api/v1/integrations/webhooks/shopify

Slack webhooks

POST /api/v1/integrations/webhooks/slack

Connect woocommerce

POST /api/v1/integrations/woocommerce/connect

Update an integration’s feature preference flags

PATCH /api/v1/integrations/{id}/features
Merges the supplied feature toggles into the integration’s stored preferences without touching other connection metadata. Only the known feature keys are accepted. Admin-only (owner/admin) and requires the integration to be connected (returns 409 otherwise). Returns the full merged preference set with defaults applied.
string
required
—

Pin the Slack channel Orbit posts notifications to

PATCH /api/v1/integrations/slack/notifications-channel
Pins the Slack channel that every Orbit notification publisher (new conversations, campaign completions, SLA breaches, …) posts to. Body: { "channel_id": "C0123456789" } — a Slack channel id accepted by GET /slack/channels (a public C… or private G… id; names and DMs are rejected with 400). Returns 409 when no Slack workspace is connected. The write is audit-logged; requires an owner/admin role and the integrations:write scope.

Disconnect an integration and revoke its connection

DELETE /api/v1/integrations/{id}/disconnect
Revokes the OAuth connection for the integration and, for Slack, flushes the per-tenant bot token and disables inbound events before the upstream revoke so no live credentials are stranded. Admin-only (owner/admin) and audited. Returns 502 if the revoke fails so the operator can safely retry.
string
required
—

Disconnect an integration connection by key

DELETE /api/v1/integrations/connections/{uniqueKey}
Revokes the integration connection identified by its unique key and drops the org’s cached connection snapshot so the change shows immediately. For Slack it also flushes the per-tenant bot token and disables inbound events first. Admin-only (owner/admin) and audited. Returns 502 if the upstream revoke fails.
string
required
—

Delete a Segment inbound source

DELETE /api/v1/integrations/segment/sources/{id}
Permanently removes the Segment inbound Source with the given id and stops accepting inbound events on its webhook URL. Use this to decommission a Source whose write key or inbound secret you no longer want honored. Requires the integrations:write scope and an owner/admin role. Returns 404 when no Source with that id exists for the tenant.
string
required
—

Delete disconnect

DELETE /api/v1/integrations/woocommerce/disconnect

Worked sequences

The page above trims every operation past the fifteenth to cURL plus TypeScript. This section renders the first hero flow(s) past the cut in the full six-language group, so the operation a pipeline reaches next is copy-paste complete.

Start a connect flow for an integration

Request a new integration