Skip to content

Outreach ​

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

ingestr supports Outreach as a source.

URI format ​

plaintext
# S2S (server-to-server) credentials, best for scheduled loads
outreach://?s2s_app_id=<s2s_guid>&install_id=<install_id>&private_key=<base64_pem>

# OAuth refresh-token credentials
outreach://?client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>

# A pre-obtained access token (expires after ~2 hours)
outreach://?access_token=<access_token>

URI parameters:

  • s2s_app_id, install_id, private_key: S2S credentials. s2s_app_id is your app's S2S GUID, install_id identifies the app's installation in your organization, and private_key is the base64-encoded PEM of the RSA key whose public half you uploaded to the app. ingestr signs a new one-hour token with the key whenever it needs one, so nothing expires. 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: the credentials of your Outreach OAuth application and a refresh token issued to it. ingestr exchanges them for an access token when it connects and refreshes the token again before it expires, so long loads keep working. Provide all three together. Outreach refresh tokens last 14 days and are replaced on every refresh, and ingestr can't save the new one, so a refresh token works for a limited time only. Prefer S2S for scheduled loads.
  • access_token: a ready OAuth access token. Outreach access tokens expire after about two hours, so prefer the refresh-token credentials.
  • 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.

Provide one of: s2s_app_id + install_id + private_key, client_id + client_secret + refresh_token, or access_token.

Getting S2S credentials ​

  1. In the Outreach Developer Portal, add the "API Access (S2S)" feature to your app and select the read scope of each resource you want to load (for example prospects.read). Note the app's S2S GUID.
  2. Generate an RSA key pair and upload the public key to the app:
    sh
    openssl genrsa -out outreach.pem 2048
    openssl rsa -in outreach.pem -pubout -out outreach.pub
  3. Have an Outreach org admin install the app. Outreach passes the installation ID to the app's setup URL or lifecycle webhook; see Obtaining installation ID.
  4. Use base64 -w0 outreach.pem as private_key, URL-encoded, in the ingestr URI.

Getting OAuth credentials ​

  1. In the Outreach Developer Portal, create an app with a redirect URI and the read scope of each resource you want to load (for example prospects.read or users.read).
  2. Open the authorization URL in a browser and approve access as an Outreach user:
    https://api.outreach.io/oauth/authorize?client_id=<client_id>&redirect_uri=<redirect_uri>&response_type=code&scope=<scope1+scope2>
  3. Exchange the code from the redirect for tokens:
    sh
    curl https://api.outreach.io/oauth/token -X POST \
      -d client_id=<client_id> -d client_secret=<client_secret> -d redirect_uri=<redirect_uri> \
      -d grant_type=authorization_code -d code=<code>
  4. Use the refresh_token from the response, with your client_id and client_secret, in the ingestr URI.

The data ingestr can read is limited to what the authorizing user can see in Outreach.

Tables ​

TablePKInc KeyInc 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.
sequencesidupdatedAtmergeSequences (cadences) of steps.
sequence_statesidupdatedAtmergeA prospect's enrollment in a sequence.
sequence_stepsidupdatedAtmergeSteps within a sequence.
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.

Use these as the --source-table parameter in the ingestr ingest command.

Each row holds the resource's id and type, one column per attribute, and the resource's relationships as a JSON column. For every to-one relationship, the related id is also a column named after it, e.g. accountId, ownerId, or sequenceId (account_id, owner_id, sequence_id with the default snake_case naming). A polymorphic relationship like a task's subject can point at different resource types; check relationships for the type.

Without --interval-start / --interval-end, ingestr loads every record. With an interval, it loads the records updated within it and merges them into the destination by id.

Deleted records ​

  • Hard-deleted records disappear from the Outreach API, so ingestr can't remove them from the destination. To drop them, run a --full-refresh load.
  • Soft-deleted prospects and opportunities keep their trashedAt timestamp while Outreach still returns them.

Example ​

Load all prospects into DuckDB:

sh
ingestr ingest \
    --source-uri 'outreach://?client_id=client_123&client_secret=secret_123&refresh_token=refresh_123' \
    --source-table 'prospects' \
    --dest-uri 'duckdb:///outreach.duckdb' \
    --dest-table 'outreach.prospects'

Load the mailings updated in January 2026:

sh
ingestr ingest \
    --source-uri 'outreach://?client_id=client_123&client_secret=secret_123&refresh_token=refresh_123' \
    --source-table 'mailings' \
    --dest-uri 'duckdb:///outreach.duckdb' \
    --dest-table 'outreach.mailings' \
    --interval-start '2026-01-01' \
    --interval-end '2026-02-01'

A date without a time means midnight UTC, and both ends of the interval are inclusive. An end of 2026-02-01 therefore covers all of January 31, plus any record updated exactly at midnight on February 1; merging by id makes that overlap with the next run harmless.