---
title: "Link Anon Id"
method: POST
path: "/auth/link-anon"
tags: ["auth"]
---

# Link Anon Id

`POST /auth/link-anon`

Associate a client-generated anonymous id with this account.

The CLI mints a random anon_id per machine before any sign-in and tags
telemetry with it; calling this at login stitches that pre-login history
to the user. Idempotent; re-linking an id moves it to the caller (the
id is machine-scoped and only ever presented by whoever holds it).

## Request body

- LinkAnonRequest
  - `anon_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
