Difference between revisions of "V2/Concepts/API Key"
Line 19: | Line 19: | ||
# Make authenticated requests to the Senfi API | # Make authenticated requests to the Senfi API | ||
+ | <pre class="comment"> Comment | ||
+ | Below link of [https://www.senfi.io/docs/api/1/0/#tag/Token Token API call] should be changed to api/1/1/ ? | ||
+ | </pre> | ||
The API Key ([[V2/CMS_Tutorial/Developer_Tools/Integration/Key|integration key/secret pair]]) has to be first generated in the CMS. After obtaining the API Key, a call can be made via the [https://www.senfi.io/docs/api/1/0/#tag/Token Token API call] operation to obtain an access token which will then be used in subsequent API calls for authentication. | The API Key ([[V2/CMS_Tutorial/Developer_Tools/Integration/Key|integration key/secret pair]]) has to be first generated in the CMS. After obtaining the API Key, a call can be made via the [https://www.senfi.io/docs/api/1/0/#tag/Token Token API call] operation to obtain an access token which will then be used in subsequent API calls for authentication. | ||
Revision as of 17:05, 9 May 2022
Contents
API Key
Authentication is required for Connectors to send data to Senfi. This is done through the use of API Key (integration key/secret pair) which you can generated in the CMS. View below to understand how the API Key is used in different methods of data sending to Senfi.
Sending data via MQTT
The API Key (integration key/secret pair) has to be first generated in the CMS. After obtaining the API Key, include the API Key as the Username and Password in the MQTT Endpoint.
MQTT Endpoint
- Host
- mqtt.senfi.io
- Port
- 1883
- Username
- <Your integration key>
- Password
- <Your integration secret>
- MQTT topic
- ingestor/1/0/live/text/array/ems/<your integration key>/<your measurement code>
Sending data via Senfi API
API Key is needed for making authenticated requests to the Senfi API. Senfi API uses OAuth2 to authenticate requests. Authenticating via OAuth2 requires the following steps:
- Create an API Key
- Generate an access token
- Make authenticated requests to the Senfi API
Comment Below link of [https://www.senfi.io/docs/api/1/0/#tag/Token Token API call] should be changed to api/1/1/ ?
The API Key (integration key/secret pair) has to be first generated in the CMS. After obtaining the API Key, a call can be made via the Token API call operation to obtain an access token which will then be used in subsequent API calls for authentication.