Authorize the client

OAuth 2.0 authorization endpoint to initiate the OAuth 2.0 Authorization Code grant to obtain an authorization code to exchange for an access token.

Use Authorization Code grant to obtain access token for a Company.

Query Params
string
enum
required

The response type for the authorization request

Allowed:
uuid
required

The client ID for the authorization request

uri
required

The URI to redirect the user to after authorization. Must match one of the redirect URIs registered for the client.

string

The scope for the authorization request

string
required

An opaque value used by the client to maintain state between the request and callback. Required as protection against CSRF (cross-site request forgery) attacks.

uuid

The Bokio tenant ID to authorize the integration to have access. Bokioio company ID will be the teant ID when the tenant_type is company.

string
enum

The Bokio tenant type to authorize the integration to have access. Currently support only company tenant type.

Allowed:
Responses
302

Redirects to the client's redirect URI with an authorization code when the user has authorized the client

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json