Authorization

Authorization API

Endpoints for managing user authentication and token sessions.

Endpoints

Authorization Endpoint

Initiates the OAuth2 flow.

GET https://account.averdoc.com/connect/authorize

Parameter Type Description
client_id string Required. Application Client ID.
response_type string Required. Must be code.
scope string Required. Space-separated scopes (e.g. email averdoc.api).
redirect_uri string Required. Callback URL registered in your app.

Token Endpoint

Exchanges an Authorization Code for an Access Token.

POST https://account.averdoc.com/connect/token

Content-Type: application/x-www-form-urlencoded

Parameter Type Description
grant_type string Required. Must be authorization_code.
code string Required. Code received from the authorization endpoint.
redirect_uri string Required. Same URI used in the authorize request.