#Generate partner token

This page has deprecated content, which is relevant only to integrations that have already been completed. If you are a new customer, head to this integration guide.

#Get partner access token

Call this API to obtain a partner accessToken for yourself. Partner accessToken has to be presented as a Bearer token for authorisation in the next API.

The partner accessToken is valid for 15 minutes and has to be regenerated once expired


Your request has been successfully processed.


Request

client_id and client_secret is made available to you at the end of the configuration on Bridge


POST /auth/token
//Include these as URL encoded body parameters as a part of the request
grant_type=client_credentials
client_id=Your.Client.ID
client_secret=Your.Client.Secret

Response

You will receive a partner accessToken for usage in the next two APIs. refreshToken functionality will be enabled soon and can be ignored until then.

{
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJQMmNLU05oQ1dIbHRyVjExRldMMHE0M3dzN1FJOWN2cExhdU1pQ3pOZ09vIn0.eyJleHAiOjE2MzcyNDI4NjksImlhdCI6MTYzNzI0MjU2OSwianRpIjoiN2I4Y2NlOGQtOWI4ZC00NWFjLWE1NWQtZDBhMWM2MmVkMTMxIiwiaXNzIjoiaHR0cHM6Ly9hdXRoLWRldi5zZXR1LmNvL2F1dGgvcmVhbG1zL2ZkIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjVlMGVlZGIwLWQyZDktNDg4My04ZmI0LTIxY2RjZjZiNzFmMCIsInR5cCI6IkJlYXJlciIsImF6cCI6InRlc3QiLCJzZXNzaW9uX3N0YXRlIjoiMDAwMjM0ODItNTBjOC00YzdjLWJkODgtNzllZTE5NzVhOTFhIiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZ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