Domains-domainName-authInfo:GET
From Hostway API Documentation
Revision as of 15:22, 15 November 2013 by Mike.robski (Talk | contribs)
GET /domains/{domainName}/authInfo
Get the current authorization code (authInfo) of a domain. The authorization code is used to transfer a domain.
Contents |
Request
GET /domains/{domainName}/authInfo
Parameters
- domainName - string
- The domain name. IE: example.com is a valid domain name, whereas http://www.example.com or www.example.com are not. If the domain name is invalid, or is otherwise not registerable such as for a non-existent or non-supported TLD, an error will be returned. Domain names are case insensitive. The domain name must be an open or suspended product under the authenticated franchise.
URI Parameters
None.
Request Headers
None.
Request Body
None.
Response
Status Code
- 200 OK
- Returns the domain authorization code.
- 400 Bad Request
- The domain name is not valid.
- 403 Forbidden
- Domain is not registered in this account and cannot be accessed.
- 404 Not Found
- No domain records found for the given domain name.
Response Body
The authorization code (string)
Example of getting the domain authorization code.
Request
GET /domains/example.com/authInfo
Response
200 OK Content-Type: application/json; charset=UTF-8 "6fdcc41f330d7a1-"
See also