Register
RFC 7591 dynamic client registration, for a client that cannot use a
Client ID Metadata Document. Post your client's metadata as JSON, then
use the client_id in the answer at /oauth/authorize and
/oauth/token. Nothing is kept until a person approves your client, so
registering again costs nothing and leaves nothing to clean up.
Each redirect URI must be https on a public host name, or http on a
loopback address (127.0.0.1, [::1], localhost), which then
matches on any port. A custom URI scheme is refused: use a loopback
redirect instead. So is a host on one of our own domains.
client_name is shown to the person as your client's own claim, with
where its redirect goes beside it. A name that renders blank, or mixes
Latin letters with Cyrillic or Greek ones, is shown as an unnamed
application.
The client is public whatever you ask for: token_endpoint_auth_method
comes back none, there is no client secret, and every authorization
proves itself with PKCE. It may be granted apikeys.use at most.
Request body
application/json
redirect_urisrequiredarray<string>One to ten, each matched exactly, apart from a loopback one's port.
client_namestringShown to the person as your client's own claim, marked unverified, beside where its redirect goes.
grant_typesarray<string>Must include authorization_code when given.
response_typesarray<string>Must include code when given.
token_endpoint_auth_methodstringRead as none, whatever is sent.
Responses
201application/json
The client, as registered.
client_idrequiredstringclient_id_issued_atrequiredinteger (int64)Unix seconds. 64-bit, since 32 bits run out on 2038-01-19.
client_namerequiredstringAs the person will see it.
redirect_urisrequiredarray<string>grant_typesarray<string>authorization_code and refresh_token.
response_typesarray<string>token_endpoint_auth_methodrequiredstringAlways none.
scopestringThe most this client may be granted: apikeys.use.
TypeScript type
{
client_id: string;
client_id_issued_at: number;
client_name: string;
redirect_uris: string[];
grant_types?: string[];
response_types?: string[];
token_endpoint_auth_method: string;
scope?: string;
}400application/json
invalid_redirect_uri names the redirect URI refused and why, and
invalid_client_metadata anything else, such as a client that
does not use the authorization code flow. slow_down means this
address registered too many clients in the last minute.
errorrequiredstringerror_descriptionstringTypeScript type
{
error: string;
error_description?: string;
}