Loading...

Knowledge Base

Add Contact via API

When you want to create a contact for domain registration. This article explains required parameters, contact types, TLD-specific requirements, and example API requests for adding a contact.


Description

Adds a Contact to the domain using the details provided.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
nameStringRequired

Name of the Contact

Note
  • Max length 255 characters (general) or 50 characters (.EU)

companyStringRequired

Name of the Company

Note
  • Max length 255 characters (general) or 100 characters (.EU)

  • In case of EuContact, if there is no associated Company, you may mention NA for this parameter.

  • In case of RuContact, the Company Name should have at least 2 words.

    If there is no associated Company, you may mention N A or Not Applicable for this parameter. You will encounter the following error message, if values containing a single word such as NA or N/A are mentioned:

    Attention

    Company Name should contain at least two words.

  • In case of EsContact, the company parameter is only required if the registrant is a non-individual/ company. If the registrant is an natural person/ individual, please do not pass the company parameter in the API request while creating a registrant contact. 
    Additionally, since the Administrative, Technical and Billing contacts must be natural persons/individuals only, please ensure you do not pass the company parameter in the API request while creating these contacts.
  • the contact ID created for a natural person should have the company name listed as 'N/A'
emailStringRequiredEmail address of the Contact
address-line-1StringRequiredFirst line of address of the Contact
Note
  • Max length 64 characters

  • For NycContact Contact type, a physical street address in the New York City must be provided.

cityStringRequiredName of the City
Note

Max length 64 characters

countryStringRequired

Country code as per ISO 3166-1 alpha-2

Note

For UkServiceContact Contact type, the country code can only be GB (United Kingdom), IM (Isle of Man), JE (Jersey) or GG (Guernsey).

zipcodeStringRequiredZIP code
Note

Max length 10 characters (general) or 16 characters (.EU)

Attention

ZIP Code will be validated against the Country selected during the contact create process. An invalid zipcode will return an error message.

phone-ccStringRequiredTelephone number country code
Note

Between 1-3 digits

Attention

Only valid telephone number country code will be accepted.

phoneStringRequiredTelephone number
Note

Between 4-12 digits (general) or between 4-13 digits (.RU)

customer-idIntegerRequiredThe Customer under whom you want to create the Contact
typeStringRequired

The Contact Type. This can take following values:

  • Contact

  • BrContact or BrOrgContact

  • CaContact

  • ClContact

  • CnContact

  • CoContact

  • DeContact

  • EsContact

  • EuContact

  • FrContact

  • MxContact

  • NlContact

  • NycContact

  • RuContact

  • UkContact or UkServiceContact

address-line-2StringOptionalSecond line of address of the Contact
address-line-3StringOptionalThird line of address of the Contact
stateStringOptional

Name of the State

Note
  • Max length 64 characters

  • For EsContact contact type, mention one of the following provinces:

    • Albacete

    • Alicante

    • Almeria

    • Araba

    • Asturias

    • Avila

    • Badajoz

    • Barcelona

    • Bizkaia

    • Burgos

    • Caceres

    • Cadiz

    • Cantabria

    • Castellon

    • Ceuta

    • Ciudad Real

    • Cordoba

    • Coruña, A

    • Cuenca

    • Gipuzkoa

    • Girona

    • Granada

    • Guadalajara

    • Huelva

    • Huesca

    • Illes Balears

    • Jaen

    • Leon

    • Lleida

    • Lugo

    • Madrid

    • Malaga

    • Melilla

    • Murcia

    • Navarra

    • Ourense

    • Palencia

    • Palmas, Las

    • Pontevedra

    • Rioja, La

    • Salamanca

    • Santa Cruz de Tenerife

    • Segovia

    • Sevilla

    • Soria

    • Tarragona

    • Teruel

    • Toledo

    • Valencia

    • Valladolid

    • Zamora

    • Zaragoza

fax-ccStringOptionalFax number country code
Note

Between 1-3 digits

faxStringOptionalFax number
Note

Between 4-12 digits (general) or between 4-13 digits (.RU)

attr-nameMap[name]OptionalMapping key of any extra information to be associated for the contact that is being added. Refer the description of attr-value.
attr-valueMap[value]Required

Mapping value of the extra details required to be associated with a particular Contact before registering a domain name. This together with attr-name shall contain the extra details.

  • To associate the Contact with a .ASIA domain name, the input can be:

    attr-name1=locality&attr-value1={Two-lettered Country code} attr-name2=legalentitytype&attr-value2={naturalPerson | corporation | cooperative | partnership | government | politicalParty | society | institution | other} attr-name3=otherlegalentitytype&attr-value3={Mention legal entity type. Mandatory if legalentitytype chosen as 'other'} attr-name4=identform&attr-value4={passport | certificate | legislation | societyRegistry | politicalPartyRegistry | other} attr-name5=otheridentform&attr-value5={Mention Identity form. Mandatory if identform chosen as 'other'} attr-name6=identnumber&attr-value6={Mention Identification Number}]

    Note

    This information can be associated with any one of the Contacts of the domain name.

  • To associate the Contact with a .BR domain name, the input can be:

    attr-name1=organisationId&attr-value1={Organisation ID}

    Note
    • Organisation ID: Only Brazilian nationals or organizations can register .BR domains. Hence, a tax ID (CPF in case of an individual contact) or an organisation ID (CNPJ in case of a company contact) of the person/organisation needs to be supplied for the Registrant contact (BrOrgContact). The tax/organization ID must either not be currently registered in our database or it should be a transferred authority to the registrar through the .BR registry web interface.

    • In addition, depending on the contact, you will need to specify the “type” as BrOrgContact (for the Registrant contact) or BrContact (for the Admin/technical/Billing contact). The Admin, technical and Billing contact should not be associated with the organization ID mentioned above. This is only needed for the Registrant contact.

  • To associate the Contact with a .CA domain name, the input can be:

    • attr-name1=CPR&attr-value1={Three-letter CPR code mentioned below}
      CPRDescriptionType
      CCOCorporation (Canada or Canadian province or territory)Non-individual
      CCTCanadian citizenIndividual
      RESPermanent Resident of CanadaIndividual
      GOVGovernment or government entity in CanadaNon-individual
      EDUCanadian Educational institutionNon-individual
      ASSCanadian Unincorporated AssociationNon-individual
      HOPCanadian HospitalNon-individual
      PRTPartnership Registered in CanadaNon-individual
      TDMTrade-mark registered in Canada (by a non-Canadian owner)Non-individual
      TRDCanadian Trade unionNon-individual
      PLTCanadian Political partyNon-individual
      LAMCanadian Library, Archive or MuseumNon-individual
      TRSTrust established in CanadaNon-individual
      ABOAboriginal Peoples (individuals or groups) indigenous to CanadaIndividual
      INBIndian Band recognized by the Indian Act of CanadaNon-individual
      LGRLegal Representative of a Canadian Citizen or Permanent ResidentIndividual
      OMKOfficial mark registered in CanadaNon-individual
      MAJHer Majesty the QueenNon-individual
    • attr-name2=AgreementVersion&attr-value2={Value of the GetRegistrantAgreement version}
    • attr-name3=AgreementValue&attr-value3={'y' indicating that the Registrant has agreed to the .CA Registrant Agreement}
      Note

      This information should be associated with the Registrant Contact of the domain name.

  • To associate the Contact with a .CN domain name, the input can be:

    • attr-name1=organisationVerificationId&attr-value1={Mention any ID associated with the organization}
  • To associate the Contact with a .ES domain name, the input can be:

    • es_form_juridica: The Registrant Contact of a .ES domain name may either be a natural person/individual or a company. However, the Admin, Technical and Billing Contacts must be natural persons/individuals only.

      ValueLegal Entity Type
      1Natural person or individual
      39Economic Interest Grouping
      47Association
      59Sports Association
      68Trade Association
      124Savings Bank
      150Community Property
      152Condominium
      164Religious Order or Institution
      181Consulate
      197Public Law Association
      203Embassy
      229Municipality
      269Sports Federation
      286Foundation
      365Mutual Insurance Company
      434Provincial Government Body
      436National Government Body
      439Political Party
      476Trade Union
      510Farm Partnership
      524Public Limited Company / Corporation
      525Sports Public Limited Company
      554Partnership
      560General Partnership
      562Limited Partnership
      566Cooperative
      608Worker-owned Company
      612Limited Liability Company
      713Spanish (company) Branch
      717Temporary Consortium / Joint Venture
      744Worker-owned Limited Company
      745Provincial Government Entity
      746National Government Entity
      747Local Government Entity
      877Others
      878Designation of Origin Regulatory Council
      879Natural Area Management Entity

      attr-name1=es_form_juridica&attr-value1={Any of the values mentioned above}

    • es_tipo_identificacion: Provide either of the following identification details:

      Type of IDExplanationValue
      DNI or NIFProvide either the Spanish National Personal ID or company VAT ID number.1
      NIEProvide the Spanish resident alien ID number3
      Other IDIf you do not have any of the above mentioned IDs, provide either your Passport number, any Foreign ID document number, Company Registration number, Driver’s License number, etc.0

      attr-name2=es_tipo_identificacion&attr-value2={Any of the values mentioned above}

    • es_identificacion: Depending upon which es_tipo_identificacion you provided, mention that ID's number as a value.

      attr-name3=es_identificacion&attr-value3=1

  • You need to pass the country of citizenship if the registrant is an individual/natural person and the country of residence is not one of the EU/EEA countries or in EU territories:

    attr-name1=countryOfCitizenship&attr-value1={Two-lettered country code}

    Note

    List of two-letter country codes

    • AT,BE, BG, CY, CZ, DE, DK, ES, EE, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK
  • To associate the Contact with a .JOBS domain name, the input can be:

    attr-name1=title&attr-value1={Title of the Contact in the Company} attr-name2=website&attr-value2={Company Website} attr-name3=industry_type&attr-value3={Type / Classification of the industry in which the company conducts its business} attr-name4=is_admin_contact&attr-value4={true | false} attr-name5=is_association_member&attr-value5={true | false}

    Note

    This information has to be associated with all Contacts of the .JOBS domain name.

  • To associate the Contact with a .NL domain name, the input can be:

    attr-name1=legalForm&attr-value1={PERSOON | ANDERS}

    Note

    This information has to be associated with all Contacts of the .NL domain name.

  • To associate the Contact with a .RU domain name, the input can be:

    • contract-type: This value indicates that the Contact Type is an Organization. Use PRS for Individual. It is mandatory to send this name-value pair.

      attr-name1=contract-type&attr-value1=ORG

    • birth-date: The value needs to be sent as numerals in DD.MM.YYYY format. It is mandatory to send this name-value pair for Individual Contact Type.

      attr-name2=birth-date&attr-value2=08.08.1900

    • org-r: This value indicates the legally registered company name as mentioned in the Company Formation documents. This value needs to include at least 2 words and is mandatory for the Organization Contact Type.

      attr-name3=org-r&attr-value3=some company

    • person-r: This is the Registrant's full name (preferably in Russian). It is mandatory to send this name-value pair for Individual Contact Type.

      attr-name4=person-r&attr-value4=FirstName LastName

    • address-r: This value indicates the Registrant's address (preferably in Russian). This value needs to include at least 2 words and is mandatory for the Organization Contact Type.

      attr-name5=address-r&attr-value5=Some Address

    • kpp: This value is the Territory-linked Taxpayer number. This is a 9 digit number and is mandatory for the Organization Contact Type, when the Country is Russia.

      attr-name6=kpp&attr-value6=123456789

    • code: This value is the Taxpayer Identification Number (TIN). This is a 10 digit number and is mandatory for Organization Contact Type, when the Country is Russia.

      attr-name7=code&attr-value7=0987654321

    • passport: This is value needs to include the Document number, Issued by, Issued Date details. It is mandatory to send this name-value pair for Individual Contact Type.

      attr-name8=passport&attr-value8=12 34 567890, issued by the 123 police station of Moscow, 30.01.1990

  • To associate the Contact with a .US domain name:

    • Pipe-separated values are the Registry defined constants. Select any one of the given set of values.

      You have to mention the values where the set of pre-defined values are not provided.

      Example:

      attr-name1=purpose&attr-value1={P1 | P2 | P3 | P4 | P5}&attr-name2=category&attr-value2={C11 | C12 | C21 | C31 | C32}]

    • Following is the mapping of the .US Nexus Category (category):

      • C11: A natural person who is a United States citizen.

      • C12: A natural person who is a permanent resident of the United States of America, or any of its possessions or territories.

      • C21: A US-based organization or company (A US-based organization or company formed within one of the fifty (50) U.S. states, the District of Columbia, or any of the United States possessions or territories, or organized or otherwise constituted under the laws of a state of the United States of America, the District of Columbia or any of its possessions or territories or a U.S. federal, state, or local government entity or a political subdivision thereof).

      • C31: A foreign entity or organization (A foreign entity or organization that has a bona fide presence in the United States of America or any of its possessions or territories who regularly engages in lawful activities (sales of goods or services or other business, commercial or non-commercial, including not-for-profit relations in the United States)).

      • C32: Entity has an office or other facility in the United States.

    • Following is the mapping of the .US Nexus Application Purpose (purpose):

      • P1 : Business use for profit.

      • P2: Non-profit business, club, association, religious organization, etc.

      • P3: Personal use.

      • P4: Education purposes.

      • P5: Government purposes

      Note

      This information has to be associated with the Registrant Contact of the domain name.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/contacts/add.json?auth-userid=0&api-key=key&name=abc&company=company&email=urname@domain.com&address-line-1=address1&city=city&country=nn&zipcode=0&phone-cc=0&phone=0&customer-id=0&type=Contact

Response

Returns the Contact Id (Integer) of newly added Contact. Multiple Contacts can be added for the same Name and Company Name behavior.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Sample error message when Single Field is invalid {'status':'ERROR','message':'{telnocc=TelephoneNo Country Code is invalid}'}

Sample error message when Multiple Fields are invalid {'status':'ERROR','message':'{telnocc=TelephoneNo Country Code is invalid, zip=Postal Code is invalid}'}