Get name zone file

Retrieves the zone file for a specific name.

GET

/v1/names/{name}/zonefile

Retrieves a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.

Path parameters

name
Required
string

Fully-qualified name

Example: "bar.test"
Status codeDescription
200Success
400Error
404Error
Terminal
curl -X GET "https://api.mainnet.hiro.so/v1/names/bar.test/zonefile"

Fetch a user's raw zone file.

Example response
{
  "zonefile": "string"
}