Authorization
  • 1 Minute to read
  • Dark
    Light

Authorization

  • Dark
    Light

Obtaining the tokens

Use the following endpoint to obtain access and refresh tokens

Request

POST https://public-api.dataddo.com/api/v2/auth

{
  "email": "string",
  "password": "string"
}
Parameter Description
email email address associated with your account and used for login.
password password to your account.

Response

{
    "access_token":"ACCESS_TOKEN",
    "refresh_token":"REFRESH_TOKEN",
    "expires_in":3600,
    "realm_id":0,
    "provider":"google"
}
Parameter Description
access_token Bearer token used for authorization.
refresh_token Refresh token. You can use it for obtaining new access_token instead of providing email and password
expires_in Time in seconds of access_token validity.
realm_id Realm ID. This needs to be passed in the request header.
provider Authorization provider. This needs to be passed in the request header.

First call

Supply the calls with Authorization, X-realm-id and X-provider HTTP headers.

GET https://public-api.dataddo.com/api/v2/sources
Authorization: Bearer ACCESS_TOKEN
X-realm-id: REALM_ID
X-provider: PROVIDER

Was this article helpful?

What's Next