Skip to content

Outreach ​

Outreach is a sales engagement platform for running prospecting sequences, emails, calls, and tasks, and for tracking opportunities.

Bruin supports Outreach as a source for Ingestr assets, and you can use it to ingest prospects, accounts, opportunities, and sequence activity into your data platform.

Configuration ​

Step 1: Add a connection to the .bruin.yml file ​

Outreach accepts three kinds of credentials. Provide exactly one set.

S2S (server-to-server) credentials, best for scheduled loads:

yaml
connections:
    outreach:
        - name: "outreach"
          s2s_app_id: "your_s2s_guid"
          install_id: "your_install_id"
          private_key: "base64_encoded_pem"

OAuth refresh-token credentials:

yaml
connections:
    outreach:
        - name: "outreach"
          client_id: "your_client_id"
          client_secret: "your_client_secret"
          refresh_token: "your_refresh_token"

A pre-obtained access token:

yaml
connections:
    outreach:
        - name: "outreach"
          access_token: "your_access_token"
  • s2s_app_id, install_id, private_key: S2S credentials. private_key is the base64-encoded PEM of the RSA key whose public half you uploaded to the app (base64 -w0 outreach.pem). Provide all three together. S2S can't read stages, sequence_steps, or opportunity_stages; use OAuth credentials for those.
  • client_id, client_secret, refresh_token: An Outreach OAuth application and a refresh token issued to it. Provide all three together. Outreach refresh tokens last 14 days and are replaced on every refresh, so prefer S2S for scheduled loads.
  • access_token: A ready OAuth access token. It expires after about two hours.
  • base_url (optional): The API base URL. Defaults to https://api.outreach.io/api/v2.
  • token_url (optional): The OAuth token URL. Defaults to https://api.outreach.io/oauth/token.

Bruin URL-encodes every value, so the base64 private key can be pasted as-is.

Step 2: Create an asset file for data ingestion ​

Create a YAML file (e.g. outreach_ingestion.yml) inside the assets folder:

yaml
name: public.outreach_prospects
type: ingestr

parameters:
  source_connection: outreach
  source_table: 'prospects'

  destination: postgres
  • name: The name of the asset.
  • type: Set to ingestr.
  • source_connection: The name of the Outreach connection defined in .bruin.yml.
  • source_table: One of the tables below.
  • destination: The destination platform/type, for example postgres.

Step 3: Run asset to ingest data ​

bash
bruin run assets/outreach_ingestion.yml

Available Source Tables ​

TablePrimary KeyIncremental KeyIncremental StrategyDetails
prospectsidupdatedAtmergePeople you sell to; soft-deleted prospects carry trashedAt
accountsidupdatedAtmergeCompanies; Outreach only lists named accounts
opportunitiesidupdatedAtmergeDeals; soft-deleted opportunities carry trashedAt
opportunity_stagesidupdatedAtmergeStages an opportunity moves through (OAuth only)
sequencesidupdatedAtmergeSequences (cadences) of steps
sequence_statesidupdatedAtmergeA prospect's enrollment in a sequence
sequence_stepsidupdatedAtmergeSteps within a sequence (OAuth only)
mailingsidupdatedAtmergeEmails sent or scheduled, with their delivery state
callsidupdatedAtmergeLogged calls and their outcomes
tasksidupdatedAtmergeTasks for users, such as calls and manual emails
usersidupdatedAtmergeOutreach users; deactivated users have locked = true
stagesidupdatedAtmergeProspect stages (OAuth only)

Each row holds the resource's attributes, its relationships as a JSON column, and a column with the related id for every to-one relationship, such as accountId or ownerId.

Incremental behavior and limitations ​

  • Without an interval, every record is loaded. With an interval, the records updated within it are merged by id.
  • Hard-deleted records disappear from the Outreach API, so they stay in the destination. Run a full refresh to drop them.