Back to explore

messaging

MQ

Credits: 0.000001

Publish

POST /v1/mq/Publish

Publish a message. Specify a topic to group messages for a specific topic.

Request

messageobject

The json message to publish

topicstring

The topic to publish to

Response

{}

Request

Response

{}

Credits: 0.000001

Subscribe

POST /v1/mq/Subscribe

Subscribe to messages for a given topic.

Request

topicstring

The topic to subscribe to

Response

messageobject

The next json message on the topic

topicstring

The topic subscribed to

Request

Response

{
    "topic": "events",
    "message": {
        "id": "1",
        "type": "signup",
        "user": "john"
    }
}