curl --request POST \
--url https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mcp_server_url": "<string>",
"name": "<string>",
"custom_integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"return_url": "<string>",
"integration_type": "<string>",
"reconnect_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'import requests
url = "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start"
payload = {
"mcp_server_url": "<string>",
"name": "<string>",
"custom_integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"return_url": "<string>",
"integration_type": "<string>",
"reconnect_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_server_url: '<string>',
name: '<string>',
custom_integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
return_url: '<string>',
integration_type: '<string>',
reconnect_instance_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mcp_server_url' => '<string>',
'name' => '<string>',
'custom_integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'return_url' => '<string>',
'integration_type' => '<string>',
'reconnect_instance_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'oauth_client_id' => '<string>',
'oauth_client_secret' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start"
payload := strings.NewReader("{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authorization_url": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorize MCP OAuth
Start an OAuth-based connection with a remote MCP server using Dynamic Client Registration. Returns an authorization URL the user must open in a browser; once they grant consent, Duvo creates the matching connection and redirects the browser to the optional returnUrl.
curl --request POST \
--url https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mcp_server_url": "<string>",
"name": "<string>",
"custom_integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"return_url": "<string>",
"integration_type": "<string>",
"reconnect_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
'import requests
url = "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start"
payload = {
"mcp_server_url": "<string>",
"name": "<string>",
"custom_integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"return_url": "<string>",
"integration_type": "<string>",
"reconnect_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth_client_id": "<string>",
"oauth_client_secret": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mcp_server_url: '<string>',
name: '<string>',
custom_integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
return_url: '<string>',
integration_type: '<string>',
reconnect_instance_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
oauth_client_id: '<string>',
oauth_client_secret: '<string>'
})
};
fetch('https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mcp_server_url' => '<string>',
'name' => '<string>',
'custom_integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'return_url' => '<string>',
'integration_type' => '<string>',
'reconnect_instance_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'oauth_client_id' => '<string>',
'oauth_client_secret' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start"
payload := strings.NewReader("{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.duvo.ai/v2/teams/{teamId}/connections/oauth/mcp/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mcp_server_url\": \"<string>\",\n \"name\": \"<string>\",\n \"custom_integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"return_url\": \"<string>\",\n \"integration_type\": \"<string>\",\n \"reconnect_instance_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"oauth_client_id\": \"<string>\",\n \"oauth_client_secret\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authorization_url": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
API key authentication. Get your API key from the Duvo dashboard.
Path Parameters
Body
URL of the MCP server requiring OAuth.
Human-readable name to display for the connection.
1Optional ID of a custom integration this connection should be associated with.
Where to send the user's browser after consent completes. Accepts an absolute URL on a domain Duvo allows, or a path relative to the Duvo frontend (e.g. /integrations/slack).
Optional catalog integration type (e.g. netsuite, asana). When it names a known MCP OAuth catalog integration and mcp_server_url matches that integration's registered server, the connection is treated as a catalog connection; otherwise it requires the custom MCP servers capability.
When set, the OAuth flow will update the existing connection in place rather than creating a new one.
OAuth client ID of a client the user registered on the authorization server themselves (e.g. a NetSuite Integration record). Takes precedence over preregistered credentials and Dynamic Client Registration. Cannot be combined with custom_integration_id. On reconnect, omit to reuse the connection's stored credentials, or provide to replace (rotate) them.
1Client secret for oauth_client_id. Omit for public clients (PKCE-only).
1Response
Default Response
OAuth provider authorization URL to open in a browser
Was this page helpful?