Register OAuth client
Registers a new OAuth client for MCP access.
POST
/
oauth
/
mcp
/
{account_id}
/
register
Register OAuth client
curl --request POST \
--url https://chat.wiseapp360.com/oauth/mcp/{account_id}/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"https://client.example.com/callback"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({redirect_uris: ['https://client.example.com/callback']})
};
fetch('https://chat.wiseapp360.com/oauth/mcp/{account_id}/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/oauth/mcp/{account_id}/register"
payload = { "redirect_uris": ["https://client.example.com/callback"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/oauth/mcp/{account_id}/register",
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([
'redirect_uris' => [
'https://client.example.com/callback'
]
]),
CURLOPT_HTTPHEADER => [
"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://chat.wiseapp360.com/oauth/mcp/{account_id}/register"
payload := strings.NewReader("{\n \"redirect_uris\": [\n \"https://client.example.com/callback\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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://chat.wiseapp360.com/oauth/mcp/{account_id}/register")
.header("Content-Type", "application/json")
.body("{\n \"redirect_uris\": [\n \"https://client.example.com/callback\"\n ]\n}")
.asString();{
"client_id": "i8UpUOYutYF-9nq4E8hZ8L8JdPAHnDruVV6y1qYQO8k",
"client_id_issued_at": 1716200000,
"client_secret_expires_at": 0,
"client_name": "WiseApp MCP Desktop",
"redirect_uris": [
"https://client.example.com/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"token_endpoint_auth_method": "none"
}{
"error": "Account is suspended"
}{
"error": "MCP server feature is not enabled for this account"
}{
"message": "Redirect uris must include at least one redirect URI",
"attributes": [
"redirect_uris"
]
}Corpo
application/json
⌘I
Register OAuth client
curl --request POST \
--url https://chat.wiseapp360.com/oauth/mcp/{account_id}/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"https://client.example.com/callback"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({redirect_uris: ['https://client.example.com/callback']})
};
fetch('https://chat.wiseapp360.com/oauth/mcp/{account_id}/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/oauth/mcp/{account_id}/register"
payload = { "redirect_uris": ["https://client.example.com/callback"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/oauth/mcp/{account_id}/register",
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([
'redirect_uris' => [
'https://client.example.com/callback'
]
]),
CURLOPT_HTTPHEADER => [
"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://chat.wiseapp360.com/oauth/mcp/{account_id}/register"
payload := strings.NewReader("{\n \"redirect_uris\": [\n \"https://client.example.com/callback\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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://chat.wiseapp360.com/oauth/mcp/{account_id}/register")
.header("Content-Type", "application/json")
.body("{\n \"redirect_uris\": [\n \"https://client.example.com/callback\"\n ]\n}")
.asString();{
"client_id": "i8UpUOYutYF-9nq4E8hZ8L8JdPAHnDruVV6y1qYQO8k",
"client_id_issued_at": 1716200000,
"client_secret_expires_at": 0,
"client_name": "WiseApp MCP Desktop",
"redirect_uris": [
"https://client.example.com/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"token_endpoint_auth_method": "none"
}{
"error": "Account is suspended"
}{
"error": "MCP server feature is not enabled for this account"
}{
"message": "Redirect uris must include at least one redirect URI",
"attributes": [
"redirect_uris"
]
}