gkapi / Internal MQTT server documentation

General information

Use any MQTT client to connect to:

Topics information

Commands

Get printer information

Publish to anycubic/anycubicCloud/v1/slicer/printer/20024/[YOUR_PRINTER_ID]/info:

{
    "type": "info",
    "action": "query",
    "msgid": "02fd3987-a2ff-244e-7c95-7fe257a9ef70",
    "timestamp": 1660201929871
}

Reports from anycubic/anycubicCloud/v1/printer/public/20024/[YOUR_PRINTER_ID]/info/report:

{
    "type": "info",
    "action": "report",
    "timestamp": 100107,
    "msgid": "747b3bf5-6c54-45a7-97bb-67507d78d160",
    "state": "done",
    "code": 200,
    "msg": "done",
    "data":
    {
        "printerName": "My Kobra 3",
        "urls":
        {
            "fileUploadurl": "http://[YOUR_PRINTER_IP]:18910/gcode_upload?s=OCL9W949OatvcjBvtmcerIbwT9k6TG7b",
            "rtspUrl": "http://[YOUR_PRINTER_IP]:18088/flv",
        },
        "project": null,
        "model": "Anycubic Kobra 3",
        "ip": "[YOUR_PRINTER_IP]",
        "version": "2.3.5.3",
        "state": "free",
        "temp":
        {
            "curr_hotbed_temp": 23,
            "curr_nozzle_temp": 28,
            "target_hotbed_temp": 0,
            "target_nozzle_temp": 0,
        },
        "print_speed_mode": 2,
        "fan_speed_pct": 0,
        "aux_fan_speed_pct": 0,
        "box_fan_level": 0,
    },
}

Change bed temperature

Publish to anycubic/anycubicCloud/v1/web/printer/20024/[YOUR_PRINTER_ID]/print:

{"type":"print","action":"update","timestamp":1733257941899,"msgid":"b2d0a5b0-b1b5-11ef-8e80-67dea82d3a00","data":{"taskid":"492102245","settings":{"target_hotbed_temp":60}}}