---
title: "Generate"
method: POST
path: "/clinician-share/generate"
tags: ["clinician-share"]
---

# Generate

`POST /clinician-share/generate`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/clinician-share/generate`
- Auth: none declared

Generate a share code for a child profile.

Only the billing contact (family owner) can generate share codes. Returns the
newest active code made for nobody in particular, or mints one (Q35).

## Request body

- GenerateRequest
  - `child_id` string, required

## Response `200`

Successful Response

- GenerateResponse
  - `code` string, required
  - `share_url` string, required
  - `expires_at` string, required
  - `child_name` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
