Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

retrieve_domain_auth_code

retrieve_domain_auth_code(**kwargs)

This operation returns the authorization code for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.

See also: AWS API Documentation

Request Syntax

response = client.retrieve_domain_auth_code(
    DomainName='string'
)
Parameters
DomainName (string) --

[REQUIRED]

The name of the domain that you want to get an authorization code for.

Return type
dict
Returns
Response Syntax
{
    'AuthCode': 'string'
}

Response Structure

  • (dict) --

    The RetrieveDomainAuthCode response includes the following element.

    • AuthCode (string) --

      The authorization code for the domain.

Exceptions

  • Route53Domains.Client.exceptions.InvalidInput
  • Route53Domains.Client.exceptions.UnsupportedTLD