---
title: "Get anon key (deprecated)"
method: POST
path: "/api/auth/tokens/anon"
tags: ["Admin"]
deprecated: true
---

# Get anon key (deprecated)

`POST /api/auth/tokens/anon`

> **Deprecated.**

Deprecated - use GET /api/metadata/anon-key instead. Returns the project's opaque anon key (`anon_...`) under the legacy `accessToken` field for backward compatibility. The anon key is a non-secret client identifier that maps requests to the `anon` role; it replaces the former non-expiring anonymous JWT and can be rotated via POST /api/secrets/anon-key/rotate (admin only).

## Response `200`

Anon key retrieved successfully

- object
  - `accessToken` string — Opaque anon key (legacy field name kept for compatibility)
  - `message` string — Success message

## Other responses

- `401` — Unauthorized - requires authentication
- `403` — Forbidden - admin access required
- `404` — Anon key not initialized

---

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