---
title: "Get the auth code for a domain"
method: GET
path: "/v1/registrar/domains/{domain}/auth-code"
tags: ["domains-registrar"]
---

# Get the auth code for a domain

`GET /v1/registrar/domains/{domain}/auth-code`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/registrar/domains/{domain}/auth-code`
- Auth: HTTP bearer

Get the auth code for a domain. This is required to transfer a domain from Vercel to another registrar.

## Path parameters

- `domain` string, required: A valid domain name

## Query parameters

- `teamId` string

## Response `200`

Success

- object
  - `authCode` string, required

## Other responses

- `400`: There was something wrong with the request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The domain was not found in our system.
- `409`: The domain cannot be transfered out until the specified date.
- `429`: TooManyRequests
- `500`: InternalServerError

## Changes

- **2026-07-14** `314022afff45`: 1 info
  - added the optional property `reason` to the response with the `401` status
- **2025-11-28** `45991e5c8b6d`: 2 info
  - added the new optional `query` request parameter `teamId`
  - added the non-success response with the status `409`
- **2025-10-09** `50caddad4ae7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/registrar/domains/:domain/auth-code/get.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
