Skip to content
API Reference

Automate your hosting infrastructure with our comprehensive REST API. Manage domains, DNS, email, and more programmatically.

  • 01

    API Keys

    Secure token-based authentication with scoped permissions.

  • 02

    Rate Limiting

    Generous rate limits with clear headers and retry guidance.

  • 03

    Webhooks

    Real-time event notifications for automated workflows.

  • 04

    SDKs

    Official SDKs for PHP, Python, Node.js, and Go.

Authentication

All API requests require a Bearer token. Generate your API key from the dashboard.

bash
curl -X GET https://api.hostk.com/v1/domains \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Endpoints

  • GET/api/v1/domainsList all domains in your account
  • POST/api/v1/domainsRegister a new domain
  • GET/api/v1/hostingList hosting services
  • POST/api/v1/dns/recordsCreate DNS record
  • GET/api/v1/sslList SSL certificates
  • POST/api/v1/backups/createCreate new backup
  • GET/api/v1/billing/invoicesList invoices
  • POST/api/v1/email/accountsCreate email account