integrations
Usage: deepline integrations [options] [command]
Connect providers and manage named org authorizations.
Options:
-h, --help display help for command
Commands:
list [options] List named org authorizations and their connection status.
balance [options] <provider> Read a fresh balance using this org’s own provider connection (LeadMagic).
connect [options] <provider> Get a dashboard connection link or connect a provider with credentials or OAuth.
sync Show and control CRM syncs into the Customer DB (HubSpot, Salesforce, Attio).
slack Show and manage the workspace's Slack connection (Bot by Deepline).
discover-ad-accounts [options] <provider> Discover and save LinkedIn ad accounts.
get [options] <name> Show a named org authorization, including granted scopes.
reconnect [options] <name> Reconnect a named org authorization.
disconnect [options] <name> Disconnect a named org authorization.
delete [options] <name> Delete a named org authorization.
verify [options] <domain> Verify and enable a Google Workspace Calendar approval.
help [command] display help for command
Explanation:
Purpose:
Set up provider access and manage named org authorizations.
providers lists the catalog; tools calls provider APIs; auth handles Deepline login.
Input and output:
connect <provider> returns the setup modal link. My account is the default;
org admins can choose Org-wide and complete the provider's approval.
list shows org authorization names. get <name> shows one record and
its granted scopes. Use the name as connection in a tool call or Play.
reconnect, disconnect, and delete act on existing org authorizations.
Pass --provider when the same name occurs for more than one provider.
verify <domain> checks an existing Google Admin grant and enables it locally.
sync shows and controls CRM syncs into the Customer DB (see sync --help).
slack install prints the Bot by Deepline install link; slack link <code>,
slack unlink and slack status link your Slack user and show where it is
installed.
Scope changes require provider approval; a Play's connection selection
cannot expand granted access.
SDK:
client.integrations exposes list, get, connect, reconnect, disconnect,
delete, verify, members, and discoverAdAccounts. Connection lifecycle
methods accept dryRun and preserve the same ID/revision checks used by the CLI.
Cost:
These management commands do not spend Deepline credits.
Examples:
deepline integrations connect google_calendar_availability
deepline integrations list --json
deepline integrations get deepline.com --json
integrations balance
Usage: deepline integrations balance [options] <provider>
Read a fresh balance using this org’s own provider connection (LeadMagic).
Options:
--json Print the balance and observation timestamp as JSON
-h, --help display help for command
Explanation:
Purpose:
Read the active org's connected LeadMagic account balance.
Output:
Provider credits, unit, source and observedAt timestamp. --json returns the same fields
as GET /api/v2/integrations/balance?provider=leadmagic.
Every lookup is fresh; no cached balance is returned on failure. Missing or
inactive BYOK connections fail without using a managed account.
Provider credits are separate from Deepline charges. Tool receipts expose
BYOK facts in responseMeta.provider_usage (legacy meta.provider_usage),
including array results. Missing, invalid and conflicting values are null
with an explicit status; zero means the provider reported zero. Native
X-Credits-Cost and X-Credits-Remaining take precedence over body counters.
Cost:
The LeadMagic credit lookup is free. No Deepline credits are charged.
Examples:
deepline integrations balance leadmagic --json
integrations connect
Usage: deepline integrations connect [options] <provider>
Get a dashboard connection link or connect a provider with credentials or OAuth.
Options:
--link Print the one-click link that connects it to this
workspace
--managed Connect with a Deepline-managed key instead of
your own (Lusha)
--accept-terms <version> With --managed: accept this version of the
provider's terms
--company-domain <domain> With --managed: company domain
--company-legal-name <name> With --managed: company legal name
--company-country <code> With --managed: two-letter ISO country code
--credentials-file <path> JSON object of credential field names and string
values; keep this file private
--oauth Return an OAuth authorization URL
--wait With the link: wait until the provider is
connected, then exit 0
--timeout <seconds> With --wait: give up after this many seconds
(default 900)
--no-open With --wait: print the link instead of opening it
in your browser
--org-default Write the org default even when a workspace is
selected
--preset <id> Server-defined access preset (HubSpot only)
--scopes <scopes> Comma-separated OAuth scopes
--optional-scopes <scopes> Comma-separated optional OAuth scopes
--dry-run Print the proposed setup without saving
credentials or starting OAuth
--json Print JSON without credential values
-h, --help display help for command
Explanation:
Purpose:
Open provider setup or connect provider credentials in the active org.
Setup starts with My account; admins can choose Org-wide in the modal.
Direct credential updates require an org owner or admin.
Input:
With no setup flags, print the dashboard link. --link requests it explicitly.
--link looks up the exact provider id. When a person needs to connect a
provider, use the command printed by deepline describe <tool-id> or look up
the tool's provider field. Give them the returned link and tell them to
select the intended org in the dashboard.
The link opens that provider's setup without starting OAuth or saving anything.
--credentials-file <path> saves a private JSON object of credential strings.
A provider that takes one API key reads {"api_key": "..."}; a file with one
field is accepted whatever the field is named. A multi-field provider (for
example a warehouse) rejects a missing field and lists its accepted field
names in the error.
--oauth prints an authorization URL. Open it in a browser signed into the
same Deepline org and finish provider consent.
Credentials and OAuth write the selected workspace's own connection when a
workspace is selected (global --workspace, DEEPLINE_WORKSPACE_ID, or the one
saved with deepline org workspace set); other workspaces keep theirs. With
no workspace selected they write the org default, which every workspace
without its own connection uses. --org-default writes the org default even
when a workspace is selected. --managed keys are org-wide, so inside a
selected workspace --managed requires --org-default.
Slack, in a workspace with one Slack connection (the slack-via-bot
rollout): with no setup flags, prints the link that adds Bot by Deepline to
a Slack workspace (owners and admins; it works once, for 15 minutes). Bot by
Deepline is then the workspace's Slack connection for that Slack
workspace: Plays' Slack actions and Slack cards with buttons send as it
(a card is posted, updated and clicked through one app), a reply in the
thread of a message a Play sent is recorded on the run (deepline runs
replies) and copied to the run's outcome, and the old Slack connection for
that Slack workspace is retired. Through the bot a Play's slack_api_call
may use only chat.postMessage, chat.update, chat.delete, chat.getPermalink,
reactions.*, the file upload methods, users.info, users.lookupByEmail,
conversations.info, and conversations.replies for a thread a Play started.
Invite the bot to each channel a Play posts in. --oauth, --credentials-file
and the other setup flags fail with this instruction there; --link still
prints the dashboard link. Elsewhere Slack connects as below. deepline
integrations slack status shows the state and which one Plays use.
HubSpot: --preset read-crm, update-crm, marketing, sales-sequences, tickets, or all.
all requests every supported capability, including write and admin access.
For custom access use comma-separated --scopes and --optional-scopes instead
of --preset. --scopes must be nonempty; an empty --optional-scopes string
requests no optional scopes. Scope names and presets
are validated by the server; requested access may differ from granted access.
Output:
Link: dashboard URL, or {provider, connect_url} with --json. Share connect_url
with the org owner or admin who will finish setup in the browser.
Credentials: confirmation naming the workspace written, without secret
values; {provider, credential_saved, team_id} with --json (team_id null is
the org default).
Slack through Bot by Deepline: the install link, or {provider,
connect_url, install_url, expires_at, scopes} with --json. This does not
confirm a completed install; the browser must approve it in Slack.
OAuth: URL and the workspace it connects, or {provider, redirect_url,
team_id} with --json. This does not confirm a completed connection. The
browser must finish authorization.
--dry-run prints the proposed setup without starting OAuth, reading secret
file contents, or saving credentials.
Cost:
Does not spend Deepline credits.
Examples:
deepline integrations connect hubspot --link --json
deepline integrations connect slack
deepline integrations connect heyreach --credentials-file ./heyreach.json
deepline --workspace <workspace-id> integrations connect heyreach --credentials-file ./heyreach.json
deepline integrations connect heyreach --credentials-file ./heyreach.json --org-default
deepline integrations connect hubspot --oauth --preset read-crm
deepline integrations connect lusha --managed --accept-terms 2026-05-01 --company-domain acme.com --company-legal-name "Acme Inc." --company-country US
integrations sync
Usage: deepline integrations sync [options] [command]
Show and control CRM syncs into the Customer DB (HubSpot, Salesforce, Attio).
Options:
-h, --help display help for command
Commands:
status [options] [provider] Show each CRM sync’s state, or one provider’s, as the Integrations list shows it.
objects [options] <provider> List one provider’s synced objects and each one’s health, as the sync page does.
on [options] <provider> Turn a provider’s sync on; the first time, it sets up its objects.
off [options] <provider> Turn a provider’s sync off; synced data stays in the Customer DB.
pause [options] <provider> <objects...> Pause syncing the named objects, e.g. tickets; the rest keep syncing.
resume [options] <provider> <objects...> Resume syncing the named paused objects.
run [options] <provider> [objects...] Sync now: every synced object (paused ones run once), or only the named ones. The sync must be on.
help [command] display help for command
Explanation:
Purpose:
Show and control the CRM syncs that copy HubSpot, Salesforce and Attio
objects into the org's Customer DB. Same state and controls as the
dashboard sync page (Integrations > Sync).
Input and output:
status lists each provider's state, as the Integrations list shows it;
status <provider> shows one. objects <provider> lists its synced objects.
on <provider> and off <provider> turn its whole sync on or off.
pause <provider> <objects...> and resume <provider> <objects...> stop or
restart individual objects (for example tickets) while the rest sync.
run <provider> [objects...] syncs now instead of waiting for the schedule.
Object names are the object column of objects <provider>.
States:
off: the sync is turned off; nothing is copied.
starting: turned on; its first setup run is in progress.
on: turned on and every active object synced on schedule.
needs_attention: turned on, but objects failed, are overdue, have never
synced, are all paused, setup failed, or the Customer DB is
unavailable. reason and label say which.
unknown: turned on, but no sync has recorded its status yet; the next
scheduled check records it.
An object is overdue when its scheduled run is more than 20 minutes late.
SDK:
client.integrations.sync exposes status, get, objects, set, pause, resume
and run.
Cost:
These commands do not spend Deepline credits. Syncing reads from the
provider's API under the org's connection.
Examples:
deepline integrations sync status --json
deepline integrations sync on hubspot
deepline integrations sync pause hubspot tickets quotes
integrations sync status
Usage: deepline integrations sync status [options] [provider]
Show each CRM sync’s state, or one provider’s, as the Integrations list shows
it.
Options:
--json Print the sync state as JSON
-h, --help display help for command
Explanation:
Purpose: Show CRM sync state, as the Integrations list shows it.
Input: no provider for every CRM; a provider (hubspot, salesforce, attio) for
one.
Output: state (off, starting, on, needs_attention, unknown), reason, label
(the Integrations list text), sync_enabled, last_success_at, connector_status
(healthy, error, unknown as the sync last recorded it) and object counts:
total, active, paused, failed, backfilling, scheduled, never_synced, and
overdue (none, some or all scheduled objects past due). Counts come from the
last recorded sync check, overdue from the current time, so a sync that
stopped running still reads as overdue. objects is null when the sync is off
or nothing is recorded yet. This command never reads the Customer DB.
--json prints GET /api/v2/ingestion/sync-status (one provider's entry
with a provider).
Cost: Does not spend credits.
integrations sync objects
Usage: deepline integrations sync objects [options] <provider>
List one provider’s synced objects and each one’s health, as the sync page does.
Options:
--json Print the state and every object as JSON
-h, --help display help for command
Explanation:
Purpose: List one provider's synced objects, as the sync page does.
Input: hubspot, salesforce or attio.
Output: the provider's state and every object: object_type, status, health
(healthy, paused, last_sync_failed, sync_overdue, no_successful_sync),
frequency, next run, last success and last error, read from the Customer DB.
Reads every page. Fails when the Customer DB read fails.
--json prints the state and all objects from
GET /api/v2/ingestion/providers/<provider>/sync.
Cost: Does not spend credits.
integrations sync on
Usage: deepline integrations sync on [options] <provider>
Turn a provider’s sync on; the first time, it sets up its objects.
Options:
--json Print the change and the resulting state as JSON
-h, --help display help for command
Explanation:
Purpose: Turn a provider's CRM sync on.
Input: hubspot, salesforce or attio. The org must have it connected and a
Customer DB. The first time, Deepline creates its default objects and starts
a setup run (state starting); later, paused objects resume.
Output: the change counts and the provider's resulting sync state.
Cost: Does not spend credits.
integrations sync off
Usage: deepline integrations sync off [options] <provider>
Turn a provider’s sync off; synced data stays in the Customer DB.
Options:
--json Print the change and the resulting state as JSON
-h, --help display help for command
Explanation:
Purpose: Turn a provider's CRM sync off.
Input: hubspot, salesforce or attio. Every object stops syncing; data already
in the Customer DB stays.
Output: the change counts and the provider's resulting state (off).
Cost: Does not spend credits.
integrations sync pause
Usage: deepline integrations sync pause [options] <provider> <objects...>
Pause syncing the named objects, e.g. tickets; the rest keep syncing.
Options:
--json Print the change and the resulting state as JSON
-h, --help display help for command
Explanation:
Purpose: Pause individual objects while the rest of the sync continues.
Input: the provider and one or more object names from objects <provider>.
An unknown object name fails (exit 4) and lists the synced objects. To stop
the whole sync use off.
Output: pausedCount and the provider's resulting state.
Cost: Does not spend credits.
integrations sync resume
Usage: deepline integrations sync resume [options] <provider> <objects...>
Resume syncing the named paused objects.
Options:
--json Print the change and the resulting state as JSON
-h, --help display help for command
Explanation:
Purpose: Resume individual paused objects.
Input: the provider and one or more object names from objects <provider>.
An unknown object name fails (exit 4). Resuming does not turn on a sync
that is off; use on.
Output: resumedCount and the provider's resulting state.
Cost: Does not spend credits.
integrations sync run
Usage: deepline integrations sync run [options] <provider> [objects...]
Sync now: every synced object (paused ones run once), or only the named ones.
The sync must be on.
Options:
--json Print the change and the resulting state as JSON
-h, --help display help for command
Explanation:
Purpose: Sync now instead of waiting for the schedule.
Input: the provider, and optionally object names; with none, every synced
object, paused ones included, as the sync page's Run all now does. The sync
must be on (exit 7 with SYNC_OFF otherwise). A paused object runs once and
stays paused.
Output: queuedCount and the provider's resulting state.
Cost: Does not spend Deepline credits; reads the provider's API.
integrations slack
Usage: deepline integrations slack [options] [command]
Show and manage the workspace's Slack connection (Bot by Deepline).
Options:
-h, --help display help for command
Commands:
install [options] Add Bot by Deepline to a Slack workspace
(owners and admins): opens Slack's
approval page in your browser. With
--wait, returns once the install is
done.
channel [options] Wait while you pick an outcome's Slack
channel: invite the bot there in Slack
and pick the outcome when it asks.
Returns once the outcome has its
channel.
link [options] <code> Say which Slack user you are, with the
code from the link the agent showed you
in Slack. Your clicks there (answering
an ask, connecting a channel) are then
made as you.
unlink [options] Forget which Slack user you are in this
workspace. Your clicks in Slack decide
nothing until you link again.
status [options] Show what Plays send Slack messages
with, where Bot by Deepline is
installed, and what became of the old
Slack connection.
channels [options] List the Slack channels Bot by Deepline
is in that you may pick for an outcome
(a private one only if you are in it).
retire-old [options] Retire the old Slack connection Bot by
Deepline replaced again, once whatever
kept it (waiting button cards) is done
(owners and admins).
disconnect [options] <slack-team-id> Take Bot by Deepline out of one Slack
workspace: its token is revoked in
Slack, then forgotten (owners and
admins).
help [command] display help for command
Explanation:
Purpose: The workspace's Slack connection: Bot by Deepline
(@Deepline). Channels are set per outcome in the outcome spec (channels,
mainChannel), not here.
Which command: integrations slack install opens Slack's approval page in
your browser (owners and admins; --no-open prints the link instead): pick the
Slack workspace and approve; it works once, for 15 minutes. The outcome page's
Add to Slack button starts the same install. With --wait it returns once Slack
reports the install (exit 7 at --timeout, default 600 s), so an agent carries
on by itself. integrations slack channel --outcome <name> --wait says how
to give an outcome its channel (/invite the bot there, then pick the outcome)
and returns once it has one. Each Slack
workspace gets its own encrypted bot token; one already connected to another
Deepline workspace is refused. integrations slack status shows the
connection's state, where the bot is installed and what Plays send Slack
messages with. integrations slack channels lists the channels the bot is
in that you may pick for an outcome. integrations slack link <code> says which Slack user you
are, with the code (or whole link) the agent showed you in Slack; your
clicks there are then made as you. integrations slack unlink forgets it.
retire-old retires the old Slack connection again once whatever kept it is
done. integrations slack disconnect <slack-team-id> takes the bot out of
one Slack workspace.
States, for each Slack workspace the bot is in (with the slack-via-bot
rollout), defined once and used by Plays, the Integrations page and this
command:
connected: installed for this workspace, not removed or revoked, its
token passes Slack's auth.test (checked at most once a minute), and every
scope Deepline asks for is granted.
needs_reinstall: working but missing scopes (listed); install it again.
disconnected: removed from Slack, its token revoked, or the token no
longer passes auth.test; install it again.
not_installed: never installed for this workspace.
Output (JSON): install: installUrl, redirectUri, scopes, expiresAt. link:
linked, created, slackTeamId, slackUserId. unlink: removed. Never a token.
Cost: Does not spend credits.
integrations slack install
Usage: deepline integrations slack install [options]
Add Bot by Deepline to a Slack workspace (owners and admins): opens Slack's
approval page in your browser. With --wait, returns once the install is done.
Options:
--wait Wait until Slack reports it installed, then exit 0
--timeout <seconds> With --wait: give up after this many seconds, exit 7
(default 600)
--no-open Print the link instead of opening the browser
--json Emit JSON output
-h, --help display help for command
integrations slack channel
Usage: deepline integrations slack channel [options]
Wait while you pick an outcome's Slack channel: invite the bot there in Slack
and pick the outcome when it asks. Returns once the outcome has its channel.
Options:
--outcome <name> The outcome the channel is for
--wait Wait until the outcome has its channel, then exit 0
--timeout <seconds> With --wait: give up after this many seconds, exit 7
(default 600)
--json Emit JSON output
-h, --help display help for command
integrations slack link
Usage: deepline integrations slack link [options] <code>
Say which Slack user you are, with the code from the link the agent showed you
in Slack. Your clicks there (answering an ask, connecting a channel) are then
made as you.
Arguments:
code The code from the link, or the whole link
Options:
--json Emit JSON output
-h, --help display help for command
integrations slack unlink
Usage: deepline integrations slack unlink [options]
Forget which Slack user you are in this workspace. Your clicks in Slack decide
nothing until you link again.
Options:
--json Emit JSON output
-h, --help display help for command
integrations slack status
Usage: deepline integrations slack status [options]
Show what Plays send Slack messages with, where Bot by Deepline is installed,
and what became of the old Slack connection.
Options:
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose: Show the workspace's Slack connection.
Output: its state (see deepline integrations slack --help), each Slack
workspace Bot by Deepline is in with its state, what Plays send Slack
messages with (Bot by Deepline, the old Slack connection until the
workspace reconnects, or nothing), old Slack connections still active, and
what became of each old connection the bot replaced: retired (Deepline
dropped it; nothing is revoked in Slack), or kept and why: something still
uses it (a Slack card with buttons still waiting, a Slack notification), it
connects another Slack workspace than the bot, or Slack would not say which
it connects. While an old connection for another (or an unknown) Slack
workspace is kept, Plays stay on it: a workspace never sends through another
Slack workspace's bot. Never a token. In a workspace without the rollout it
says Slack connects the old way, and lists where Bot by Deepline is
installed (installations[] {teamId, teamName, status, installedAt,
uninstalledAt, uninstallReason}).
--json prints GET /api/v2/integrations/slack/connection: {via_bot,
state, missing_scopes, plays_send_with, workspaces, old_connections,
reconnected_slack_team_id, retirements}.
Cost: Does not spend credits.
integrations slack channels
Usage: deepline integrations slack channels [options]
List the Slack channels Bot by Deepline is in that you may pick for an outcome
(a private one only if you are in it).
Options:
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose: List the Slack channels Bot by Deepline is in that you may pick for an outcome's channels.
Output: one line per channel, #name (private) for a private one, grouped by
Slack workspace. A private channel is listed only to a member of it, so link
your Slack user first (deepline integrations slack link). Slack Connect
channels are left out. Empty: invite the bot to a channel in Slack
(/invite @Deepline) and run it again; the list is read from Slack at most
once a minute. Only the default workspace has Slack channels.
--json prints GET /api/v2/outcomes/slack-channels: {installed,
channels[] {id, name, isPrivate, slackTeamId, teamName}}.
Cost: Does not spend credits.
integrations slack retire-old
Usage: deepline integrations slack retire-old [options]
Retire the old Slack connection Bot by Deepline replaced again, once whatever
kept it (waiting button cards) is done (owners and admins).
Options:
--dry-run Print the request without sending it
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose: Retire the old Slack connection Bot by Deepline replaced, again.
Input: none. Owners and admins. Run it once whatever kept the old
connection is done (its waiting button cards answered). Only old
connections for the same Slack workspace as the bot are retired. Deepline
drops them and revokes nothing in Slack (an old-app token is shared by every
Deepline workspace connected to that Slack workspace, and your own bot token
is your own app's).
Output: retired and kept counts; status says why each is kept.
--dry-run prints the request without sending it.
--json prints POST /api/v2/integrations/slack/connection
{"action": "retire_old"}: {status, retired, kept}.
Cost: Does not spend credits.
integrations slack disconnect
Usage: deepline integrations slack disconnect [options] <slack-team-id>
Take Bot by Deepline out of one Slack workspace: its token is revoked in Slack,
then forgotten (owners and admins).
Arguments:
slack-team-id The Slack workspace id (T…), as integrations slack status lists
it
Options:
--dry-run Print the request without sending it
--json Emit JSON output
-h, --help display help for command
Explanation:
Purpose: Take Bot by Deepline out of one Slack workspace.
Input: the Slack workspace id (T…) from deepline integrations slack status.
Owners and admins. Its bot token is revoked in Slack first, which removes
the bot there; Deepline forgets the install only once Slack confirms. Plays
that post through that bot, and the agent there, stop posting until it is
installed again (deepline integrations slack install). Running it again on a
disconnected workspace answers disconnected. If Slack can't confirm the
revoke, nothing is removed and it fails: run it again.
--dry-run prints the request without sending it.
--json prints POST /api/v2/integrations/slack/connection
{"action": "disconnect", "slack_team_id": "T…"}: {status: "disconnected"}.
Cost: Does not spend credits.
integrations discover-ad-accounts
Usage: deepline integrations discover-ad-accounts [options] <provider>
Discover and save LinkedIn ad accounts.
Arguments:
provider Connected ads provider (choices: "linkedin_ads_audiences")
Options:
--dry-run Print the request without contacting the provider
--json Print the discovery result as JSON
-h, --help display help for command
Explanation:
Purpose: Discover and save the ad accounts a connected provider can access in the selected workspace.
Input: google_ads_audiences or linkedin_ads_audiences. Run as an org admin with an active provider connection.
Output: saved ad accounts, their enablement, and the workspace default. Use --json for the full account inventory or --dry-run to print the request without saving.
SDK: client.integrations.discoverAdAccounts(provider)
Cost: Does not spend Deepline credits.
Examples:
deepline integrations discover-ad-accounts google_ads_audiences --json
deepline integrations discover-ad-accounts linkedin_ads_audiences