Skip to content
Docs

Credentials

Credentials provide the authentication information required for devices to communicate securely with StatStream. A credential is associated with a communication protocol and is used when connecting a device through HTTP or MQTT.

To create or manage credentials:

  1. Go to Admin → Credentials.
  2. The Credentials page displays all credentials available in the current workspace.
  3. Click New Credential.

When creating a credential, configure the following fields:

FieldDescription
Credential NameA descriptive name used to identify the credential.
ProtocolSelect the communication protocol (HTTP or MQTT) that the credential will be used with.

After entering the required information, click Save.


When an HTTP credential is created, StatStream generates a unique Secret Token.

The Secret Token is used to authenticate HTTP requests sent by a device and forms part of the HTTP endpoint used for data ingestion.

HTTP Credential

When an MQTT credential is created, StatStream generates the connection details required to authenticate with the MQTT broker.

The generated credentials include:

  • Broker Hostname
  • Port
  • Username
  • Password
MQTT Credential

Use these values to configure your MQTT client before publishing device data.


After creating the required credential:

  • Connect your device using HTTP or MQTT. See Connecting a Device.
  • Configure your device to begin sending data to StatStream.