Get an authorization code

Returns an OAuth authorization code for the user.

POST
https://identity.krystal.io/api/v1/users/{user}/authorization_codes

If successful, this endpoint will return a 200 OK status.

Scopes

One of the following scopes are required to use this endpoint.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

user Required

User Lookup None

properties Required

OAuth authorization request None

Potential Errors

The following errors may occur during this request.

Details HTTP status

user_not_found

No user was found matching any of the criteria provided in the arguments

404 Not Found

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    oauth_authorization_code: String?
}