- Print
- DarkLight
Article Summary
Share feedback
Thanks for sharing your feedback!
To login to the BusinessManager, you need to create a token for the user.
This is the payload:
{
"grant_type": "password",
"audience": "http://bm.promaterial.com/api",
"client_id": "<your client id>",
"scope": "openid profile email",
"username": "<username>",
"password": "<password>"
}
And this is the enpoint where you have to send it to via POST:
https://promaterial.eu.auth0.com/oauth/token
The response looks like this:
{
"access_token": "cCI6IkpXVCIsImtpZCI6IjBdWxlOmRnX3ByaWNpbmdydWxlcyIsInJlYWQ6bW9kdWxlOmRpjlQdTFWydZlJ7dHeidjIh3tD3wyw4qdavI",
"id_token": "hcnMlR0cHM6Ly9wcm9tYXRlcmlhbC5ldS5hdXRoMC5jb20vIiwiYXVkIjoiaQ",
"scope": "openid profile email",
"expires_in": 604800,
"token_type": "Bearer"
}
The access token is the token you have to send in the header of all requests to the BusinessManager like this:
Was this article helpful?