cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

API Functions

Saher Al-Sous shared this idea 6 years ago
Completed

api v2 functions for subdomains (allow redirection configurations)


and API for mailing lists (create mailing lists and managing them and send emails through them)

Best Answer
photo

This functionality is available via UAPI and API 2.

Subdomains:

Mailing Lists:

We do not plan to add an API for sending an email to a mailing list at this time.

Comments (9)

photo
1

We can certainly improve our individual API support for these things - redirections and mailing lists. What would you like to see as far as overall api improvements? How could we make integrations with cPanel much easier?

photo
1

I use the API so that my clients on the website create their subdomains upon registration, but in case they had any typo we can't fix it without a direct action by the support team, meanwhile if there is the "redirect" feature in the API we can do the work within the php code!


the same issue for the mailing list, we have exhibitions and we want to notify our clients about the date & time of the coming exhibition, therefore if we can use the power of cpanel to create a mailing list automatically using PHP and add emails to it and send emails using crons everything will be done automatically!

photo
1

Saher Al-Sous wrote:

I use the API so that my clients on the website create their subdomains upon registration, but in case they had any typo we can't fix it without a direct action by the support team, meanwhile if there is the "redirect" feature in the API we can do the work within the php code!


the same issue for the mailing list, we have exhibitions and we want to notify our clients about the date & time of the coming exhibition, therefore if we can use the power of cpanel to create a mailing list automatically using PHP and add emails to it and send emails using crons everything will be done automatically!

It sounds like you'd need full CRUD (create, review, update, delete) actions on Subdomains, Redirects, Mailing Lists and Mailing Lists Subscribers. That about right?

photo
1

yes for create, update and delete... no idea what i will be using review for!


but this will means that developers will not be working to create a complicated virtual router for their clients sub domains. and also no need for any additional mailing list or mailing list administrator or whatsoever because the cpanel contain these already...

it is how we run them!

photo
1

by the way we already use the API as i said, to create sub domains and FTP folders and accounts for our clients, and we direct the sub domain to the needed path, but there are other types of subdomain that aresn't directed to folders, but to URLs, that are generated dynamically... that is why the redirect feature is needed in subdomain API

photo
1

do you guys use UAPI or just API1 and API2?

photo
1

i think they use Api2

photo
1

I hope that the request will be accepted and added to the features

photo
1

This functionality is available via UAPI and API 2.

Subdomains:

Mailing Lists:

We do not plan to add an API for sending an email to a mailing list at this time.

Leave a Comment
 
Attach a file