mijn.host API
  1. Getting started
mijn.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • List domains
      • Get domain
      • Update domain
      • Cancel domain
      • Get DNS records
      • Update DNS records
      • Update single DNS record
      • Get auth code
      • Cancel domain deletion
    • Contacts
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • Nameservers
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • DNS templates
      • List templates
      • Create template
      • Update template
      • Get template
    • Availability
      • Check domain availability
    • Order
      • Order domain
  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 2024-06-26 14:12:51
Previous
Base url
Next
Response codes
Built with