2. Request authorization from CONVELA Cloud users
Add a button to your application that users can click in order to start the authorization process with their CONVELA Cloud account. Please use one the official buttons we've created for this purpose:
Light button option#

Code:
<a href="https://convela.cloud/backend/oauth/authorize?..." style="display: inline-block; overflow: visible; text-decoration: none"> <div style="display: flex; align-items: center; padding: 4px 14px; border-radius: 12px; border: 1px solid #ebebee; box-shadow: rgba(186, 186, 186, 0.2) 0px 2px 6px 0px;" > <img src="https://developer.convela.cloud/user-resources/img/logo-glyph-black.svg" alt="mit CONVELA anmelden" style="width: 40px; height: 40px; margin-right: 10px" /> <span style="font-family: Avenir, Arial, sans-serif; font-weight: 500; font-size: 16px; color: #2d0f2d;" > mit CONVELA anmelden </span> </div></a>Dark button option#

Code:
<a href="https://convela.cloud/backend/oauth/authorize?..." style="display: inline-block; overflow: visible; text-decoration: none"> <div style="display: flex; align-items: center; padding: 4px 14px; border-radius: 12px; border: 1px solid #ebebee; box-shadow: rgba(125, 60, 88, 0.2) 0px 2px 6px 0px; text-decoration: none; background: black;" > <img src="https://developer.convela.cloud/user-resources/img/logo-glyph-white.svg" alt="mit CONVELA anmelden" style="width: 40px; height: 40px; margin-right: 10px" /> <span style="font-family: Avenir, Arial, sans-serif; font-weight: 500; font-size: 16px; color: white;" > mit CONVELA anmelden </span> </div></a>The buttons above contain a sample URL in their <a href> tag. You'll need to replace the ... part of the URL with data specific to your integration.
Authorization link parameters#
| parameter | Required | value |
|---|---|---|
client_id | yes | which we passed to you |
redirect_uri | yes | URI from step 1 which receives the authorization response & the user is redirected to |
response_type | yes | code |
scope | yes | scopes of data you want to access, separated by + (plus character), see list below |
state | optional | your state string passed back in the response |
Expected Authorization link#
https://demo.convela.cloud/backend/oauth/authorize?client_id=412&redirect_uri=https://api.your.app/handle-cv-auth&response_type=code&scope=read_mandate+read_user&state=some-state-herebroken down, that is:
https://demo.convela.cloud/backend/oauth/authorize ?client_id=412 &redirect_uri=https://api.your.app/handle-cv-auth &response_type=code &scope=read_mandate+read_user &state=some-state-hereinfo
As opposed to other API endpoints, the /oauth ones are not in the /api/v2 namespace, but on the /backend level directly. So please use this as your base for authorization links:
https://[env].convela.cloud/backend/oauth/authorizeAvailable scopes#
You can find all the available scope keys below.
note
For security purposes, we will manually enable scopes for your application. So please request the scopes you're interested in from developer support. You will be limited to API calls available for the scopes enabled for you.
read_documents (for Agents & Consumers)
Grants you access to read the user's documents. Does not grant access to documents stored in the digital safe.
write_documents (for Agents & Consumers)
Allows you to upload files to the user's documents area. Uploading to the digital safe is not allowed.
read_user (for all users)
Allows you to fetch information about the user you're authorized as, such as email, name, and physical address.
write_user (for all users)
Allows you to update information about the user you're authorized as, such as email, name, and physical address.
read_mandate (for Consumers)
Allows you to fetch the user's mandate info, such as the provisioned/deceased person's name and physical address.
Please note: as a security measure, mandate info is partially restricted and cannot be read in full.
read_bookings (for Agents & Consumers)
Allows you to fetch B2C bookings between agents and consumers.
read_orders (for Agents & Vendors)
Allows you to fetch B2B orders between agents and vendors.
๐ค Do you miss a scope from this list? Let us know and we'll add it for you.