Create User Domain

Create a new domain registration. Validates the domain name and checks for conflicts before creating a PENDING registration. The domain will be processed by a background worker which will attempt to register it on the smart contract. Optionally, an agent address can be provided to associate the domain with an agent immediately. Maximum one domain per agent is allowed.

Request

This endpoint expects an object.
domain_namestringRequired
agent_recordslist of objectsOptional

Response

Successful Response
namestring
statusenum
assigned_agentslist of objects
expirystring or nullformat: "date-time"

Errors