Difference between revisions of "V2/Concepts/API Key"
Line 11: | Line 11: | ||
; Password: ''<Your integration secret>'' | ; Password: ''<Your integration secret>'' | ||
; MQTT topic: ingestor/1/0/live/text/array/ems/''<your integration key>/<your measurement code>'' | ; MQTT topic: ingestor/1/0/live/text/array/ems/''<your integration key>/<your measurement code>'' | ||
− | |||
=== Sending data via Senfi API === | === Sending data via Senfi API === |
Revision as of 14:36, 24 June 2021
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
When sending data to Senfi's MQTT endpoint, the API key is used 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
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.
What's Next
- Learn about API Key
- Writing Connectors