List domain contacts
This can be used to get a list of available domain contacts. Use the query
parameter
to filter the list.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/contacts
HTTP/1.1 200 OK
{
"page": 1,
"limit": 25,
"pages": 1,
"total": 1,
"_links": {
"self": {
"href": "/v1/contacts?page=1&limit=25"
},
"first": {
"href": "/v1/contacts?page=1&limit=25"
},
"last": {
"href": "/v1/contacts?page=1&limit=25"
}
},
"_embedded": {
"contacts": [
{
"id": 1,
"identifier": "CD1101-001",
"company": null,
"gender": "M",
"first_name": "John",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"additional": null,
"country": {
"iso": "DE",
"name": "Deutschland"
},
"email": "john.doe@example.com",
"phone": "+49 451 709970",
"fax": null,
"_links": {
"self": {
"href": "/v1/contacts/1"
}
}
}
]
}
}
Name | Type | Required | Description |
---|---|---|---|
query | string | Query to search for a specific contact | |
page | integer | Page to retrieve | |
limit | integer | Number of elements to retrieve |
Get a domain contact
Use this to get a specific domain contact by its ID.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
https://api.checkdomain.de/v1/contacts/{contact}
HTTP/1.1 200 OK
{
"id": 1,
"identifier": "CD1101-001",
"company": null,
"gender": "M",
"first_name": "John",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"additional": null,
"country": {
"iso": "DE",
"name": "Deutschland"
},
"email": "john.doe@example.com",
"phone": "+49 451 709970",
"fax": null,
"_links": {
"self": {
"href": "/v1/contacts/1"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
contact | integer | The contact identifier |
Code | Description |
---|---|
200 | Ok |
404 | Contact not found |
Create a domain contact
With this endpoint you are able to create new domain contacts for your account to use when registering new domains or updating existing domains.
Please note, that you have to prefix your contact identifier with your customer number. In the example below the customer number is CD1101. In this case the identifier has to start with CD1101.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "{Request Data}" \
--request POST \
https://api.checkdomain.de/v1/contacts
{
"type": "Owner",
"identifier": "CD1101-001",
"gender": "M",
"first_name": "John",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"country": "DE",
"email": "john.doe@example.com",
"phone": "+49 451 709970"
}
HTTP/1.1 200 OK
{
"id": 1,
"identifier": "CD1101-001",
"type": "Owner",
"gender": "M",
"company": null,
"title": null,
"first_name": "John",
"last_name": "Doe",
"additional": null,
"street": "Große Burgstraße 27/29",
"city": "Lübeck",
"postal_code": "23552",
"country": {
"iso": "DE",
"name": "Germany"
},
"state": null,
"email": "info@api.checkdomain.de",
"phone": "+49 451 709970",
"mobile_phone": null,
"fax": null,
"_links": {
"self": {
"href": "/v1/contacts/1"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
identifier | string | Yes | Custom alphanumeric identifier prefixed with your customer number. |
Choices for identifier |
|||
type | string | Yes | Type (Owner, Admin) |
Choices for type |
|||
gender | string | Yes | Gender (M: Male, F: Female) |
Choices for gender |
|||
company | string | Company name | |
title | string | Title | |
first_name | string | Yes | First name |
last_name | string | Yes | Last name |
additional | string | Additional address information | |
street | string | Yes | Street |
city | string | Yes | City |
postal_code | string | Yes | Postal Code |
country | string | Yes | Country ISO Code |
state | string | State/Province | |
string | Yes | eMail Address | |
phone | string | Yes | Phone number |
mobile_phone | string | Mobile phone number | |
fax | string | Fax number |
Code | Description |
---|---|
200 | Ok |
400 | Validation failed |
Update domain contact
With this endpoint you are able to update parts of a specific domain contact.
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "{Request Data}" \
--request PATCH \
https://api.checkdomain.de/v1/contacts/{contact}
{
"first_name": "Jane"
}
HTTP/1.1 200 OK
{
"id": 1,
"identifier": "CD1101-001",
"company": null,
"gender": "M",
"first_name": "Jane",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"additional": null,
"country": {
"iso": "DE",
"name": "Deutschland"
},
"email": "john.doe@example.com",
"phone": "+49 451 709970",
"fax": null,
"_links": {
"self": {
"href": "/v1/contacts/1"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
contact | integer | The contact identifier |
Name | Type | Required | Description |
---|---|---|---|
identifier | string | Custom alphanumeric identifier prefixed with your customer number | |
type | string | Type (Owner, Admin) | |
gender | string | Gender (M: Male, F: Female) | |
company | string | Company name | |
title | string | Title | |
first_name | string | First name | |
last_name | string | Last name | |
additional | string | Additional address information | |
street | string | Street | |
city | string | City | |
postal_code | string | Postal Code | |
country | string | Country ISO Code | |
state | string | State/Province | |
string | eMail Address | ||
phone | string | Phone number | |
mobile_phone | string | Mobile phone number | |
fax | string | Fax number |
Code | Description |
---|---|
200 | Ok |
400 | Validation failed |
403 | Occurs when you try to update a domain contact which has currently active domains linked to it. |
Replace a domain contact
Use this to completely replace an existing domain contact with new values
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data "{Request Data}" \
--request PUT \
https://api.checkdomain.de/v1/contacts/{contact}
{
"identifier": "CD1101-001",
"gender": "F",
"first_name": "Jane",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"country": "DE",
"email": "jane.doe@example.com",
"phone": "+49 451 709970"
}
HTTP/1.1 200 OK
{
"id": 1,
"identifier": "CD1101-001",
"company": null,
"gender": "F",
"first_name": "Jane",
"last_name": "Doe",
"street": "Große Burgstraße 27/29",
"postal_code": "23552",
"city": "Lübeck",
"additional": null,
"country": {
"iso": "DE",
"name": "Deutschland"
},
"email": "jane.doe@example.com",
"phone": "+49 451 709970",
"fax": null,
"_links": {
"self": {
"href": "/v1/contacts/1"
}
}
}
Name | Type | Required | Description |
---|---|---|---|
contact | integer | The contact identifier |
Name | Type | Required | Description |
---|---|---|---|
identifier | string | Custom alphanumeric identifier prefixed with your customer number | |
type | string | Type (Owner, Admin) | |
gender | string | Gender (M: Male, F: Female) | |
company | string | Company name | |
title | string | Title | |
first_name | string | First name | |
last_name | string | Last name | |
additional | string | Additional address information | |
street | string | Street | |
city | string | City | |
postal_code | string | Postal Code | |
country | string | Country ISO Code | |
state | string | State/Province | |
string | eMail Address | ||
phone | string | Phone number | |
mobile_phone | string | Mobile phone number | |
fax | string | Fax number |
Code | Description |
---|---|
200 | Ok |
400 | Validation failed |
403 | Occurs when you try to replace a domain contact which has currently active domains linked to it. |
Delete domain contact
This deletes an existing contact if it is not linked to any domain. As long as the contact is linked to a domain this will fail and the response code will be 403 (Forbidden).
$ curl --header "Authorization: Bearer {token}" \
--header "Accept: application/json" \
--request DELETE \
https://api.checkdomain.de/v1/contacts/{contact}
HTTP/1.1 204 No Content
Name | Type | Required | Description |
---|---|---|---|
contact | integer | Yes | The contact identifier |
Code | Description |
---|---|
204 | Ok |
403 | Occurs when you try to delete a domain contact which has currently active domains linked to it. |