Skip to main content

Access Key Generation Flow

The following steps describe how the Access Token must be generated and used when calling the Chart Data API.

1. Receive API Key & Secret Key

SynapseWave Innovations Private Limited Licensing Team provides the API Key and Secret Key to the API Consumer.

2. Generate Access Token using AuthService REST API

The API consumer must use the provided API Key and Secret Key to generate an Access Token using the AuthService REST API.
These keys must remain configurable in a registry or database (not hardcoded).

AuthService REST API Details

POST Method: authenticateKeys

  • Pass the API Key and Secret Key in the request body.
  • The response returns the Access Token in the field: sessionKey.

Token Expiry Information

  • Access Token expiry duration is configured in config/default.json.
  • Once expired, a new token must be generated.

3. Use the Generated Access Token

Use the Access Token as a Bearer Token in the Authorization header when calling the Chart Data API.
Example:
Authorization: Bearer <access_token>