Create an authorization
POST /authorizations
POST /authorizations
When a user confirms they want to grant access, this will create the authorization. The user will be redirected to the callback URL, with an authorization code that can be exchanged for an access token.
The request body for creating an authorization.
callbackUrlstring✻The callback URL is where the End-User will be redirected.
1..2048 characters"https://example.com/callback"clientIdstring✻The client ID is a unique identifier for a client.
"9352258f-0263-47d1-b9c7-16cd93be7501"csrftstring✻The CSRF token is used to prevent cross-site request forgery attacks.
"87e3838f-ca02-4d8d-89da-5933ae9a82e6"scopenull | string✻Space-delimited, case-sensitive list of <action>:<scope> permissions, such as read:name.
A client either follows the permissions the End-User has approved, or fixes a subset of them:
invalid_scope, and requesting a different set later replaces the previous authorization.Changing the requested scope replaces the authorization: any authorization code not yet redeemed, and
every refresh token previously issued to this client for this user, stop working and the End-User authorizes
again. A client that needs different scopes for different surfaces should use a client per surface.
On a refresh request, the value may only narrow what was already granted.
In a token response, this is the scope actually granted — for an authorization that follows the End-User's permissions, the set approved at that moment.
0..1024 characters/^(?:(?:(?:read|write):[\w]+ )*(?:read|write):[\w]+)?$/i"read:name read:bloodGlucose write:bloodGlucose"