---
title: "Create Child"
method: POST
path: "/children"
tags: ["children"]
---

# Create Child

`POST /children`

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

Create a new child profile.

Required: name, date_of_birth
Optional: age, gender, pronouns, diagnosis, conditions, diagnosed,
          stage, initial_concerns

Authentication: JWT required
Authorization: RLS enforced - child linked to authenticated user

Returns:
    Created child profile with generated child_id

## Request body

- SrcApiChildrenProfileCreateChildRequest: Required: name + date_of_birth. All other fields optional.
  - `name` string, required
  - `date_of_birth` string, date, required
  - `age` string, nullable
  - `gender` string, nullable
  - `pronouns` string, nullable
  - `diagnosis` string[], nullable
  - `conditions` string[], nullable
  - `diagnosed` boolean, nullable
  - `stage` string, nullable
  - `initial_concerns` string, nullable
  - `ndis_number` string, nullable
  - `medicare_number` string, nullable
  - `nhs_number` string, nullable
  - `tracks` ChildTrackSeed[], nullable
    - `name` string, required
    - `item_name` string, required
    - `item_name_plural` string, required
    - `icon` string, nullable

## Response `200`

Successful Response

- ChildResponse: Child profile response
  - `child_id` string, required
  - `user_id` string, nullable
  - `name` string, required
  - `date_of_birth` string, date, nullable
  - `age` string, nullable
  - `gender` string, nullable
  - `pronouns` string, nullable
  - `diagnosis` string[]
  - `conditions` string[]
  - `diagnosed` boolean
  - `stage` string, nullable
  - `initial_concerns` string, nullable
  - `avatar` string, nullable
  - `avatar_url` string, nullable
  - `inbox_email` string, nullable
  - `ndis_number` string, nullable
  - `medicare_number` string, nullable
  - `nhs_number` string, nullable
  - `emergency_profile_completed_at` 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)
