Connect and sign in
Dynamic client registration Details
Clients register at POST /api/oauth/register (RFC 7591). Registration is open, but codes only go to the known apps' published callbacks or to a loopback address.
The request
POST https://xale., a JSON object of at most 16 KB.
{
"client_name": "Example desktop client",
"redirect_uris": ["http://127.0.0.1:33418/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "none"
}| Field | Rule |
|---|---|
redirect_ | Required: 1 to 10, all belonging to one app |
grant_ | Optional; only authorization_ and refresh_ |
response_ | Optional; only code |
client_ | Optional; cleaned to one line of at most 80 characters, and never shown as the app's verified name |
The answer
201:
{
"client_id": "…",
"client_id_issued_at": 1796374800,
"client_name": "Example desktop client",
"redirect_uris": ["http://127.0.0.1:33418/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "none"
}The client_ starts with xale_. No secret is issued.
Accepted callback addresses
| App | Callback |
|---|---|
| Claude | https://claude., https://claude. |
| ChatGPT | https://chatgpt., https://chatgpt. |
| Grok | https://grok. or https://console., with or without a trailing slash |
| Google (Gemini) | https://oauth-redirect. or /a/… (Google's production relay) |
| An app on this computer | http://127.0.0.1, http://localhost or http://[::1], any port and path |
An https callback must have no port and no query. Every address must be written exactly as a URL parser would write it back: no user name or password, no fragment, nothing the parser had to repair.
Google's sandbox and test relays (oauth-redirect-sandbox., oauth-redirect-test.) are dropped from a registration when every other address is Google's production relay. Beside anything else they are refused.
Refusals
All are 400 JSON with error and error_:
error | error_ |
|---|---|
invalid_ | “The registration must be JSON.” or “The registration must be a JSON object.” |
invalid_ | “Give one to ten redirect_uris.” |
invalid_ | “Xale connects to Claude, ChatGPT, Grok and Gemini through their published callback addresses, and to apps on this computer (loopback).” |
invalid_ | “All redirect_uris of one registration must belong to the same app.” |
invalid_ | “Google's sandbox and test relays are accepted only beside its production relay.” |
invalid_ | “Only the authorization_code and refresh_token grants are supported.” or “Only the code response type is supported.” |
slow_ (429) | “Too many registrations. Try again in an hour.” |
Limits
| Limit | Value |
|---|---|
| A client that never got a token | Removed after 3 days |
| A client nobody has used | Removed after 60 days |
For people
- Checked against main
8aef9b15