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?coming_soon= on the dashboard merges preview rows; the plain list covers the live set.
Request
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/connectintegrations:write scope; a one-time audit event records who started the flow.
Request
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}/statusmetadata, 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
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}/featuresaudience (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
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}/syncintegrations:write scope; a failed upstream trigger answers 502 SYNC_TRIGGER_FAILED.
Request
GET /api/v1/integrations/{id}/data?model=contactsmodel 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 sameX-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/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-environment7. Sync states worth polling
Thestatus 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
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
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
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
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
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
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 anauth_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.
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.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/integrationsconnected 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}/datamodel (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.
Get an integration’s feature preference flags
GET /api/v1/integrations/{id}/featuresGet connection and sync status for an integration
GET /api/v1/integrations/{id}/statusconnected: false with an empty sync list rather than an error, so the Settings tab can render a disconnected state cleanly.
List the available integration catalog
GET /api/v1/integrations/catalog?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?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/callbackstate, 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/startstate 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(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/channelsconnected: 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/callbackstate, 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/startauthorize_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/nangoInvoke a named action on an integration
POST /api/v1/integrations/{id}/actions/{name}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.
Trigger an immediate data sync for an integration
POST /api/v1/integrations/{id}/syncsync_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.
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/connectintegration_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/requestsCreate a Segment inbound source
POST /api/v1/integrations/segment/sourcesintegrations:write scope and an owner/admin role.
Rotate a Segment source’s inbound secret
POST /api/v1/integrations/segment/sources/{id}/rotate-secretintegrations:write scope and an owner/admin role. Returns 404 when the Source does not exist.
Send a test event to a Segment source
POST /api/v1/integrations/segment/sources/{id}/testidentify 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.
Receive a Calendly webhook event
POST /api/v1/integrations/webhooks/calendly?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/hubspotX-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/intercomNango webhooks
POST /api/v1/integrations/webhooks/nangoSalesforce webhooks
POST /api/v1/integrations/webhooks/salesforceSegment webhooks
POST /api/v1/integrations/webhooks/segmentShopify webhooks
POST /api/v1/integrations/webhooks/shopifySlack webhooks
POST /api/v1/integrations/webhooks/slackConnect woocommerce
POST /api/v1/integrations/woocommerce/connectUpdate an integration’s feature preference flags
PATCH /api/v1/integrations/{id}/featuresPin the Slack channel Orbit posts notifications to
PATCH /api/v1/integrations/slack/notifications-channel{ "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}/disconnectDisconnect an integration connection by key
DELETE /api/v1/integrations/connections/{uniqueKey}Delete a Segment inbound source
DELETE /api/v1/integrations/segment/sources/{id}integrations:write scope and an owner/admin role. Returns 404 when no Source with that id exists for the tenant.
Delete disconnect
DELETE /api/v1/integrations/woocommerce/disconnect