Domain > Contact

Create Contact

Create a Contact

post/2/domains/accounts/{account}/contacts

Path parameters

accountstring required

Request body

citystring required

City name of the contact

companystring

Company name of the contact

country_codestring required

Country code of the contact (ISO 3166-1 alpha-2)

emailstring required

Email of the contact

faxstring nullable

Fax of the contact

first_namestring required

First name of the contact

languagestring required

Language code of the contact

last_namestring required

Last name of the contact

phonestring required

Phone number of the contact

postal_codestring required

Postal code of the contact

statestring nullable

State of the contact

street1string required

Street address of the contact

street2string nullable

Street address of the contact

type'"Association"' | '"Organization"' | '"Other"' | '"Person"' required

Type of the contact|example:individual

Example request

{
  "city": "Les Acacias",
  "company": "Infomaniak",
  "country_code": "CH",
  "email": "contact@example.com",
  "fax": "+41.223456790",
  "first_name": "John",
  "last_name": "Doe",
  "phone": "+41.223456789",
  "postal_code": "1227",
  "state": "Genève",
  "street1": "Rue Eugène Marziano 25",
  "street2": "Batiment 43"
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "address_type": "loc",
    "first_name": "John",
    "last_name": "Doe",
    "company": "Infomaniak",
    "street1": "Rue Eugène Marziano 25",
    "street2": "Batiment 43",
    "street3": "Etage 3",
    "postal_code": "1227",
    "city": "Les Acacias",
    "state": "Genève",
    "country_code": "CH",
    "id": 12345,
    "type": "Organization",
    "phone": "+41.223456789",
    "fax": "+41.223456790",
    "email": "contact@mydomain.ch",
    "validated_at": 1702908000,
    "created_at": 1702908000,
    "pending_modification": {
      "created_at": 1702908000,
      "associated_domains": [
        {
          "id": 1,
          "name": "mydomain.ch"
        }
      ],
      "associated_domains_count": 5000
    },
    "associated_domains": [
      {
        "id": 1,
        "name": "mydomain.ch"
      }
    ],
    "associated_domains_count": 5000
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.