name.com Core API (1.2.0)
RESTful API for managing domains, DNS records, and related services at name.com. Access via HTTPS at api.name.com (production) or api.dev.name.com (testing). Supports standard authentication, rate-limited to 20 requests/second.
https://docs.name.com/_mock/coreapi/namecom.api/
https://api.dev.name.com/
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/email/forwarding
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding?perPage=100&page=1'
A successful response.
EmailForwarding is the list of forwarded email boxes.
DomainName is the domain part of the email address to forward.
EmailBox is the user portion of the email address to forward.
LastPage is the identifier for the final page of results. It is only populated if there is another page of results after the current page.
{ "emailForwarding": [ { … } ], "lastPage": 0, "nextPage": 0 }
Request
Creates a new email forwarding rule for a domain, such as redirecting info@example.com to an external inbox. If this is the first email forwarding rule created for the domain, the API may also update your MX records automatically to enable mail routing. The alias must not conflict with existing email services or MX records. To modify a forwarding rule later, use UpdateEmailForwarding.
EmailBox is the user portion of the email address to forward. If your email is "admin@example.com", it would just be "admin"
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/email/forwarding
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/example.com/email/forwarding \
-H 'Content-Type: application/json' \
-d '{
"emailBox": "admin",
"emailTo": "webmaster@example.com"
}'
{ "domainName": "example.com", "emailBox": "admin", "emailTo": "webmaster@example.com" }
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}'
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}'
{ "domainName": "example.com", "emailBox": "admin", "emailTo": "webmaster@example.com" }
- Mock server
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}/email/forwarding/{emailBox}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}/email/forwarding/{emailBox}' \
-H 'Content-Type: application/json' \
-d '{
"emailTo": "string"
}'
{ "domainName": "example.com", "emailBox": "admin", "emailTo": "webmaster@example.com" }