---
title: "Create Connection"
method: POST
path: "/v2/teams/{teamId}/connections"
tags: ["Connections"]
---

# Create Connection

`POST /v2/teams/{teamId}/connections`

## Request

- Base URL: `https://api.duvo.ai`
- URL: `https://api.duvo.ai/v2/teams/{teamId}/connections`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/duvo/apis/duvo-public-api/docs/v2/teams/:teamId/connections/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new user-provided connection (custom MCP server) for the current team. OAuth-based integrations (native) require an interactive browser flow — start them with the dedicated OAuth endpoints (`/v2/teams/:team_id/connections/oauth/native/:provider/start` or `/v2/teams/:team_id/connections/oauth/mcp/start`) instead of calling this endpoint directly.

## Path parameters

- `teamId` string, required

## Request body

- object
  - `name` string, required
  - `server_url` string, uri
  - `type` string
  - `provider` 'user', required
  - `auth_method` 'url' | 'apikey' | 'headers' | 'oauth', required
  - `custom_integration_id` string, uuid
  - `headers` object
    - `plaintext` object
    - `secret` object

## Response `201`

Default Response

- object
  - `id` string, required
  - `name` string, required
  - `type` string, required
  - `provider` string, required
  - `user_id` string, nullable, required
  - `team_id` string, required
  - `server_url` string
  - `transport_type` 'stdio' | 'sse' | 'http'
  - `auth_method` string, nullable
  - `custom_integration_id` string, nullable
  - `icon_url` string, nullable
  - `oauth_provider` string, nullable
  - `oauth_provider_key` string, nullable
  - `oauth_scopes` string[], nullable
  - `has_headers` boolean
  - `has_oauth_tokens` boolean
  - `integration_id` string, nullable
  - `shared` boolean
  - `created_by` string, nullable
  - `broken_at` string, date-time, nullable
  - `broken_reason` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/duvo/apis/duvo-public-api.md) - [All operations](https://skmtc.dev/duvo/apis/duvo-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duvo/apis/duvo-public-api/revisions/dafcf3d868a9?raw)
