Skip to main content

Authentication

Traede uses OAuth2 for authorization to the API. It is not possible to interact with the API without a valid access token.

Acquire tokens and keys

Register as an API app

You will also need to register your integration as an API App. Click here to register your API App.

Generate an access token

When communcating with the Traede API you are always calling the API "on behalf of a user". You can create new API key by visiting this link. NOTE this will issue an access token on behalf of the user you are currently logged in as. This means that all requests made with that token will be recorded on this user.

Requesting resources

Traede expects for a authorization token to be included in all requests either as a header

Step 1: Add access token

Authorization: Bearer 1234token

or as a query string parameter

GET https://api.traede.com/products?access_token=1234token

caution

You must replace 1234token with your own access token.

Step 2: Add API App Key

You will also need to add your API App key as a header using X-Traede-App-Key key.

X-Traede-App-Key: 1234

caution

You need to replace 1234 with your own API App key

Full example using curl

curl -X GET -H 'Content-type:application/json' \
-H 'Authorization: Bearer 1234' \
-H 'X-Traede-App-Key: 1234' \
https://api.traede.com/v10/products?limit=10