Register a public MCP OAuth client.
curl --request POST \
--url https://api.traxy.ai/api/v1/mcp/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"http://localhost:1455/callback"
],
"client_name": "Codex",
"grant_types": [],
"response_types": [
"code"
],
"scope": "workspace:read leads:read agent:read",
"token_endpoint_auth_method": "none"
}
'import requests
url = "https://api.traxy.ai/api/v1/mcp/oauth/register"
payload = {
"redirect_uris": ["http://localhost:1455/callback"],
"client_name": "Codex",
"grant_types": [],
"response_types": ["code"],
"scope": "workspace:read leads:read agent:read",
"token_endpoint_auth_method": "none"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
redirect_uris: ['http://localhost:1455/callback'],
client_name: 'Codex',
grant_types: [],
response_types: ['code'],
scope: 'workspace:read leads:read agent:read',
token_endpoint_auth_method: 'none'
})
};
fetch('https://api.traxy.ai/api/v1/mcp/oauth/register', 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.traxy.ai/api/v1/mcp/oauth/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' => [
'http://localhost:1455/callback'
],
'client_name' => 'Codex',
'grant_types' => [
],
'response_types' => [
'code'
],
'scope' => 'workspace:read leads:read agent:read',
'token_endpoint_auth_method' => 'none'
]),
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://api.traxy.ai/api/v1/mcp/oauth/register"
payload := strings.NewReader("{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\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://api.traxy.ai/api/v1/mcp/oauth/register")
.header("Content-Type", "application/json")
.body("{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.traxy.ai/api/v1/mcp/oauth/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "mcp_abc123",
"client_name": "Codex",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
],
"response_types": [
"<string>"
],
"token_endpoint_auth_method": "none",
"scope": "workspace:read leads:read analytics:read agent:read"
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key.",
"status": 401,
"request_id": "<string>"
}
}API reference
Register a public MCP OAuth client.
Dynamic Client Registration for public clients. Redirect URIs must be safe loopback URIs or explicitly allowlisted HTTPS origins.
POST
/
mcp
/
oauth
/
register
Register a public MCP OAuth client.
curl --request POST \
--url https://api.traxy.ai/api/v1/mcp/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"http://localhost:1455/callback"
],
"client_name": "Codex",
"grant_types": [],
"response_types": [
"code"
],
"scope": "workspace:read leads:read agent:read",
"token_endpoint_auth_method": "none"
}
'import requests
url = "https://api.traxy.ai/api/v1/mcp/oauth/register"
payload = {
"redirect_uris": ["http://localhost:1455/callback"],
"client_name": "Codex",
"grant_types": [],
"response_types": ["code"],
"scope": "workspace:read leads:read agent:read",
"token_endpoint_auth_method": "none"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
redirect_uris: ['http://localhost:1455/callback'],
client_name: 'Codex',
grant_types: [],
response_types: ['code'],
scope: 'workspace:read leads:read agent:read',
token_endpoint_auth_method: 'none'
})
};
fetch('https://api.traxy.ai/api/v1/mcp/oauth/register', 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.traxy.ai/api/v1/mcp/oauth/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' => [
'http://localhost:1455/callback'
],
'client_name' => 'Codex',
'grant_types' => [
],
'response_types' => [
'code'
],
'scope' => 'workspace:read leads:read agent:read',
'token_endpoint_auth_method' => 'none'
]),
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://api.traxy.ai/api/v1/mcp/oauth/register"
payload := strings.NewReader("{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\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://api.traxy.ai/api/v1/mcp/oauth/register")
.header("Content-Type", "application/json")
.body("{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.traxy.ai/api/v1/mcp/oauth/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"redirect_uris\": [\n \"http://localhost:1455/callback\"\n ],\n \"client_name\": \"Codex\",\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"workspace:read leads:read agent:read\",\n \"token_endpoint_auth_method\": \"none\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "mcp_abc123",
"client_name": "Codex",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
],
"response_types": [
"<string>"
],
"token_endpoint_auth_method": "none",
"scope": "workspace:read leads:read analytics:read agent:read"
}{
"error": {
"code": "invalid_api_key",
"message": "Invalid API key.",
"status": 401,
"request_id": "<string>"
}
}Body
application/json
Minimum array length:
1Example:
["http://localhost:1455/callback"]
Example:
"Codex"
Available options:
authorization_code, refresh_token Available options:
code Space-separated OAuth scopes.
Example:
"workspace:read leads:read agent:read"
Available options:
none Response
Registered public client metadata.
Example:
"mcp_abc123"
Example:
"Codex"
Available options:
none Example:
"workspace:read leads:read analytics:read agent:read"
Was this page helpful?
⌘I