Register OAuth 2.1 client
import requests
url = "https://{FUSION_HOST}/api/oauth2/register"
response = requests.post(url)
print(response.text)HttpResponse<String> response = Unirest.post("https://{FUSION_HOST}/api/oauth2/register")
.asString();const options = {method: 'POST'};
fetch('https://{FUSION_HOST}/api/oauth2/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/api/oauth2/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/oauth2/register"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/api/oauth2/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request POST \
--url https://{FUSION_HOST}/api/oauth2/register{
"client_id": "<string>",
"client_secret": "<string>",
"registration_access_token": "<string>",
"registration_client_uri": "<string>",
"client_id_issued_at": 123,
"client_secret_expires_at": 123,
"redirect_uris": [
"<string>"
]
}Register OAuth 2.1 client
Register a Model Context Protocol (MCP) client for OAuth 2.1. All clients receive the same pre-configured client ID.
POST
/
oauth2
/
register
Register OAuth 2.1 client
import requests
url = "https://{FUSION_HOST}/api/oauth2/register"
response = requests.post(url)
print(response.text)HttpResponse<String> response = Unirest.post("https://{FUSION_HOST}/api/oauth2/register")
.asString();const options = {method: 'POST'};
fetch('https://{FUSION_HOST}/api/oauth2/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/api/oauth2/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/oauth2/register"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/api/oauth2/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request POST \
--url https://{FUSION_HOST}/api/oauth2/register{
"client_id": "<string>",
"client_secret": "<string>",
"registration_access_token": "<string>",
"registration_client_uri": "<string>",
"client_id_issued_at": 123,
"client_secret_expires_at": 123,
"redirect_uris": [
"<string>"
]
}Response
200 - application/json
OK
The OAuth 2.0 client created by dynamic client registration.
The unique ID of the registered client.
The secret for the registered client.
The token used to access the client's registration information.
The URI of the client's registration information.
The time the client ID was issued, in seconds since the Unix epoch.
The time the client secret expires, in seconds since the Unix epoch. A value of 0 means the secret doesn't expire.
The redirect URIs registered for the client.
Was this page helpful?