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 [email protected] 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
Sample Response - 200 - AVAILABLE domain
{
"success": true,
"data": {
"available": true,
"domain": "victor1.box",
"is_premium": false,
"href": "https://my.box/search?domain=victor1&ref=abc123",
"status": "AVAILABLE"
}
}
Sample Response - 200 - LIVE (unavailable and tokenized) domain
{
"success": true,
"data": {
"available": false,
"domain": "victor.box",
"is_premium": false,
"href": "https://my.box/profile/victor.box?ref=abc123",
"status": "LIVE"
}
}
Sample Response - 200 - UNAVAILABLE (unavailable and NOT tokenized -banned, reserved) domain
{
"success": true,
"data": {
"available": false,
"domain": "china.box",
"is_premium": false,
"href": "https://my.box?ref=abc123",
"status": "UNAVAILABLE"
}
}
Sample Response - 400 - Error
{
"success": false,
"error": {
"code": "ICP_302",
"message": "Domain query parameter is required"
}
}
Error Codes (Registry API)
// Registry API errors
ICP_301: {
code: 'ICP_301',
message: 'API Timeout',
},
ICP_302: {
code: 'ICP_302',
message: 'Domain query parameter is required',
},
ICP_303: {
code: 'ICP_303',
message: 'Error checking domain availability',
},
};
Validation Notes
Domains can have a total length of 63 characters.
i.e., [up-to-63-characters].box
Example Screenshots


Last updated