---
title: "GET /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/"
method: GET
path: "/endpoints/agents/enrollment_tokens/{token_uuid}/view_key/"
tags: ["endpoints"]
---

# GET /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/

`GET /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/`

## Request

- Base URL: `https://api.goauthentik.io/api/v3`
- URL: `https://api.goauthentik.io/api/v3/endpoints/agents/enrollment_tokens/{token_uuid}/view_key/`
- Auth: HTTP bearer

Return token key and log access

## Path parameters

- `token_uuid` string, uuid, required

## Response `200`

- TokenView: Show token's current key
  - `key` string, required

## Other responses

- `400`
- `403`
- `404`: Token not found or expired

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) - [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) - [OpenAPI document](https://skmtc.dev/goauthentik/apis/authentik/revisions/dbbc7da3ab06?raw)
