Vendor Authentication
To obtain an access token, send your credentials along with your integration key. Make sure to replace your_email@example.com and your_password with your Reggora Vendor Portal login information.
The response includes a token (a JWT bearer token for authenticating subsequent requests) and expires_in (the token’s lifetime in seconds).
Example Request
Section titled “Example Request”import requests
headers = { 'integration': '{}'.format(REGGORA_INTEGRATION_KEY)}
response = requests.post('https://sandbox.reggora.io/vendor/auth', json={'username': 'your_email@example.com', 'password': 'your_password'}, headers=headers)Example Response
Section titled “Example Response”{ "token": "jwt-here", "expires_in": 3600}The Reggora API uses JWT bearer tokens as well as a personal API key to authorize all requests.
The Reggora API expects for your API integration key as well as the JWT bearer token to be included in all API requests to the server in a header that looks like the following:
Authorization: Bearer {token}integration: {api-integration-key}If making requests to the development server, you will need to use your development specific credentials and development specific API key.