Skip to content

Web hosting ​

Web hosting packages and what is in them: databases, domains, e-mail addresses and accounts, FTP accounts (product family hosting, scope console-hosting beta, or user / user:read / products:read).

MethodPath
GET/hostingsyour hosting packages
GET/hostings/locationshosting locations
GET/hostings/{hosting}one package with its usage and limits
DELETE/hostings/{hosting}delete; body name = the package's name
GET, POST/hostings/{hosting}/databaseslist, create
GET, PUT, DELETE/hostings/{hosting}/databases/{database}read, change, delete
GET, POST/hostings/{hosting}/domainslist, add
GET, PUT, DELETE/hostings/{hosting}/domains/{domain}read, change, remove
GET, POST/hostings/{hosting}/emailslist, create addresses
GET, PUT, DELETE/hostings/{hosting}/emails/{email}read, change, delete an address
POST, DELETE/hostings/{hosting}/emails/{email}/email-accountcreate, delete the mailbox of an address
PUT/hostings/{hosting}/emails/{email}/email-account/updatechange the mailbox password
GET, POST/hostings/{hosting}/ftp-accountslist, create
GET, PUT, DELETE/hostings/{hosting}/ftp-accounts/{ftp_account}read, change, delete

{hosting} is the package's id. Databases, domains, e-mail addresses and FTP accounts inside a package are addressed by their numeric id from the lists.

New packages are ordered through orders (family hosting, see Order attributes).

Packages ​

GET /hostings (paginated, sorted by name) and GET /hostings/{hosting} return the package with attributes: its usage and limits - disk space, traffic, databases, subdomains, e-mail addresses, accounts and forwarders, FTP accounts (each as limit and …_used). A reseller's end customer gets only usage and limits, not the reseller's subscription or price.

Every package carries provisioning_status beta: provisioning while its account is being created (then attributes is null and every other request on it - databases, domains, e-mail, FTP, delete - answers 409, error: provisioning), null when ready - see Products being set up.

GET /hostings/locations lists the locations: [{id, name, active}].

Delete a package ​

http
DELETE /v1/hostings/{hosting}
{"name": "<package name>"}

→ 204; a wrong name answers 422.

Databases ​

FieldCreateChange
passwordrequiredoptional
descriptionoptionaloptional
bash
curl -X POST https://console.anikeen.com/api/v1/hostings/01JC…/databases \
  -H "Authorization: Bearer $ANIKEEN_TOKEN" -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"password":"a-long-random-password","description":"shop"}'

Lists and reads show at least id, databasename, description, size (see below). PUT returns the changed database, DELETE answers 204.

Domains ​

FieldCreateChange
domainrequired-the domain; its DNS records must point to the package
descriptionoptionaloptional
letsencryptoptionaloptionaltrue for a Let's Encrypt certificate (the DNS records must allow it)
selectserveraliasoptionaloptional0, 1 or 2
documentroot-optionalthe document root, relative to the package's web directory
openbasedir_path-optional0, 1 or 2
ssl_redirect-optionalredirect HTTP to HTTPS
email_only-optionaluse the domain for e-mail only

Lists and reads show at least id, domain, description, letsencrypt. When the hosting panel rejects a request, the API answers 422 with its message.

E-mail addresses ​

FieldCreateChange
email_partrequired-the part before the @, max. 64
domainrequired-a domain of the package, max. 64
descriptionoptionaloptional
destination-optionalforwarding destination(s)
iscatchall-optionalcatch-all address for the domain

Lists and reads show at least id, email, description, iscatchall, imap, quota.

Mailbox (e-mail account) ​

An address becomes a mailbox when it has an e-mail account:

RequestBody
POST …/emails/{email}/email-account{"password": "…"} (required)
PUT …/emails/{email}/email-account/update{"password": "…"} (required) → 204
DELETE …/emails/{email}/email-account→ 204

FTP accounts ​

FieldCreateChange
pathrequiredrequired
passwordrequiredoptional
descriptionoptionaloptional

Lists and reads show at least id, username, homedir, description, quota_size.

Fields shown ​

Members of the package's team get the full records of the hosting panel. A reseller's end customer gets only the fields listed in each section above (and, for the package, its usage and limits).

Anikeen Console documentation