---
title: "Exchange a link code for a node identity"
method: POST
path: "/api/link/claim"
tags: ["link"]
---

# Exchange a link code for a node identity

`POST /api/link/claim`

## Request

- Base URL: `https://app.nerdit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.nerdit.ai/api/link/claim`
- Auth: none declared

Release the node identity a link code names, at most once per code.

## Request body

- LinkClaimRequest: The daemon presents the plaintext code exactly once.
  - `code` string, required
  - `credential_reference` string, required

## Response `200`

Successful Response

- LinkClaimResponse: Non-secret node identity; capability material is never issued here.
  - `node_id` string, uuid, required
  - `node_slug` string, required
  - `nodes_base_domain` string, required

## Other responses

- `404`: Not Found
- `409`: Conflict
- `410`: Gone
- `422`: Validation Error
- `429`: Too Many Requests

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
