---
title: "Register Connection"
method: POST
path: "/v1/sources/nango/register"
tags: ["sources"]
---

# Register Connection

`POST /v1/sources/nango/register`

Register a new OAuth connection.

Idempotent: returns existing connection if already registered.

## Request body

- RegisterConnectionRequest
  - `workspace_id` string, uuid, required
  - `source_type` 'gmail' | 'notion' | 'google-drive' | 'company-foundation' | 'voice-session' | 'hubspot' | 'pipedrive' | 'google-calendar' | 'attio' | 'personio' | 'slack' | 'manual' | 'interview' | 'gmail-send' | 'msteams-send', required
  - `nango_connection_id` string, required
  - `external_account_id` string, nullable
  - `display_name` string, nullable
  - `is_personal` boolean
  - `assign_to_default_vault` boolean
  - `start_sync` boolean

## Response `201`

Successful Response

- RegisterConnectionResponse
  - `id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `source_type` 'gmail' | 'notion' | 'google-drive' | 'company-foundation' | 'voice-session' | 'hubspot' | 'pipedrive' | 'google-calendar' | 'attio' | 'personio' | 'slack' | 'manual' | 'interview' | 'gmail-send' | 'msteams-send', required
  - `nango_connection_id` string, required
  - `display_name` string, nullable
  - `vault_ids` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
