Suggestions for finding available domains
Partner API v3 (3.0.0)
The Partner API v3 provides you with the ability to lookup, register and manage Web3 domains. The API exposes a RESTful interface for interacting with Web3 domains and the Unstoppable Domains registry.
- Lookup Domains: Search for specific domains or find suggested alternatives, to determine pricing, availability and on-chain details
- Registering Domains: Secure domains into your dedicated Custody wallets to maintain the domains on the blockchain
- Manage Domains: Update records on the blockchain or transfer the domain to external owners, all through a simple API interface
The API takes the hassle of Web3 out of the equation. Unstoppable Domains will handle all blockchain interactions and concepts, while Partners simply use a RESTful API for managing domains.
Since the domains will be in custody of the Partner, through Unstoppable Domains, the Partner is empowered to make any and all changes to the domains on behalf of their users.
Under the hood, Unstoppable Domains will manage dedicated custodial wallets for Partner-owned domains. These wallets are not shared between Partners and will uniquely identify the Partner on the various supported blockchains.
Should the need arise to remove domains from custody, this is supported by changing the owner of domains to external owners.
The API will keep track of a running balance of charges and Unstoppable Domains will periodically invoice Partners to settle that balance. This empowers Partners to build payment processing in a way that works best for them.
Domain details can be viewed across all of our supported blockchains:
- Ethereum (ETH)
- Polygon PoS (MATIC)
- Base (BASE)
Domains can only be managed on Polygon PoS (MATIC) and Base (BASE). Domains on Ethereum (ETH) are readonly, but management support is coming soon.
The API has some important concepts, in addition to Web3 Domains, that provide added utility, consistency and information.
Web3 domains exist on the supported Blockchains, and are owned by wallet addresses associated with those Blockchains. We take ownership a step further, to provide improved security and reliability, by including an owner type in our ownership data. The result is that a Domain's owner is defined by two values: address and type
The owner type can be one of the following:
NONE: Either the domain has never been owned or belongs to a "burn" addressUD: Owned by Unstoppable DomainsSELF: Domain belongs to a wallet addressed associated with your account, indicating you are able to manage it via the APIEXTERNAL: Owner doesn't qualify as any of the above. Changing to anEXTERNALowner will result in the domain belonging to an address outside of the management of Unstoppable Domains and we will have no way to recover it.
By defining an owner in two parts (address and type) we ensure any irreversible action, such as transferring ownership, is deliberate and intended by requiring both the address and type in the request.
All interactions with the API that initiate changes will create an Operation for tracking that change. Operations can complete immediately or run in the background over the course of several minutes, depending on the Operation type and current conditions on the Blockchain.
Operations include dependencies that represent the smaller units of work associated with the overall operation. These dependencies can also be tracked through the API and each have their own status and metadata.
Your integration should properly handle and anticipate all of the following possible statuses for Operations and their dependencies:
QUEUED: The Operation has not started processing yet, but should be started shortlyPROCESSING: The Operation has started, often involving sending transactions to the BlockchainSIGNATURE_REQUIRED: The operation is awaiting a signature in order to continue processing. This is only relevant to Self-Custody domain management.COMPLETED: The Operation has finished processing successfullyFAILED: The Operation has finished processing and has either fully or partially failedCANCELLED: The Operation has been cancelled, usually due to a failure with a sibling dependency
See the Operations API for additional information.
Domains ownership on the Blockchain is handled by associating a Domain with an "address". These addresses are typically managed by Wallets (usually in the form of an application on your computer or mobile device) that manage the private key for the public "address".
The API provides endpoints for creating/managing Wallets within your account to enable you to handle Domain ownership distribution in whatever way works for you. Any Domain that is owned by one of your account's Wallets is fully in your control to manage.
See the Wallets API for additional information.
See our quickstart guide for getting your Partner API key: Set up Partner API Access
If you have any questions, contact our Partner Engineering Team to help with API access or learn more.
Request
Any domains held in the wallets of type SELF can be managed by your account without any signature collection. You can use these SELF wallets to distribute domains in whatever way works best for you.
This route will return both custody (SELF) and self-custody (EXTERNAL) wallets associated with your account. To only list custody wallets, simply include the ?type=SELF query string parameter.
- Productionhttps://api.unstoppabledomains.com/partner/v3/account/wallets
- Sandboxhttps://api.ud-sandbox.com/partner/v3/account/wallets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/partner/v3/account/wallets?%24cursor=string&type=SELF' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "@type": "unstoppabledomains.com/partner.v3.CursorList", "items": [ { … } ], "next": {} }
- Productionhttps://api.unstoppabledomains.com/partner/v3/account/wallets
- Sandboxhttps://api.ud-sandbox.com/partner/v3/account/wallets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X POST \
https://api.unstoppabledomains.com/partner/v3/account/wallets \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
{ "@type": "unstoppabledomains.com/partner.v3.InternalWalletCreateResult", "operation": { "id": "op-4abb409c-9283-4589-bd36-d27a757a2165", "@type": "unstoppabledomains.com/partner.v3.Operation", "status": "QUEUED", "type": "DOMAIN_CLAIM", "domain": "matt.crypto", "lastUpdatedTimestamp": 1684356429790, "dependencies": [ … ] } }
- Productionhttps://api.unstoppabledomains.com/partner/v3/account/wallets/{address}
- Sandboxhttps://api.ud-sandbox.com/partner/v3/account/wallets/{address}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/partner/v3/account/wallets/{address}?%24expand=primaryDomain' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "@type": "unstoppabledomains.com/partner.v3.WalletMinimal", "address": "0xb4783AeF93923a2d4eEA29C84f347F26E62e4321", "type": "SELF", "primaryDomain": "matt.crypto" }
Request
Update details for a specific custody wallet in your account.
This can be used to set (or clear) the Primary Domain (also known as the Reverse Resolution) for a custody wallet.
To clear the Primary Domain for a wallet, pass a null value for the primaryDomain property within the request body.
Allows simulating the operation creation (when set to true), without actually starting any processing. This can be used to validate the operation will be permitted and get a preview of the initial outcome.
When used, the operation in the response will have PREVIEW for all id and status values.
- Productionhttps://api.unstoppabledomains.com/partner/v3/account/wallets/{address}
- Sandboxhttps://api.ud-sandbox.com/partner/v3/account/wallets/{address}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X PATCH \
'https://api.unstoppabledomains.com/partner/v3/account/wallets/{address}?%24preview=false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"primaryDomain": "matt.crypto"
}'- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
- SubOperationResponse
{ "@type": "unstoppabledomains.com/partner.v3.WalletUpdateResult", "operation": { "id": "op-4abb409c-9283-4589-bd36-d27a757a2165", "@type": "unstoppabledomains.com/partner.v3.Operation", "status": "QUEUED", "type": "DOMAIN_CLAIM", "domain": "matt.crypto", "lastUpdatedTimestamp": 1684356429790, "dependencies": [ … ] } }
Self-Custody Domains
Manage domains that are owned in external, self-custody wallets.
The key difference between Custody and Self-Custody operations is that all Self-Custody operations require a signature from the domain owner.
Before you can initiate self-custody operations, you must verify the self-custody wallet that owns the domain.
Webhooks
Manage webhooks used for asynchronous updates to your server.
You can follow our getting started guide here: Webhooks in the Partner API