---
title: "Get domain authorization code"
method: GET
path: "/api/domains/v1/portfolio/{domain}/auth-code"
tags: ["Domains: Portfolio"]
---

# Get domain authorization code

`GET /api/domains/v1/portfolio/{domain}/auth-code`

Retrieve the authorization (EPP) code for a specified domain so it can be transferred
away from Hostinger to another registrar.

Requesting a new code invalidates any code retrieved previously.

Use this endpoint to obtain the code required to transfer a domain to another registrar.

## Path parameters

- `domain` string, required

## Response `200`

Success response

- DomainsV1PortfolioAuthCodeAuthCodeResource
  - `auth_code` string, nullable — Domain authorization code used to transfer the domain to another registrar.

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
