The receive command retrieves the first message from the queue in the Event Hub.
JSON Input Data Format

    {
        "id": string,
        "delete": boolean
    }

id * | Specifies the ID of the Event Hub.
delete * | Determines whether the message is deleted from the queue. Set to true to delete the message.

* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.
Successful Response

    {
        "result": "OK",
        "payload": [
            {
                "exchange": "",
                "message_count": 0,
                "payload": "Some Message...",
                "payload_bytes": 14,
                "payload_encoding": "string",
                "properties": [],
                "redelivered": false,
                "routing_key": "myevents"
            }
        ]
    }

Failed Response

    {
        "result": "ERR",
        "message": "Error message ..."
    }