Authentication
To start using LiquidSpace API you need to obtain subscriptionKey, clientId and clientSecret for you integration. Contact support@liquidspace.com for more information.
OAuth 2.0
Now that you have your "Client ID" and "Client secret" you can make a call to our API in order to generate a token.
The URL that you need to call in order to do that is:
https://api.liquidspace.com/identity/connect/token
The request method that you need to use in order to generate the token is POST.
The content-type header must be set to application/x-www-form-urlencoded.
The body needs to contain the following fields:
client_id - taken from the OfficeRND application you just created.
client_secret- taken from the OfficeRND application you just created.
grant_type - currently we only support "client_credentials" so the value is always going to be the same.
scope - here you should API area that you'd like to use with token. Valid values are lsapi.marketplace and lsapi.eamanagement.
After sending the POST request you'll be able to see your token in the response body.
The property "expires_in" specifies the time in seconds for which you can use the token.
{ "access_token": "<access_token>", "expires_in": 2678400, "token_type": "Bearer", "scope": "lsapi.eamanagement lsapi.marketplace" }
After you've generated the token, you can use it as authorization when calling the different API endpoints.
Authorization Header
Once you have the token you need to add an Authorization header to every request. The value of the header should be "Bearer <access_token>"