Developer documentation
Customer API endpoints and examples
List your servers, set up mailboxes or bring invoices into your accounting system. Explore HTTP requests, examples and token permissions for these tasks and for managing domains.
curl "https://cp.hostworld.de/api/v1/me" \
-H "Authorization: Bearer $HOSTWORLD_TOKEN"{
"data": {
"customer_number": "10001",
"scopes": ["read"]
}
}Set HOSTWORLD_TOKEN to your application token before running this request.
Hosting and contracts
Build your dashboard from the products in your account. The hosting number connects each product to the commands your dashboard can offer for that server.
GET /hosting/vps/12345/capabilitiesBase URLhttps://cp.hostworld.de/api/v1
- GET
/hostings readLists your hosting products with their hosting numbers and product lines.
- GET
/hosting/{line}/{productHostingNumber}/capabilities readReturns the views and commands available for this hosting number.
- GET
/hosting/vps/{productHostingNumber}/status readReturns the power status of the selected VPS.
- POST
/hosting/vps/{productHostingNumber}/start server:controlRequests a VPS start. Check the status to see when it comes online.
- GET
/services readReturns the contracts in your account and their details.
- GET
/orders readShows your orders and their current status.
Email hosting
Connect mailbox management to your internal systems. When someone joins your team, your application can create their mailbox and assign storage.
GET /hosting/email-hosting/12345/mailboxes- GET
/hosting/email-hosting/{productHostingNumber}/mailboxes readLists the mailboxes in the selected email hosting plan.
- POST
/hosting/email-hosting/{productHostingNumber}/createMailbox server:controlCreates a mailbox in your email hosting plan.
- POST
/hosting/email-hosting/{productHostingNumber}/changeMailboxQuota server:controlChanges the storage quota for the selected mailbox.
Domains and prices
Connect your shop’s search field to the availability check. Show the registration price for an available domain and bring the next renewal date into your customer portal.
{
"domain": "example.org",
"renew_next": "2027-06-15T00:00:00Z"
}- GET
/domains?sort=expires_at readReturns domains sorted by expiration date. Use renew_next for the next contract renewal and expires_at for the domain expiration date.
- GET
/domains/availability?name=example.org readSend the full domain name from your search field to check availability.
- GET
/domains/pricing?tld=de readReturns account prices by extension and term, with separate prices for registrations, transfers and renewals.
Domain orders
Once your customer confirms the price, your shop can order the domain. Send a unique Idempotency-Key header for each new order. If you retry the same order, reuse its original key.
{
"domain": "example.org",
"authcode": "<AUTH-CODE>"
}- POST
/domains orders:writeSend domain, payment_method, the agreed gross price in confirm_price and consent in accept_terms. If you receive 409 price_changed, ask the customer to confirm the new price.
- POST
/domains/transfer orders:writeAdd the auth code from the current provider to the order details in the authcode field.
- POST
/domains/{domain}/cancellation orders:writeSchedules cancellation for the next date permitted by the contract.
- DELETE
/domains/{domain}/cancellation orders:writeRequests withdrawal of the cancellation. HTTP 202 means approval is pending.
DNS and nameservers
For a Let’s Encrypt DNS-01 challenge, your ACME client creates a TXT record. It uses the API of the provider that hosts the authoritative zone.
{
"type": "TXT",
"name": "_acme-challenge",
"content": "<ACME-DNS-01>",
"ttl": 300
}- GET
/domains/{domain}/dns readLists the records in the zone. The editable field identifies records you can change.
- POST
/domains/{domain}/dns dns:writeSend the ACME client’s challenge value in content. The response returns the new record ID in data.id.
- DELETE
/domains/{domain}/dns/{recordId} dns:writeAfter validation, deletes the TXT record with the specified ID.
- GET
/domains/{domain}/nameservers readLists the assigned nameservers and indicates whether you can change the delegation.
- PUT
/domains/{domain}/nameservers domains:writeSets the full list of new nameservers for the domain.
Invoices and PDFs
Retrieve invoices for the period you’re closing. Use the invoice ID to match each entry in your accounts to its PDF.
GET /invoices?from=2027-01-01&to=2027-01-31- GET
/invoices billing:readLists invoices and credit notes. Use from and to to select the accounting period.
- GET
/invoices/{invoiceId}/pdf billing:readDownloads the PDF for the specified invoice ID.