---
title: "Admin Create Demo Credential"
method: POST
path: "/admin/demo-credentials"
---

# Admin Create Demo Credential

`POST /admin/demo-credentials`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/admin/demo-credentials`
- Auth: none declared. Required headers: `x-admin-key`

Creates a reviewer credential with a server-generated password, returned ONCE. The demo
machine must be online and flagged: its routing token is pinned from its live tunnel, and
an ambiguous match (an impostor claiming the same machine_id) refuses instead of guessing.
Check the returned tunnel_token_prefix against the demo Mac's config before handing it out.

## Headers

- `x-admin-key` string, required

## Request body

- DemoCredentialCreate
  - `username` string, required
  - `machine_id` string, required
  - `ttl_days` integer
  - `note` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
