Domain Name Api

Trabis .TR Domains Service Guide


Getting Started

IP Permissions

Before searching any other services, your IP number must first be defined on the DNA control panel.

For API access, the app is supposed to query your server IP number. There is no interval for IP numbers. (/32) . You can get access only through 4 different IP numbers that you have specified. IP access may take some time, the access by the user may take 24 hours. You need to contact the support team for more IP access.

Token Key

You must have a token key for API access. To have Tokey key, you need to apply to the support team. It will be delivered to you by the support team. The token key generated for the test environment is below.

bmVjYXRpfDo6OnxWNGt3SmVWLnJOa2xSX1JkUiouSl5NQU94eGFdVTp6ZmQ2LFZIeUh0S2wmYXpacjYxL0hz
JTJ8NypCJD5AejR8Ojo6fG5lY2F0aS4u

Access

.TR domain service is the rest api service. Communication through API is provided with JSON bodies. You should post the JSON bodies you have prepared to the specified URL addresses.

For a secure connection, you need to forward the key defined "Token" to the request header parameters on all requests. The JSON body you will forward must have the parameter "IsTestActive". This parameter shall be employed to provide a connection with the test or production environment.
The URL for API access: https://trabis.domainnameapi.com
You will receive 400 Bad Request response if you do not ask for a token key or make sufficient requests.

Documentation

Below is a list for domains requiring or not requiring documentation.

Domains Requiring Documentation
.com.tr - org.tr - .net.tr - .gov.tr - bel.tr - .av.tr - .dr.tr - .k12.tr - edu.tr
Domains Not Requiring Documentation
biz.tr - info.tr - gen.tr - web.tr - tv.tr - name.tr

Please visit this page for more information about downloading document templates.
Please visit this page information.

Hello Command #back to top

Post Url : api/hello

Example of Hello command

                     {
                        "IsTestActive":true
                     }
                  

Example of Hello command response

                    {
                      "ServerDate": "2020-05-25T17:05:16.136Z",
                      "Code": 1000,
                      "Message": "Command completed succesfully."
                    }
                  

Check Availability Command #back to top

Post Url : api/checkavailability

Example of Check Availability command

                    {
                      "DomainList": [
                        "test1.com.tr",
                        "test2.gov.tr",
                        "test3.web.tr"
                      ],
                      "IsTestActive": true
                    }
                  

Example of Check Availability command response

                    {
                      "DomainCheckResults": [
                        {
                          "Domain": "test1.com.tr",
                          "Status": "available"
                        },
                        {
                          "Domain": "test2.gov.tr",
                          "Status": "available"
                        },
                        {
                          "Domain": "test3.web.tr",
                          "Status": "available"
                        }
                      ],
                      "Code": 1000,
                      "Message": "Command completed succesfully."
                    }
                  

Register Command #back to top

Post Url : api/register

Example of Register command

{
  "DomainName": "test1.web.tr",
  "Organization": "John Doe Limited",
  "CountryId": 888,
  "CityId": 999,
  "Period": 1,
  "Email": "test@johndoe.com",
  "Phone": {
    "CountryCode": 1,
    "AreaCode": 262,
    "Number": 3259223
  },
  "Fax": {
    "CountryCode": 1,
    "AreaCode": 262,
    "Number": 3259222
  },
  "PostalCode": "410000",
  "TaxOffice": "Alemdar",
  "TaxNumber": "0012356",
  "WebAdress": "johndoelimited.com",
  "NameServers": [
    {
      "Name": "ns1.test1.web.tr",
      "IpAdress": "91.93.119.93"
    },
    {
      "Name": "ns2.test1.web.tr",
      "IpAdress": "91.93.119.94"
    },
    {
      "Name": "ns1.atakdomain.com",
      "IpAdress": null
    },
    {
      "Name": "ns2.atakdomain.com",
      "IpAdress": null
    }
  ],
  "DocumentInfo": {
    "HashBytes": null
  },
  "IsTestActive": true
}
                  

Example of Register command response

{
  "Status": "active",
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Transfer Command #back to top

Post Url : api/transfer

Example of Transfer command

{
  "DomainName": "testtransferdomain.com.tr",
  "DocumentInfo": null,
  "IsTestActive": true
}
                  

Example of Transfer command response

{
  "Status": "waitingfordocument",
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Get Domain Command #back to top

Post Url : api/getdomain

Example of Get Domain command

{
  "DomainName": "testtransferdomain.com.tr",
  "IsTestActive": true
}
                  

Example of Get Domain command response

{
  "DomainName": "testtransferdomain.com.tr",
  "StartDate": "1.01.0001 00:00:00",
  "ExpirationDate": "31.12.9999 23:59:59",
  "NameServers": null,
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Update Contact Command #back to top

Post Url : api/updatecontact

Example of Update Contact command

{
  "DomainName": "test2.web.tr",
  "Organization": "John Doe Limited",
  "CountryId": 888,
  "CityId": 999,
  "Email": "test@johndoe.com",
  "Phone": {
    "CountryCode": 1,
    "AreaCode": 262,
    "Number": 3259223
  },
  "Fax": {
    "CountryCode": 1,
    "AreaCode": 262,
    "Number": 3259222
  },
  "PostalCode": "410000",
  "TaxOffice": "Alemdar",
  "TaxNumber": "0012356",
  "WebAdress": "johndoelimited.com",
  "DocumentInfo": {
    "HashBytes": null
  },
  "IsTestActive": true
}
                  

Example of Update Contact command response

{
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Renew Command #back to top

Post Url : api/renew

Example of Renew command

{
  "DomainName": "testrenewdomain.com.tr",
  "Period": 1,
  "IsTestActive": true
}
                  

Example of Renew command response

{
  "ExpirationDate": "25.05.2021 20:34:38",
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Update Name Server Command #back to top

Post Url : api/updatenameserver

Example of Update Name Server command

{
  "DomainName": "testupdatedomain.com.tr",
  "NameServers": [
    {
      "Name": "ns1.test1.web.tr",
      "IpAdress": "91.93.119.93"
    },
    {
      "Name": "ns2.test1.web.tr",
      "IpAdress": "91.93.119.94"
    },
    {
      "Name": "ns1.atakdomain.com",
      "IpAdress": null
    },
    {
      "Name": "ns2.atakdomain.com",
      "IpAdress": null
    }
  ],
  "IsTestActive": true
}
                  

Example of Update Name Server command response

{
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Delete Command #back to top

Post Url : api/delete

Example of Delete command

{
  "DomainName": "testdeletedomain.com.tr",
  "IsTestActive": true
}
                  

Example of Delete command response

{
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Restore Command #back to top

Post Url : api/restore

Example of Restore command

{
  "DomainName": "testrestoredomain.com.tr",
  "IsTestActive": true
}
                  

Example of Restore command response

{
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Send Document Command #back to top

Post Url : api/senddocument

Example of Send Document command

{
  "DomainName": "testsenddocument.com.tr",
  "Category": 1,
  "DocumentInfo": {
    "HashBytes": "8c5274f6-5b86-40fb-a8d9-deb3a7d6c9aa"
  },
  "IsTestActive": true
}
                  

Example of Send Document command response

{
  "Code": 1000,
  "Message": "Command completed succesfully."
}
                  

Country List#back to top

Below is the list of countries you will send in the API request.
  • * 888 - unknownCountry
  • * 1 - Aruba
  • * 2 - Afghanistan
  • * 3 - Angola
  • * 4 - Anguilla
  • * 5 - Albania
  • * 6 - Andorra
  • * 7 - Netherlands Antilles
  • * 8 - United Arab Emirates
  • * 9 - Argentina
  • * 10 - Armenia
  • * 11 - American Samoa
  • * 12 - Antarctica
  • * 13 - French Southern Territories
  • * 14 - Antigua and Barbuda
  • * 15 - Australia
  • * 16 - Austria
  • * 17 - Azerbaijan
  • * 18 - Burundi
  • * 19 - Belgium
  • * 20 - Benin
  • * 21 - Burkina Faso
  • * 22 - Bangladesh
  • * 23 - Bulgaria
  • * 24 - Bahrain
  • * 25 - Bahamas
  • * 26 - Bosnia and Herzegovina
  • * 27 - Belarus
  • * 28 - Belize
  • * 29 - Bermuda
  • * 30 - Bolivia
  • * 31 - Brazil
  • * 32 - Barbados
  • * 33 - Brunei Darussalam
  • * 34 - Bhutan
  • * 35 - Bouvet Island
  • * 36 - Botswana
  • * 37 - Central African Republic
  • * 38 - Canada
  • * 39 - Cocos (Keeling) Islands
  • * 40 - Switzerland
  • * 41 - Chile
  • * 42 - China
  • * 43 - Cote Divoire
  • * 44 - Cameroon
  • * 45 - Congo
  • * 46 - Cook Islands
  • * 47 - Colombia
  • * 48 - Comoros
  • * 49 - Cape Verde
  • * 50 - Costa Rica
  • * 51 - Cuba
  • * 52 - Christmas Island
  • * 53 - Cayman Islands
  • * 54 - Cyprus
  • * 55 - Czech Republic
  • * 56 - Germany
  • * 57 - Djibouti
  • * 58 - Dominica
  • * 59 - Denmark
  • * 60 - Dominican Republic
  • * 61 - Algeria
  • * 62 - Ecuador
  • * 63 - Egypt
  • * 64 - Eritrea
  • * 65 - Western Sahara
  • * 66 - Spain
  • * 67 - Estonia
  • * 68 - Ethiopia
  • * 69 - Finland
  • * 70 - Fiji
  • * 71 - Falkland Islands (Malvinas)
  • * 72 - France
  • * 73 - Faroe Islands
  • * 74 - Micronesia
  • * 75 - France
  • * 76 - Gabon
  • * 77 - United Kingdom
  • * 78 - Georgia
  • * 79 - Ghana
  • * 80 - Gibraltar
  • * 81 - Guinea
  • * 82 - Guadeloupe
  • * 83 - Gambia
  • * 84 - Guinea-Bissau
  • * 85 - Equatorial Guinea
  • * 86 - Greece
  • * 87 - Grenada
  • * 88 - Greenland
  • * 89 - Guatemala
  • * 90 - French Guiana
  • * 91 - Guam
  • * 92 - Guyana
  • * 93 - Hong Kong
  • * 94 - Heard Island and McDonald Islands
  • * 95 - Honduras
  • * 96 - Croatia
  • * 97 - Haiti
  • * 98 - Hungary
  • * 99 - Indonesia
  • * 100 - India
  • * 101 - British Indian Ocean Territory
  • * 102 - Ireland
  • * 103 - Iran (Islamic Republic of)
  • * 104 - Iraq
  • * 105 - Iceland
  • * 106 - Israel
  • * 107 - Italy
  • * 108 - Jamaica
  • * 109 - Jordan
  • * 110 - Japan
  • * 111 - Kazakhstan
  • * 112 - Kenya
  • * 113 - Kyrgyzstan
  • * 114 - Cambodia
  • * 115 - Kiribati
  • * 116 - Saint Kitts and Nevis
  • * 117 - Korea
  • * 118 - Kuwait
  • * 119 - Lao Peoples Democratic Republic
  • * 120 - Lebanon
  • * 121 - Liberia
  • * 122 - Libya
  • * 123 - Saint Lucia
  • * 124 - Liechtenstein
  • * 125 - Sri Lanka
  • * 126 - Lesotho
  • * 127 - Lithuania
  • * 128 - Luxembourg
  • * 129 - Latvia
  • * 130 - Macau
  • * 131 - Morocco
  • * 132 - Monaco
  • * 133 - Moldova
  • * 134 - Madagascar
  • * 135 - Maldives
  • * 136 - Mexico
  • * 137 - Marshall Islands
  • * 138 - Macedonia
  • * 139 - Mali
  • * 140 - Malta
  • * 141 - Myanmar
  • * 142 - Mongolia
  • * 143 - Northern Mariana Islands
  • * 144 - Mozambique
  • * 145 - Mauritania
  • * 146 - Montserrat
  • * 147 - Martinique
  • * 148 - Mauritius
  • * 149 - Malawi
  • * 150 - Malaysia
  • * 151 - Mayotte
  • * 152 - Namibia
  • * 153 - New Caledonia
  • * 154 - Niger
  • * 155 - Norfolk Island
  • * 156 - Nigeria
  • * 157 - Nicaragua
  • * 158 - Niue
  • * 159 - Netherlands
  • * 160 - Norway
  • * 161 - Nepal
  • * 162 - Nauru
  • * 163 - New Zealand
  • * 164 - Oman
  • * 165 - Pakistan
  • * 166 - Panama
  • * 167 - Pitcairn
  • * 168 - Peru
  • * 169 - Philippines
  • * 170 - Palau
  • * 171 - Papua New Guinea
  • * 172 - Poland
  • * 173 - Puerto Rico
  • * 174 - Korea
  • * 175 - Portugal
  • * 176 - Paraguay
  • * 177 - French Polynesia
  • * 178 - Qatar
  • * 179 - Reunion
  • * 180 - Romania
  • * 181 - Russian Federation
  • * 182 - Rwanda
  • * 183 - Saudi Arabia
  • * 184 - Sudan
  • * 185 - Senegal
  • * 186 - Singapore
  • * 187 - South Georgia and South Sandwich Islands
  • * 188 - Saint Helena
  • * 189 - Svalbard and Jan Mayen
  • * 190 - Solomon Islands
  • * 191 - Sierra Leone
  • * 192 - El Salvador
  • * 193 - San Marino
  • * 194 - Somalia
  • * 195 - Saint Pierre and Miquelon
  • * 196 - Sao Tome and Principe
  • * 197 - Suriname
  • * 198 - Slovakia
  • * 199 - Slovenia
  • * 200 - Sweden
  • * 201 - Swaziland
  • * 202 - Seychelles
  • * 203 - Syrian Arab Republic
  • * 204 - Turks and Caicos Islands
  • * 205 - Chad
  • * 206 - Togo
  • * 207 - Thailand
  • * 208 - Tajikistan
  • * 209 - Tokelau
  • * 210 - Turkmenistan
  • * 211 - East Timor
  • * 212 - Tonga
  • * 213 - Trinidad and Tobago
  • * 214 - Tunisia
  • * 215 - Türkiye
  • * 216 - Tuvalu
  • * 217 - Taiwan
  • * 218 - Tanzania
  • * 219 - Uganda
  • * 220 - Ukraine
  • * 221 - United States Minor Outlying Islands
  • * 222 - Uruguay
  • * 223 - United States of America
  • * 224 - Uzbekistan
  • * 225 - Vatican City State (Holy See)
  • * 226 - Saint Vincent and the Grenadines
  • * 227 - Venezuela
  • * 228 - Virgin Islands (British)
  • * 229 - Virgin Islands (U.S.)
  • * 230 - Vietnam
  • * 231 - Vanuatu
  • * 232 - Wallis and Futuna
  • * 233 - Samoa
  • * 234 - Yemen
  • * 235 - Yugoslavia
  • * 236 - South Africa
  • * 237 - Zaire
  • * 238 - Zambia
  • * 239 - Zimbabwe
  • * 240 - Kuzey Kıbrıs Türk Cumhuriyeti
  • * 241 - Serbia

City List#back to top

Below is the list of cities you will send in the API request.
  • * 999 - Out of Turkey
  • * 888 - unknownCity
  • * 1 - Adana
  • * 2 - Adıyaman
  • * 3 - Afyon
  • * 4 - Ağrı
  • * 5 - Amasya
  • * 6 - Ankara
  • * 7 - Antalya
  • * 8 - Artvin
  • * 9 - Aydın
  • * 10 - Balıkesir
  • * 11 - Bilecik
  • * 12 - Bingöl
  • * 13 - Bitlis
  • * 14 - Bolu
  • * 15 - Burdur
  • * 16 - Bursa
  • * 17 - Çanakkale
  • * 18 - Çankırı
  • * 19 - Çorum
  • * 20 - Denizli
  • * 21 - Diyarbakır
  • * 22 - Edirne
  • * 23 - Elazığ
  • * 24 - Erzincan
  • * 25 - Erzurum
  • * 26 - Eskişehir
  • * 27 - Gaziantep
  • * 28 - Giresun
  • * 29 - Gümüşhane
  • * 30 - Hakkari
  • * 31 - Hatay
  • * 32 - Isparta
  • * 33 - Mersin
  • * 34 - İstanbul
  • * 35 - İzmir
  • * 36 - Kars
  • * 37 - Kastamonu
  • * 38 - Kayseri
  • * 39 - Kırklareli
  • * 40 - Kırşehir
  • * 41 - Kocaeli
  • * 42 - Konya
  • * 43 - Kütahya
  • * 44 - Malatya
  • * 45 - Manisa
  • * 46 - Kahramanmaraş
  • * 47 - Mardin
  • * 48 - Muğla
  • * 49 - Muş
  • * 50 - Nevşehir
  • * 51 - Niğde
  • * 52 - Ordu
  • * 53 - Rize
  • * 54 - Sakarya
  • * 55 - Samsun
  • * 56 - Siirt
  • * 57 - Sinop
  • * 58 - Sivas
  • * 59 - Tekirdağ
  • * 60 - Tokat
  • * 61 - Trabzon
  • * 62 - Tunceli
  • * 63 - Şanlıurfa
  • * 64 - Uşak
  • * 65 - Van
  • * 66 - Yozgat
  • * 67 - Zonguldak
  • * 68 - Aksaray
  • * 69 - Bayburt
  • * 70 - Karaman
  • * 71 - Kırıkkale
  • * 72 - Batman
  • * 73 - Şırnak
  • * 74 - Bartın
  • * 75 - Ardahan
  • * 76 - Iğdır
  • * 77 - Yalova
  • * 78 - Karabük
  • * 79 - Kilis
  • * 80 - Osmaniye
  • * 81 - Düzce

Trabis .TR Domains Service Guide 2024

;