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.

Connect to your account
curl "https://cp.hostworld.de/api/v1/me" \
  -H "Authorization: Bearer $HOSTWORLD_TOKEN"
200 OKSample response · excerpt
{
  "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.

ExampleActions for a VPS
GET /hosting/vps/12345/capabilities

Base URL
https://cp.hostworld.de/api/v1

GET /hostings
read

Lists your hosting products with their hosting numbers and product lines.

GET /hosting/{line}/{productHostingNumber}/capabilities
read

Returns the views and commands available for this hosting number.

GET /hosting/vps/{productHostingNumber}/status
read

Returns the power status of the selected VPS.

POST /hosting/vps/{productHostingNumber}/start
server:control

Requests a VPS start. Check the status to see when it comes online.

GET /services
read

Returns the contracts in your account and their details.

GET /orders
read

Shows 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.

ExampleMailboxes in an email hosting plan
GET /hosting/email-hosting/12345/mailboxes
GET /hosting/email-hosting/{productHostingNumber}/mailboxes
read

Lists the mailboxes in the selected email hosting plan.

POST /hosting/email-hosting/{productHostingNumber}/createMailbox
server:control

Creates a mailbox in your email hosting plan.

POST /hosting/email-hosting/{productHostingNumber}/changeMailboxQuota
server:control

Changes 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.

ExampleRenewal in a domain calendar
{
  "domain": "example.org",
  "renew_next": "2027-06-15T00:00:00Z"
}
GET /domains?sort=expires_at
read

Returns 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
read

Send the full domain name from your search field to check availability.

GET /domains/pricing?tld=de
read

Returns 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.

ExampleAuth code for a transfer
{
  "domain": "example.org",
  "authcode": "<AUTH-CODE>"
}
POST /domains
orders:write

Send 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:write

Add the auth code from the current provider to the order details in the authcode field.

POST /domains/{domain}/cancellation
orders:write

Schedules cancellation for the next date permitted by the contract.

DELETE /domains/{domain}/cancellation
orders:write

Requests 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.

ExampleTXT record for DNS-01
{
  "type": "TXT",
  "name": "_acme-challenge",
  "content": "<ACME-DNS-01>",
  "ttl": 300
}
GET /domains/{domain}/dns
read

Lists the records in the zone. The editable field identifies records you can change.

POST /domains/{domain}/dns
dns:write

Send the ACME client’s challenge value in content. The response returns the new record ID in data.id.

DELETE /domains/{domain}/dns/{recordId}
dns:write

After validation, deletes the TXT record with the specified ID.

GET /domains/{domain}/nameservers
read

Lists the assigned nameservers and indicates whether you can change the delegation.

PUT /domains/{domain}/nameservers
domains:write

Sets 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.

ExampleOne month’s invoices
GET /invoices?from=2027-01-01&to=2027-01-31
GET /invoices
billing:read

Lists invoices and credit notes. Use from and to to select the accounting period.

GET /invoices/{invoiceId}/pdf
billing:read

Downloads the PDF for the specified invoice ID.