Integrate our Search API
Integrate the .box Search API into your dApp and earn every time your users purchase a .box domain
How does it work?
The .box Search API enables your users to search for .box domains through your platform and get redirected to the purchase flow on my.box
You will be rewarded $18 USDC per domain sold via your platform (15% of our revenue)
If you are interested in becoming a Search API referral partner, don't hesitate to get in touch with us at hello@my.box or message our Community Lead, @ohmsdotbox on Telegram
Initial Setup Steps
Send the My.box team a wallet address. This wallet address is where your referral rewards will be received
Send the My.box team your development environment identifiers to be whitelisted. These will be URLs/IPs depending on your integration approach:
The My.box team will send you an API key
Your team can find the registry.swagger.json file below which can be imported into Postman or Insomnia
Integrating the Search API
Import the Swagger file into Postman or Insomnia
Edit the Authorization tab with the provided
x-api-key
Update the
domain
query param with the desired domain name to search
Open API 3.0 Spec (swagger)
The open API spec can be imported into Postman for testing the endpoint. Once imported, edit the authorization tab with the provided x-api-key
and update the domain
query param with the desired domain name you’d like to search
Domain status descriptions:
“LIVE” Domain is Unavailable and Tokenized. Examples, josh.box, areeb.box, adam.box, ronen.box
“UNAVAILABLE” - Domain is Unavailable and NOT Tokenized (Reserved/Evergreen, Banned, serverHold, pendingDelete, PendingCreate). Examples, china.box
“INVALID_DOMAIN” domain name failed validation. Examples, josh--.box, domains >63 chars
“AVAILABLE” Domain is available for purchase/registration
For domains with the AVAILABLE status, we recommend using the “href” callback URL parameter to route your users to my.box. This will ensure proper referral attribution.
Sample Response - 200 - AVAILABLE domain
Sample Response - 200 - LIVE (unavailable and tokenized) domain
Sample Response - 200 - UNAVAILABLE (unavailable and NOT tokenized -banned, reserved) domain
Sample Response - 400 - Error
Error Codes (Registry API)
Validation Notes
Domains can have a total length of 63 characters.
i.e., [up-to-63-characters].box
Example Screenshots
Last updated