---
title: "Get Serial Auth Code"
method: GET
path: "/serials/{serial_id}/auth_code"
tags: ["Serials"]
---

# Get Serial Auth Code

`GET /serials/{serial_id}/auth_code`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/serials/{serial_id}/auth_code`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/serials/:serial_id/auth_code/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `serial_id` string, uuid, required

## Response `200`

Auth code retrieved successfully

- AuthCodeDto
  - `auth_code` string, required

## Other responses

- `401`: Not authenticated
- `403`: Insufficient permissions
- `404`: Resource not found
- `422`: Invalid input data
- `500`: Internal server error

---

[API](https://skmtc.dev/nasuni/apis/portal-api.md) - [All operations](https://skmtc.dev/nasuni/apis/portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nasuni/apis/portal-api/revisions/2a505bec6d14?raw)
