For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/auth/register-o-auth-client.md.

Register an OAuth client

POST
/oauth/register

Dynamic client registration (RFC 7591). A remote MCP client — Claude, Meta Muse, MCP Inspector — calls this itself before starting an authorization flow; none of them can be handed a client_id out of band.

Registration is open in mechanism and closed in reach: every redirect_uri must belong to one known client vendor, and a caller whose callback belongs to none is refused. Clients registered here are public, use PKCE with S256, and are marked unverified on the consent screen because their name is self-asserted.

Errors answer in the OAuth envelope (RFC 6749 5.2), not the usual one.

Rate limit: counts against the OAuth client registration limit, 5 a minute and 50 a day (per ip address, for every caller). See Rate limits.

Request Body

application/json
  1. body
redirect_uris*array<>

Exact callback URLs. Matched byte-for-byte at /oauth/authorize, except for loopback, where the port is ignored (RFC 8252 7.3). Must be https outside loopback, and carry no fragment or userinfo.

Items1 <= items
client_name?string

Self-asserted; shown on the consent screen as unverified. Refused with a 400 if it contains links, domain names, < or >, or control characters.

Lengthlength <= 100
client_uri?string
Formaturi
scope?string

Space-delimited. Defaults to every supported scope when omitted.

grant_types?array<>
response_types?array<>
token_endpoint_auth_method?"none"

Only public clients are supported.

Value in"none"

Response Body

Client registered

application/json
  1. response
client_id*string
client_id_issued_at*integer

Seconds since the epoch.

Formatint64
redirect_uris*array<>
client_name?string
client_uri?string
scope*string
grant_types*array<string>
response_types*array<string>
token_endpoint_auth_method*string
Example Request
curl -X POST 'https://api.truemarkets.co/v1/auth/oauth/register' \  -H 'Content-Type: application/json' \  -d '{  "redirect_uris": [    "https://claude.ai/api/mcp/auth_callback"  ]}'
Example Response
{  "client_id": "string",  "client_id_issued_at": 0,  "redirect_uris": [    "http://example.com"  ],  "client_name": "string",  "client_uri": "string",  "scope": "string",  "grant_types": [    "string"  ],  "response_types": [    "string"  ],  "token_endpoint_auth_method": "string"}