---
title: "Get anon key"
method: GET
path: "/api/metadata/anon-key"
tags: ["Admin"]
---

# Get anon key

`GET /api/metadata/anon-key`

Admin-only endpoint to retrieve the project's opaque anon key (`anon_...`). The anon key is a non-secret client identifier that maps requests to the `anon` role - safe to embed in frontend bundles; row level security is the security boundary. Rotatable via POST /api/secrets/anon-key/rotate.

## Response `200`

Anon key

- object
  - `anonKey` string

## Other responses

- `403` — Forbidden
- `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)
