Register a new OAuth client
POST
/oauth/register
const url = 'https://api.adversarial.com/api/oauth/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"client_name":"example","grant_types":["example"],"redirect_uris":["example"],"response_types":["example"],"scope":"example","software_id":"example","software_version":"example","token_endpoint_auth_method":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.adversarial.com/api/oauth/register \ --header 'Content-Type: application/json' \ --data '{ "client_name": "example", "grant_types": [ "example" ], "redirect_uris": [ "example" ], "response_types": [ "example" ], "scope": "example", "software_id": "example", "software_version": "example", "token_endpoint_auth_method": "example" }'Dynamic client registration (RFC 7591). Submit a client name and its
redirect URIs to receive a client_id usable with the authorization code
grant. Registration must be enabled for the deployment; when it is not,
this returns 403.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
RFC 7591 Client Registration Request (relevant subset for this server).
object
client_name
required
string
grant_types
Must include authorization_code if present; defaults apply when absent.
Array<string> | null
redirect_uris
required
Array<string>
response_types
Array<string> | null
scope
Required scope set. Compound scopes (mcp, mcp:full) are accepted
and stored as-is; expansion happens at authorize time.
string | null
software_id
string | null
software_version
string | null
token_endpoint_auth_method
Token endpoint authentication method for this client. Supported values
are none, client_secret_post, and client_secret_basic.
string | null
Examplegenerated
{ "client_name": "example", "grant_types": [ "example" ], "redirect_uris": [ "example" ], "response_types": [ "example" ], "scope": "example", "software_id": "example", "software_version": "example", "token_endpoint_auth_method": "example"}Responses
Section titled “Responses”Client registered
Media typeapplication/json
RFC 7591 Client Registration Response.
object
client_id
required
string
client_id_issued_at
required
integer format: int64
client_name
required
string
client_secret
string | null
grant_types
required
Array<string>
redirect_uris
required
Array<string>
response_types
required
Array<string>
scope
string | null
software_id
string | null
software_version
string | null
token_endpoint_auth_method
required
string
Examplegenerated
{ "client_id": "example", "client_id_issued_at": 1, "client_name": "example", "client_secret": "example", "grant_types": [ "example" ], "redirect_uris": [ "example" ], "response_types": [ "example" ], "scope": "example", "software_id": "example", "software_version": "example", "token_endpoint_auth_method": "example"}Invalid registration
Dynamic client registration is disabled