Register a public OAuth client (RFC 7591 fallback)
const url = 'https://api.infiniteaudience.ai/v1/oauth/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"client_name":"example","redirect_uris":["https://example.com"],"scope":"example","token_endpoint_auth_method":"none","grant_types":["authorization_code"],"response_types":["code"]}'};
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.infiniteaudience.ai/v1/oauth/register \ --header 'Content-Type: application/json' \ --data '{ "client_name": "example", "redirect_uris": [ "https://example.com" ], "scope": "example", "token_endpoint_auth_method": "none", "grant_types": [ "authorization_code" ], "response_types": [ "code" ] }'Public and rate-limited. Registers a public PKCE client for MCP/A2A gateways that do not support Client ID Metadata Documents. No client secret is issued.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Public client registration.
object
Example
{ "token_endpoint_auth_method": "none"}RFC 6749-shaped OAuth protocol error — error is a fixed machine-readable code and error_description is a human-readable detail. Deliberately NOT this API’s usual {error, code, message} shape — this is the RFC’s own error contract, used only by /v1/oauth/authorize, /v1/oauth/token, and /v1/oauth/revoke.
RFC 6749 §5.2 / §4.1.2.1 error body — see the OAuthError response component.
object
Example
{ "error": "invalid_request"}RFC 6749-shaped OAuth protocol error — error is a fixed machine-readable code and error_description is a human-readable detail. Deliberately NOT this API’s usual {error, code, message} shape — this is the RFC’s own error contract, used only by /v1/oauth/authorize, /v1/oauth/token, and /v1/oauth/revoke.
RFC 6749 §5.2 / §4.1.2.1 error body — see the OAuthError response component.
object
Example
{ "error": "invalid_request"}