Domain Registration API
POST /services/domains/v1/domains/get Auth

Get Domain

Request Body Required

FieldTypeRequiredDescriptionExample
domain_id integer Yes 42

Responses

200
404
422
401
403
429
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data object
data.id string
data.domain_name string
data.tld string
data.status string
data.expiry_date string
data.auto_renew boolean
data.is_locked boolean
data.project_id string
data.is_connected_to_project boolean
data.is_wemasy_hosted boolean
data.linked_project object|null
data.dns_records string
data.nameservers string
data.supports_domain_lock boolean
data.supported_dns_record_types array
data.nameserver_limits object
data.dns_configuration_mode string
data.dns_template_id string
data.dns_template object|null
data.nameserver_group_id string
data.nameserver_group object|null
data.holder_profile object|null
data.contacts object
data.activity_logs string
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
Retry-After integer Seconds until the rate limit resets 60
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
curl -X POST "https://api.wemasy.nl/api/services/domains/v1/domains/get" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_id": 42
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/domains/get', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "domain_id": 42
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->post('https://api.wemasy.nl/api/services/domains/v1/domains/get', {
    "domain_id": 42
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "domain_id": 42
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/domains/get", headers=headers, json=data)
print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": {
        "id": "string",
        "domain_name": "string",
        "tld": "string",
        "status": "string",
        "expiry_date": "string",
        "auto_renew": true,
        "is_locked": true,
        "project_id": "string",
        "is_connected_to_project": true,
        "is_wemasy_hosted": true,
        "linked_project": {
            "id": "string",
            "title": "string"
        },
        "dns_records": "string",
        "nameservers": "string",
        "supports_domain_lock": true,
        "supported_dns_record_types": [],
        "nameserver_limits": {
            "min": 0,
            "max": 0
        },
        "dns_configuration_mode": "string",
        "dns_template_id": "string",
        "dns_template": {
            "id": "string",
            "name": "string",
            "description": "string"
        },
        "nameserver_group_id": "string",
        "nameserver_group": {
            "id": "string",
            "name": "string",
            "nameservers": "string"
        },
        "holder_profile": {
            "id": "string",
            "profile_name": "string",
            "first_name": "string",
            "last_name": "string",
            "email": "string",
            "city": "string",
            "country": "string"
        },
        "contacts": {
            "registrant": {
                "id": "string",
                "profile_name": "string",
                "first_name": "string",
                "last_name": "string",
                "email": "string",
                "city": "string",
                "country": "string"
            },
            "admin_c": {
                "id": "string",
                "profile_name": "string",
                "first_name": "string",
                "last_name": "string",
                "email": "string",
                "city": "string",
                "country": "string"
            },
            "tech": {
                "id": "string",
                "profile_name": "string",
                "first_name": "string",
                "last_name": "string",
                "email": "string",
                "city": "string",
                "country": "string"
            },
            "billing": {
                "id": "string",
                "profile_name": "string",
                "first_name": "string",
                "last_name": "string",
                "email": "string",
                "city": "string",
                "country": "string"
            },
            "restricted_fields": []
        },
        "activity_logs": "string"
    }
}

Try It
Request Body Required

Export