Integrations

Start a browser sign-in

Changed on

Starts connecting a system that needs a person's consent at the provider (Gmail, Google Drive, Outlook, OneDrive, SharePoint, Microsoft Teams, Notion, HubSpot, Dropbox, Slack, Google Sheets).

  1. The call returns authorize_url, a Talonic page.
  2. The same person the credential acts for opens it in a browser where they are signed in to Talonic in this workspace, confirms, and completes the provider's sign-in.
  3. Poll GET /v1/integrations/authorizations/{id} until status is connected, failed, expired or cancelled. A connected source carries connection_id.

The handoff expires 30 minutes after it starts. Reconnecting is another authorize; revoking a connection is DELETE /v1/sources/{id}. Who may connect what, and the private-by-default rule, are the same as in the app. send applies to Gmail and Outlook only; organize to Outlook only; intake to Gmail, Outlook, Notion and Slack only. A connector that is not connected through a sign-in answers 404 (GET /v1/integrations/connectors lists how each connects); one this deployment does not offer answers 503. A key that belongs to no person (one created before keys named their creator) is refused with 403.

Scope: sources:write. A key holding only the legacy write scope does not satisfy it.

post/v1/integrations/{connector}/authorize

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

connector, string required

Connector slug from GET /v1/integrations/connectors with method: authorize.

Request body

object required
send, boolean

Gmail and Outlook: the mailbox may also send mail (for delivery by mail).

organize, boolean

Outlook: processes may also organise the mailbox (move mail into folders, set categories, write reply drafts). Nothing is sent by this.

intake, object

First-read choices applied the moment the connection exists, in the shape PATCH /v1/sources/connections/{id}/intake takes.

Response

The pending handoff with its authorize_url.

IntegrationAuthorization required
id, string uuid required
object, 'integration_authorization' required
connector, string required
kind, 'source' | 'destination' required
status, 'pending' | 'connected' | 'failed' | 'expired' | 'cancelled' required

pending until the person finishes or abandons the sign-in.

authorize_url, string uri nullable

The Talonic page the person opens to confirm and sign in; set while pending only.

expires_at, string date-time required

30 minutes after the handoff started.

created_at, string date-time
completed_at, string date-time nullable
connection_id, string uuid nullable

The source connection, once connected.

destination_id, string uuid nullable

Google Sheets: the destination made from this sign-in.

account, object nullable

The provider account that signed in.

error, object nullable

Why it failed; set when failed only.

links, object required

Changes