Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 10 Next »

Get an API Key

Contact doo, and we will provide you an API Key to access our API.

Get an OAuth Client Credentials

Contact doo, and we will provide you an OAuth Client Credentials to access our API.

OAuth Client Credentials include:

  • client_id

  • client_secret

OAuth Client Credentials are attached to a doo user, so you should have an account in doo and specify your user_id to get the OAuth Client Credentials from us.

OAuth Client Credentials across the organizations

You can use the same OAuth Client Credentials for many organizations.

To use it for a new organization, you should be invited to this organization with the team administrator's role by some other existing member.

Get an Access Token

Use OAuth Client Credentials to obtain the Access Token from the OAuth endpoint.

Request

Curl
curl -X POST https://rest.doo.net/v1/oauth \
-H 'Content-Type: application/json' \
-H 'x-api-key: <api_key>' \
-d '{"client_id": "<client_id>", "client_secret": "<client_secret>", "grant_type": "client_credentials"}'

Parameters

Parameter

Required

Description

<api_key>

Yes

see Get an API Key

<client_id>

Yes

see Get an OAuth Client Credentials

<client_secret>

Yes

see Get an OAuth Client Credentials 

Response example

JSON
{
    "response_status": 200,
    "developer_message": "Success",
    "user_message": "Success",
    "data": {
        "access_token": "208669dcae12502596c0091db9063fbfab704411",
        "refresh_token": null
    },
    "_links": {
        "self": {
            "href": "https://rest.doo.net/v1/oauth"
        }
    }
}


  • No labels