Register MCP registry upstream OAuth
Register and administer Forge MCP registry servers and gateway configuration.
POST
/
api
/
headless
/
v1
/
organizations
/
{organizationId}
/
mcp-registry
/
{itemId}
/
oauth
/
register-upstream
Register MCP registry upstream OAuth
curl --request POST \
--url https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream"
payload = {}
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({})
};
fetch('https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream"
payload := strings.NewReader("{}")
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))
}{}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Enter a Forge service-account token or delegated OAuth access token. Mintlify adds the Bearer prefix.
Body
application/json
The body is of type object.
Response
Upstream OAuth DCR or CIMD setup result.
The response is of type object.
⌘I
Register MCP registry upstream OAuth
curl --request POST \
--url https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream"
payload = {}
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({})
};
fetch('https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.forge.ai/api/headless/v1/organizations/{organizationId}/mcp-registry/{itemId}/oauth/register-upstream"
payload := strings.NewReader("{}")
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))
}{}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}