Skip to content

How Modigie sends HTTP requests to Outreach

Preview

This feature is not subject to our service terms. Pre-GA features are available "as is" and might have limited support.

Under certain conditions, the LiveGTM for Outreach service sends HTTP requests to your Outreach organization. All requests are queued through Cloud Tasks queues exclusive to your Modigie repository, preventing interference with other Outreach users. All configurations and resources for your Outreach organization are also logically isolated in a dedicated namespace.

Use cases

Continuous synchronization

After you authorize the Modigie app, the service continuously queries your Outreach organization for updatedAt timestamp changes in these resources:

  • accounts
  • callDispositions
  • calls
  • prospects
  • users
  • webhooks

The Modigie repository sends queries multiple times daily for each resource type to cover all time slots.

On-demand synchronization

This mode, typically used for call analytics with a dialedAt timestamp before app authorization or to fill gaps in continuous synchronization, queries for calls within a specific time window. If a call references a missing or outdated account, callDisposition, prospect, or user in the repository, a collect task is triggered.

Collect synchronization

This task retrieves missing or outdated account, callDisposition, call, prospect, or user resources referenced by other snapshots.

Managing webhooks

The repository creates webhooks for destroyed actions on:

  • accounts
  • callDispositions
  • calls
  • prospects
  • users
  • webhooks

It also creates a webhook for updated actions on webhooks. The repository recreates or patches its own webhooks if unintentionally modified or deleted. During disconnection, the repository deletes its own webhooks. Modigie does not modify or delete webhooks not created by the connector.

Refreshing tokens

The repository refreshes its access token approximately three times daily using the latest refresh token.

Throttling requests

To respect Outreach quotas, the repository uses two dedicated Cloud Tasks queues:

  • sync-outbound: For regular resource operations.
  • sync-fastlane: For less frequent management tasks like token refreshes. Both queues are configurable to adapt to your needs.

Secure credential handling

The connector uses secure tokens:

  1. Access tokens: Short-lived Bearer tokens, rotated within the repository's encrypted Cloud Firestore database and encrypted in transit.

  2. Refresh tokens: Used to obtain new access tokens, stored and rotated within Cloud Secret Manager and encrypted in transit.

Authenticating requests

The repository uses the latest access token for requests as the AUTHORIZATION header. If unavailable or expired, it uses the refresh token to retrieve a new access token.

Modigie connector signs requests to Outreach

Modigie connector signs requests to Outreach

The diagram shows: (1) enqueuing the request, (2) execution in Cloud Run, (3) accessing the refresh token, (4) retrieving a new access token, and (5) sending the signed request.