Authorization request

The request example which doo sends to the external system to get the Access Token.

Request

curl -L -X POST '<external_oauth_endpoint_url>' \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'client_id=<client_id>' \ --data-urlencode 'client_secret=<client_secret>' \ --data-urlencode 'grant_type=client_credentials'

Parameters

Parameter

Description

Parameter

Description

<external_oauth_endpoint_url>

The value provided during the webhook configuration creation in https://viovendi.atlassian.net/wiki/spaces/API/pages/2795012134

<client_id>

The value provided during the webhook configuration creation in https://viovendi.atlassian.net/wiki/spaces/API/pages/2795012134

<client_secret>

The value provided during the webhook configuration creation in https://viovendi.atlassian.net/wiki/spaces/API/pages/2795012134

Response

In response, doo should receive JSON with access_token property, which contains the Access Token. Doo will use this access_token in the webhook request to the external system.

Example of successful response JSON:

{ "message": "string", // short success or error message "description": "string" // additional information "access_token": "string" // access token which will be used for sending the webhook request }

Please use the same principles for this response as described in