Authentication
Instructions for user authentication against the Transparent Edge Services API.
To authenticate against the API, we use the OAuth2 federation system. This means that in order to make requests to the API, you need to have an access token for authentication.
First of all, we will need the values of client_id
and client_secret
, which can be obtained from our dashboard. Click on your username, to view your user profile, there you'll able to obtain the required API keys.
Take note of the values that appear, as we will need them for the following steps:
Here is an example, with fake data of the entire process of obtaining the access token (API_TOKEN).
client_id: 0b58b22d51a2d68Ffdf17b
client_secret: 0f3b38f9721211e848e39be374a4c1431386abdfe86
company_id: 42
With this information, the first step is to make a call to the API to obtain the authorization token. This may vary depending on the programming language used, here is a basic example using cURL.
This request will return a result in JSON format, similar to this:
The field access_token
is essential to continue making requests to the API. All requests that include the header "Authorization: Bearer " will be authenticated with the user who requested the access_token. For example, a request similar to the one shown below will return a JSON object with the user stored in our systems.
Last updated