---
title: "Generate Invite"
method: POST
path: "/parent-invite/generate"
tags: ["parent-invite"]
---

# Generate Invite

`POST /parent-invite/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/parent-invite/generate`
- Auth: none declared

Generate a new invite code for an existing child.

Creates a new invite code without revoking existing ones. Multiple active
codes can coexist - they expire naturally after 30 days.

Authentication: JWT required via Authorization header

## Request body

- GenerateInviteRequest
  - `child_id` string, required
  - `parent_email` string, email, nullable

## Response `200`

Successful Response

- GenerateInviteResponse
  - `invite_code` string, required
  - `invite_url` string, required
  - `expires_at` 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)
