/services/domains/v1/domains/get
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
domain_id |
integer | Yes | 42 |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
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 |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
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())
{
"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"
}
}