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:
connections:
outreach:
- name: "outreach"
s2s_app_id: "your_s2s_guid"
install_id: "your_install_id"
private_key: "base64_encoded_pem"OAuth refresh-token credentials:
connections:
outreach:
- name: "outreach"
client_id: "your_client_id"
client_secret: "your_client_secret"
refresh_token: "your_refresh_token"A pre-obtained access token:
connections:
outreach:
- name: "outreach"
access_token: "your_access_token"s2s_app_id,install_id,private_key: S2S credentials.private_keyis 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 readstages,sequence_steps, oropportunity_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 tohttps://api.outreach.io/api/v2.token_url(optional): The OAuth token URL. Defaults tohttps://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:
name: public.outreach_prospects
type: ingestr
parameters:
source_connection: outreach
source_table: 'prospects'
destination: postgresname: The name of the asset.type: Set toingestr.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 examplepostgres.
Step 3: Run asset to ingest data
bruin run assets/outreach_ingestion.ymlAvailable Source Tables
| Table | Primary Key | Incremental Key | Incremental Strategy | Details |
|---|---|---|---|---|
prospects | id | updatedAt | merge | People you sell to; soft-deleted prospects carry trashedAt |
accounts | id | updatedAt | merge | Companies; Outreach only lists named accounts |
opportunities | id | updatedAt | merge | Deals; soft-deleted opportunities carry trashedAt |
opportunity_stages | id | updatedAt | merge | Stages an opportunity moves through (OAuth only) |
sequences | id | updatedAt | merge | Sequences (cadences) of steps |
sequence_states | id | updatedAt | merge | A prospect's enrollment in a sequence |
sequence_steps | id | updatedAt | merge | Steps within a sequence (OAuth only) |
mailings | id | updatedAt | merge | Emails sent or scheduled, with their delivery state |
calls | id | updatedAt | merge | Logged calls and their outcomes |
tasks | id | updatedAt | merge | Tasks for users, such as calls and manual emails |
users | id | updatedAt | merge | Outreach users; deactivated users have locked = true |
stages | id | updatedAt | merge | Prospect 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.