---
title: "Auth Config Connect"
method: POST
path: "/api/workspace-integrations/{auth_config_id}/connect"
tags: ["workspace-integrations", "workspace-integrations"]
---

# Auth Config Connect

`POST /api/workspace-integrations/{auth_config_id}/connect`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspace-integrations/{auth_config_id}/connect`
- Auth: none declared

Mint an authorize_url for an integration auth config + set double-submit oauth_flow cookie.

Resolves the auth config to OAuth credentials, builds the authorize URL with PKCE,
and returns it along with a secure cookie binding the flow (CSRF defense via double-submit).

The returned authorize_url should be opened in a new browser tab. The provider redirects
to /oauth/callback with code + state. The callback handler validates the state CSRF,
exchanges code for tokens, and persists them.

## Path parameters

- `auth_config_id` integer, required

## Request body

- BodyAuthConfigConnectApiWorkspaceIntegrationsAuthConfigIdConnectPost
  - `template_vars` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
