Follow these steps to quickly get up and running with the name.com Core API.
Step 1: Get Your API Token
1
Create Account
Create a name.com account if you don’t have one already
2
Generate Tokens
Go to Account Settings → Security → API Tokens and issue both development and production tokens
3
Secure Storage
Keep your API token secure — treat it like a password
Step 2: Choose Your Environment
name.com offers two separate environments:Production
Base URL:
Purpose: Live domain registrations, renewals, and management
https://api.name.comPurpose: Live domain registrations, renewals, and management
Sandbox
Base URL:
Purpose: Safe testing and development — no real charges
https://api.dev.name.comPurpose: Safe testing and development — no real charges
Sandbox Environment Details
Authentication Requirements
Authentication Requirements
- Use your username with
-testappended (e.g.,reseller123-test) - Requires a separate sandbox API token
- The sandbox is API-only — not accessible through the browser
Testing Features
Testing Features
- Supports the Try It feature (limited to test environment)
- Includes preloaded testing credit
- Data does not sync with production
Domain Management
Domain Management
- Test domains must be registered in sandbox before use
- Domain availability and pricing may differ from production
- Some TLDs are not available in sandbox environment
Step 3: Authenticate Your API Requests
Use HTTP Basic Auth with your username and API token. See the full guide in Authentication for curl shorthand vs explicit header, and how to generate a Base64 token on Linux/macOS and Windows PowerShell.Step 4: Make Your First API Call
Call the GET/core/v1/hello endpoint to verify connectivity:
Using “Try it” Feature
1
Navigate to Endpoint
Go to an endpoint you’d like to test (e.g.,
GET /core/v1/domains → ListDomains)2
Click Try It
Click the “Try it” button at the top right of the endpoint panel
3
Select Environment
In the “Environment” dropdown (next to “History”):
- Select Mock Server to test with sample responses (no credentials needed)
- Select Testing to use the name.com sandbox environment
4
Enter Credentials
Use your sandbox credentials from Account Settings → API Tokens (https://www.name.com/account/settings/api)
5
Send Request
Click Send to make your test request
Troubleshooting Common Issues
401 Unauthorized
401 Unauthorized
Permission Denied
Permission Denied
If 2FA is enabled, go to Account Settings → Security and enable API Access
404 Not Found
404 Not Found
Make sure the domain or resource exists; in sandbox, register test domains first