Callbacks
The MyOwnFreeHost API allows you to set up a callback URL that will be called when a user accounts gets activated, suspended or unsuspended, or when an SQL cluster gets added to a user.
Setup
1. Log in to the MyOwnFreeHost reseller panel
This can be accessed at https://panel.myownfreehost.net/index.php (opens in a new tab) and the page should look something like this:

And you should be logged in. The dashboard looks something like this:

2. Go to the API setup page
This can be done by clicking on the "API" link in the sidebar, and then clicking on "Setup WHM API". Once you have done that, this is what the page should look like:

Then, select the domain name you want to create the accounts on and click on "Get Keys/ Set allow ip address".
3. Add the callback URL
Once you are there, add your callback URL to the "API Callback URL" field. It should look something like this:
In this example the URL https://example.com/callback is used.
Then, click on "Update Settings" and everything should be set up!
Callbacks
The following callbacks are available:
Account activation
With the account activation callback, you will get the following form values:
username <vpanel_username>status ACTIVATEDcomments GENERIC ACTIVATION
SQL Cluster addition
With the SQL cluster addition callback, you will get the following form values:
Form values:username <vpanel_username>status sql102comments SQL_SERVER
Account suspension
With the account suspension callback, you will get the following form values:
Form values:username <vpanel_username>status SUSPENDEDcomments OTHER_CLOSE; REQUESTED
Account unsuspension
With the account unsuspension callback, you will get the following form values:
Form values:username <vpanel_username>status REACTIVATEcomments GENERIC REACT
Account deletion
With the account deletion callback, you will get the following form values:
Form values:username <vpanel_username>status DELETEcomments <vpanel_username>
When does an account get deleted? An account usually gets deleted about 60 days after a suspension. In the case that an account went into an auto-idle state it's about 2 days.