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 20 Next »

Secrets

Please do not share your secrets with anyone else.

You have to be authorized to make any calls to our API. To authorize in doo using API, you need to receive your secrets first:

  • OAuth Client Credentials

  • API Key

Please contact us, and we will provide you your secrets to access our API.

OAuth Client Credentials

We use OAuth Client Credentials to authorize clients.

Client Credentials include:

  • client_id

  • client_secret

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

API Key

We use API Key to identify clients and manage API limits for each client.

Our default API limits are the following:

  • 1000 requests per day;

  • 1 request per second.

The limits are soft and can be changed by request if required.

Get an Access Token

The Access Token is required to request most of our public API endpoints listed in this documentation.

Request

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 documentation about the API Key above

<client_id>

Yes

see documentation about the OAuth Client Credentials above

<client_secret>

Yes

see documentation about the OAuth Client Credentials above

Response example

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


  • No labels