Callback

Request Information
URL POST you_will_receive_this_via_a_callback
CategoryOther

Description

You can also get events from the hosting api in a callback request. These requests are sent from the hosting api to a callback endpoint on your end. This is not a request in the api you can call.

the request body will contain a HostingEventCallbackRequest object.

JSON
{
    "hostingEvents": [
        {
            "id": 87,
            "hostingIdentifier": "1_8e9f124f59e1d3a494e836efd520cacedcb3eb0e",
            "domainName": "test1234blorp.com",
            "created": 1647523663,
            "message": "Creating hosting failed",
            "type": "job",
            "jobId": 381,
            "jobType": "createHosting",
            "jobStatus": "failed",
            "responseId": "1_8617fe52e63fe2dfcab658228cc9b6c1e0829b3e",
            "context": {
                "step": "Creating customer",
                "server": "pleskdev"
            }
        },
        {
            "id": 89,
            "hostingIdentifier": "1_bbd2e15a808fd50e00134e24495da2446f5c70bd",
            "domainName": "test1234blorp.com",
            "created": 1647523686,
            "message": "Creating hosting failed",
            "type": "job",
            "jobId": 382,
            "jobType": "createHosting",
            "jobStatus": "failed",
            "responseId": "1_169bff187781657a610bbbd167265a7f04519d4e",
            "context": {
                "step": "Creating customer",
                "server": "pleskdev"
            }
        },
        {
            "id": 95,
            "hostingIdentifier": "1_57b41138112a9e0c76879cca1e5d5af38def8d60",
            "domainName": "test1234blorp.com",
            "created": 1647871876,
            "message": "Creating hosting failed",
            "type": "job",
            "jobId": 385,
            "jobType": "createHosting",
            "jobStatus": "failed",
            "responseId": "1_463e6953b959f6330518d0b09ceb8ae72da876df",
            "context": {
                "step": "Creating domain",
                "server": "pleskdev"
            }
        },
        {
            "id": 256,
            "hostingIdentifier": "1_34e36e087381022b6286fd30d86731a08de768af",
            "domainName": "example-2022-4-5-14-16-13.com",
            "created": 1649773182,
            "message": "found malicious files",
            "type": "malware",
            "context": {
                "maliciousFiles": [
                    "httpdocs\/testdonttouchthis"
                ],
                "foundAt": 1647943387
            }
        }
    ]
}