API

Tld

The top-level domains on offer: list them or get one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /domain/tlds list OK
GET /domain/tlds/{name} load OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

tlds, err := client.Tld(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(tlds)
tld, err := client.Tld(nil).Load(map[string]any{"name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(tld)

Lua

Construct client as shown in the Lua setup, then call the operations:

local tlds, err = client:Tld():list()
local tld, err = client:Tld():load({ name = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$tlds = $client->Tld()->list();
$tld = $client->Tld()->load(["name" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

tlds = client.Tld().list()
tld = client.Tld().load({"name": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

tlds = client.Tld.list()
tld = client.Tld.load({ "name" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const tlds = await client.Tld().list()
const tld = await client.Tld().load({ name: "example" })

Fields

Field Type Required Description
authinfo_for_transfer boolean Yes Authinfo For Transfer
category string Yes Category
change_owner boolean Yes Change Owner
corporate boolean Yes Corporate
ext_trade boolean Yes Ext Trade
full_tld string Yes Full Tld
href string Yes Href
lock boolean Yes Lock
name string Yes Name

list

GET /domain/tlds

Operation ID: getDomainTlds.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
category query enum: ccTLD, gTLD No
page query integer No
per_page query integer No

Responses

200: OK

application/json

Property Type Required Description
[].href string Yes
[].name string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /domain/tlds/{name}

Operation ID: getDomainTldsName.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
name path string Yes

Responses

200: OK

application/json

Property Type Required Description
authinfo_for_transfer boolean Yes
category enum: ccTLD, gTLD Yes
change_owner boolean Yes
corporate boolean Yes
ext_trade boolean Yes
full_tld string Yes
href string Yes
lock boolean Yes
name string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes