Connectivity

Connectivity

Learn how to connect your application to the Averdoc platform using OAuth2.

Authentication

Averdoc uses OAuth2 with Authorization Code (and PKCE) for secure user authentication.

Configuration

Use the following settings to configure your OAuth2 client (e.g., Postman, web app):

Parameter Value
Auth URL https://account.averdoc.com/connect/authorize
Access Token URL https://account.averdoc.com/connect/token
Client ID (Provided by your Admin)
Client Secret (Provided by your Admin - if applicable)
Grant Type Authorization Code
Scopes email, averdoc.api
Client Authentication Send as Basic Auth header

Tip

Use PKCE: Ensure “Use PKCE” (Proof Key for Code Exchange) is enabled in your OAuth client for enhanced security.

Testing Connection

Once you have your Access Token, you can verify it by calling the UserInfo endpoint or a simple test API.

curl --location 'https://api.averdoc.com/api/v1/users/me' \
--header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'