Skip to main content
Event Callbacks / Hooks

Creates an event hook

Creates an event hook. callbackUrl must be reachable and respond with 200OK on a POST with the payload [ 'check' => true ]

POST
/hooks
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create an event hook

callbackIdstring | null

(Optional) Callback ID

callbackUrlstringrequired

Callback URL

eventTypeenum<string> | null

(Optional) Event Type

Available options: provision, restore-server, change-profile, set-state, delete, backup, set-hostnames, update-webroot, setup-ssl, install-wordpress, manage-wordpress, manage-shelluser, manage-keys, toggle-passwordauth, manage-mysql, manage-dbuser, manage-ftpuser, set-php-settings, cronjob, pull-file, push-file, delete-file, execute-file

Response

application/json

Hook Created

callbackUrlstring

Callback URL

filtersobject[]

Event filters

idinteger

Hook ID