Accelerate the Value of Data

Obtaining an Access Token with Password Grant Type

This operation authenticates a user in the system based on a username and password, and returns an access token that will be used for other API requests that follow.

Request

POST https://auth.reltio.com/oauth/token
Table 1. Parameters
Name Required Description
Headers Authorization Yes The Basic authentication header, provided by Reltio with a specific set of client credentials.
Content-TypeYesapplication/x-www-form-urlencoded
Body Parameters username Yes A username of the end user registered in the Reltio database.
password Yes A password of the end user registered in the Reltio database.
grant_type Yes Type of access token request. The value is: password.

Response

If authentication is successful, the response will contain a JSON object with the following structure:

Property Required Description Type
access_token YesAccess token that should be used for any upcoming requests to any Reltio API. String
token_type YesType of OAuth2 token. For the Reltio Auth server, it is always Bearer (additional information about the Bearer token type can be found here ). String
refresh_token YesThis value will be used for refreshing expired access token. For more information, see Refresh Token. String
expires_in YesTime period in seconds when the access token is valid. When the access token expires, it needs to be refreshed. For more information, see Refresh Token. String
entityURI URI of an entity object that is associated with the authenticated user. String
scope YesAn array of access scopes for which the access token is valid. In our implementation we have the following scopes: Array of Strings

Request

POST https://auth.reltio.com/oauth/token
                Headers:Authorization:Basic cmVsdGlvX3VpOnNlY3JldA==
                Content-Type: application/x-www-form-urlencoded
                Body:password=<password>&username=<username>&grant_type=password

Response

{
   "access_token":"204938ca-2cf7-44b0-b11a-1b4c59984512",
   "token_type":"bearer",
   "refresh_token":"676742af-989b-4d40-b7cc-f69ccadd45ea",
   "expires_in":3599,
   "scope":"   configuration_api entities_api graphs_api groups_api interactions_api relations_api
}    

Token API request limit

By default, tokens expire after 60 minutes. To authenticate into Reltio using scripts or integrations, you must get a token, store it, and use it until it expires. Get a new token after the current one expires.

If you don't store your token, you will need to request a token every time you want to authenticate into Reltio. This is a highly inefficient practice. In Reltio, we have a limit of 10 GET token requests per second. If you exceed this limit, you will see the 429 HTTP status (Too Many Request) message. This indicates that you need to change the way you are requesting tokens to ensure it complies with our limit.

Note: To get a new token before the current one expires, enable the Multi Token Support feature. For more information, see topic Multi Token Support.