Skip to main content
POST
Create or update a subname

Authorizations

x-auth-token
string
header
required

Body

application/json
parentName
string
required

Parent ENS name (e.g., oppunk.eth)

Required string length: 7 - 255
Example:

"oppunk.eth"

label
string
required

Subname label (e.g., alice if full name is alice.oppunk.eth)

Required string length: 1 - 255
Example:

"alice"

texts
object[]

Text records to set on the subname

Example:
addresses
object[]

Address records to set on the subname

Example:
metadata
object[]

Arbitrary metadata stored offchain or in ENS records

Example:
owner
string

Address of the new subname owner (must be a valid Ethereum address)

Example:

"0x1234...abcd"

contenthash
string

Contenthash (e.g., for IPFS/IPNS/Skynet)

Example:

"ipfs://0xe30101701220eec561a728cb61c29cfae..."

ttl
number

TTL value in seconds

Example:

3600

Response

Subname created or updated

id
string
required

Unique identifier of the subname

Example:

"123"

fullName
string
required

Full name of the subname (e.g., alice.oppunk.eth)

Example:

"alice.oppunk.eth"

parentName
string
required

Parent name (e.g., oppunk.eth)

Example:

"oppunk.eth"

label
string
required

Label of the subname (e.g., alice)

Example:

"alice"

texts
object
required

Text records associated with the subname

Example:
addresses
object
required

Address records associated with the subname

Example:
metadata
object
required

Metadata associated with the subname

Example:
namehash
string
required

Namehash of the subname

Example:

"0xabc123..."

contenthash
string

Content hash of the subname

Example:

"ipfs://Qm..."