The following tables list cloud API operations available for use in Message Queue for MQTT.

Note Each successful call to a cloud API operation increases the number of messaging transactions per second (TPS) by one. Therefore, you are charged for the call. For more information, see Overview.

Token management

Token management operations are called by your application server.

Operation Description
ApplyToken Applies for a temporary access token.
QueryToken Verifies the validity of a token.
RevokeToken Revokes a token.

Group management

Operation Description
CreateGroupId Creates a group ID on a specified Message Queue for MQTT instance.
DeleteGroupId Deletes a group ID from a specified Message Queue for MQTT instance.
ListGroupId Queries all group IDs of a specified Message Queue for MQTT instance.

Message sending

Operation Description
SendMessage Sends a single message from an application on a cloud server to Message Queue for MQTT.

Device status query

Operation Description
QuerySessionByClientId Queries the connection status of a device based on the client ID.
BatchQuerySessionByClientIds Batch queries the connection status of multiple devices based on multiple client IDs.

Unique-certificate-per-device

Operation Description
RegisterDeviceCredential Creates an access credential for a device.
GetDeviceCredential Queries the access credential of a device.
UnRegisterDeviceCredential Deletes the access credential of a device.
RefreshDeviceCredential Updates the access credential of a device.