talonic_integrations_connect
Start connecting an account through a browser sign-in. Returns authorize_url, id (the authorization id) and expires_at (30 minutes). Give the user the link: they must open it in a browser while signed in to Talonic, in this workspace, as the same person this connection acts for, then confirm and finish the provider's sign-in. Nothing is connected until they do. Then call talonic_integrations_connect_status with the id until status is connected, failed, expired or cancelled. Only for connectors whose method is authorize (talonic_integrations_connectors). Optional: send (gmail, outlook: the mailbox may also send mail), intake (gmail, notion, slack: what to read first). Connecting the same account again renews the existing connection. Personal connections (mailboxes, notes, a person's own drive) show their content only as the connecting person's access allows; other people in the workspace may see the connection without its content. Errors: 503 connector_not_configured (not offered on this deployment), 403 with a reason (missing consent or permission). NOT FOR S3, Azure Blob, SQL, Kendox, Granola or upload links: they need credentials, which never pass through an agent conversation.
Availability
Listed when the session can read the workspace's sources (sources:read on a connector session); connecting, importing and sync settings need sources:write. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| connector * | string | Connector slug with method authorize, e.g. gmail, google-drive, sharepoint |
| send | boolean | gmail, outlook only: the mailbox may also send mail |
| intake | object | gmail, notion, slack only: what to read first |
Example
// talonic_integrations_connect({ "connector": "google-drive" })
{ "id": "2222…", "object": "integration_authorization", "connector": "google-drive", "status": "pending", "authorize_url": "https://app.talonic.com/…", "expires_at": "2026-11-25T12:30:00Z", "instructions": "Ask the user to open authorize_url …" }Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.
Frequently asked questions
Can the agent connect a source that needs a password or key?+
POST /v1/sources/connections/<type> and POST /v1/sources/:id/keys.What if the connector is not offered?+
connector_not_configured; talonic_integrations_connectors shows available: false for it.