---
title: "Validate Invite"
method: POST
path: "/parent-invite/validate"
tags: ["parent-invite"]
---

# Validate Invite

`POST /parent-invite/validate`

## 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/validate`
- Auth: none declared

Validate an invite code and return child info for messaging.

Called BEFORE auth to check if code is valid and get child name.
Does NOT require authentication - allows checking before signup.
Returns generic error for both invalid and already-claimed codes (security).

Side-effect: sets first_opened_at on first validation call per code and
fires a parent_invite_opened PostHog event.

## Request body

- SrcApiParentInviteRoutesValidateInviteRequest
  - `code` string, required

## Response `200`

Successful Response

- SrcApiParentInviteRoutesValidateInviteResponse
  - `valid` boolean, required
  - `child_name` string, nullable
  - `organisation_name` string, nullable
  - `organisation_logo_url` string, nullable
  - `therapist_name` string, nullable

## 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)
