---
title: "Get Auth Code For Domain"
method: GET
path: "/core/v1/domains/{domainName}:getAuthCode"
tags: ["Domains"]
---

# Get Auth Code For Domain

`GET /core/v1/domains/{domainName}:getAuthCode`

Retrieves the transfer authorization code (EPP code) for a domain.

## Path parameters

- `domainName` string, required

## Response `200`

A successful response.

- AuthCodeResponse — This endpoint retrieves the transfer authorization code (EPP code) for qualifying domains. Locks may exist on a domain that can prevent the initiation of a transfer request, despite an auth code being returned by the API. Use the [Get Domain](/api/v1/reference/domains/get-domain) API to check the lock status of a domain. A Create Transfer request for a locked domain will return an error.
  - `authCode` string, required — AuthCode is the authorization code needed to transfer a domain to another registrar. If you are storing auth codes, be sure to store them in a secure manner.

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden - you do not have permission to perform this action.
- `404` — Domain name not found.
- `405` — Method not allowed.
- `406` — We were unable to retrieve an auth code for the domain. You will need to reach out to the registrar for more information.
- `429` — Rate limit has been exceeded.
- `500` — Internal server error.
- `502` — Bad Gateway
- `504` — Gateway Timeout

---

[API](https://skmtc.dev/name/apis/name-com-core-api.md) · [All operations](https://skmtc.dev/name/apis/name-com-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/name/name-com-core-api/revisions/a37d4cbd3991/schema)
