1. Getting started
mijn.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • List domains
      • Get domain
      • Update domain
      • Cancel domain
      • Cancel domain deletion
      • Get DNS records
      • Update DNS records
      • Update single DNS record
      • Get auth code
    • Contacts
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
      • Get profile
      • Update profile
    • Nameservers
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • DNS templates
      • List templates
      • Get template
      • Create template
      • Update template
      • Delete template
    • Availability
      • Check domain availability
    • Order
      • Order domain
    • Extensions
      • List domain extensions
      • Get domain extension
  • Virtual Private Servers
    • Backups
      • List backups
      • Create backup
      • Restore backup
    • List VPS instances
      GET
    • VPS details
      GET
    • Update VPS
      PUT
    • Restart VPS
      POST
    • Enable or disable rescue mode
      PUT
    • Cancel VPS
      DELETE
    • Cancel VPS deletion
      PUT
    • List available OS images
      GET
    • Reinstall VPS
      POST
  • Orders
    • List orders
      GET
    • Get order
      GET
    • Update order
      PUT
  • Affiliate
    • Commissions
      • List affiliate commissions
      • Get affiliate commission
    • Payments
      • List affiliate payments
      • Get affiliate payment
  • Account
    • Profile
      • Get account profile
      • Update account profile
    • Payment methods
      • List payment methods
      • Update default payment method
    • Invoices
      • List invoices
      • Get invoice
      • Download invoice PDF
    • Users
      • List account users
      • Get account user
      • Create account user
      • Update account user
    • Tickets
      • List support tickets
      • Get support ticket
      • Create support ticket
      • Reply to support ticket
  1. Getting started

Authentication

To securely interact with the mijn.host API, authentication is required using a API key-based mechanism. Each request to the mijn.host API must include your unique API key in the header. This method ensures that only authorized users can access and manage domain-related functions.

Authentication Method#

You must include an API-Key header in your requests, containing your API key. This key is assigned to you when you create an account and request access to the API.

API Key Header#

Header Name: API-Key
Value: Your unique API key

Example#

Here's how to include the API-Key header in an API request:

HTTP Request Example#

cURL Example#

Obtaining Your API Key#

To get your API key:
1.
Log in to your mijn.host account.
2.
Navigate to the API Access section in your account settings.
3.
Create a support ticket to obtain an API key

Security Best Practices#

Keep Your API Key Confidential: Treat your API key as a password. Do not share it publicly or expose it in client-side code.
Regenerate Keys if Compromised: If you suspect that your API key has been compromised, regenerate it immediately by contacting support.

Error Handling#

If your request lacks a valid API-Key header or contains an incorrect key, the API will respond with an authentication error.
Response Code: 401 Unauthorized
Error Message: No valid API key set

Example Error Response#

{
    "status": 401,
    "status_description": "No valid API key set"
}
Ensure every API request is authenticated correctly to avoid these errors and maintain seamless access to the mijn.host API.
Modified at 2026-03-17 13:01:33
Previous
Base url
Next
Response codes
Built with