Skip to main content

APIs

FairCom MQ's API documentation for software developers, equipment manufacturers, and automation engineers

You configure FairCom MQ using FairCom's JSON MQ API.

This API is based on the jsonAction protocol, which POSTs JSON requests to one endpoint on a server and returns JSON responses. This section defines the JSON payloads that can be POSTed to the FairCom server over HTTP, HTTPS, WS, and WSS using the endpoint /api, such as https://localhost:8443/api.

The following sections are a listing of all available actions for configuring FairCom MQ.

Important

When using the Property summary tables, if there is additional information that the Property summary tables do not provide the property has a link to the property topic that contains the comprehensive explanation.

Sessions

Services

Topics

This section provides several actions to configure, delete, describe, and list MQTT topics. These actions are part of the JSON MQ API and are available in FairCom Edge and FairCom MQ.

Action

Description

"configureTopic"

"configureTopic" configures a topic and its many settings. You can change a topic to use a different integration table and control how MQTT data is transformed before inserting it into the integration table. You can also forward MQTT messages to other MQTT topics.

"deleteTopic"

"deleteTopic" deletes an MQTT topic.

"describeTopics"

"describeTopics" returns all available information about specified MQTT topics.

"listTopics"

"listTopics" lists the names of MQTT topics that the server is tracking.

Broker connections

The JSON Hub API: broker connection actions are part of the JSON MQ API. This section provides actions to configure, delete, describe, and list broker connections.

Action

Description

"configureBrokerConnection"

"configureBrokerConnection" creates or updates a reusable connection to an external broker, which may be another instance of FairCom MQ, FairCom Edge, or an MQTT broker from another vendor.

"deleteBrokerConnection"

"deleteBrokerConnection" deletes a previously created broker connection.

"describeBrokerConnections"

"describeBrokerConnections" returns information about specified broker connections.

"listBrokerConnections"

"listBrokerConnections" lists all available broker connections that have been created.

Integration tables

Action

Description

"alterIntegrationTable""alterIntegrationTable"

"alterIntegrationTable" alters table settings that are safe to modify, such as adding new fields.

"createIntegrationTable""createIntegrationTable"

"createIntegrationTable" creates an integration table.

"deleteIntegrationTables""deleteIntegrationTables"

"deleteIntegrationTables" deletes an integration table as long as there are no dependencies on it.

"describeIntegrationTables""describeIntegrationTables"

"describeIntegrationTables" returns all available information about each specified integration table.

"listIntegrationTables""listIntegrationTables"

"listIntegrationTables" lists only the integration tables in a given database.

Outputs

Action

Description

"alterOutput""alterOutput"

"alterOutput" configures an existing integration.

"createOutput""createOutput"

"createOutput" creates and new integration.

"deleteOutput""deleteOutput"

"deleteOutput" removes a previously created integration.

"describeOutputs""describeOutputs"

"describeOutputs" returns all available information about each specified output.

"listOutputs""listOutputs"

"listOutputs" obtains a list of the names of previously created outputs.