Verify Slack® Webhook connection

This function verifies the connection to a Slack® WebHook. You can specify Slack accounts in the Contact Information section of WHM's Basic WebHost Manager Setup interface ( Home >> Server Configuration >> Basic WebHost Manager Setup ).

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/verify_slack_access
Request samples
whmapi1 --output=jsonpretty \
  verify_slack_access
Response samples
application/json
{
  • "data": {
    • "results": [
      • {
        • "result": {
          • "message_id": null,
          • "payload": {
            • "content": null,
            • "headers": {
              • "access-control-allow-origin": null,
              • "content-type": null,
              • "date": null,
              • "referrer-policy": null,
              • "server": null,
              • "strict-transport-security": null,
              • "transfer-encoding": null,
              • "vary": null,
              • "x-frame-options": null,
              • "x-slack-backend": null,
              • "x-via": null
              },
            • "protocol": null,
            • "reason": null,
            • "status": null,
            • "success": null,
            • "url": null
            }
          },
        • "url": null
        }
      ]
    },
  • "metadata": {
    • "command": "verify_slack_access",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}