Skip to main content
POST
/
families
/
{familyID}
/
children
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

const result = await phosra.children.create("f0000000-0000-4000-8000-0000000000f1", {
  name: "Mia",
  birth_date: "2015-06-01"
});
console.log(result);
{
  "id": "ca02f5d1-fee8-4201-b5ca-fdc8be506e1e",
  "family_id": "fcdf4277-ba14-4732-8db5-0369b2c88d8b",
  "name": "Ada",
  "birth_date": "2015-04-10T00:00:00Z",
  "avatar_url": "https://cdn.phosra.com/avatars/ada.png",
  "created_at": "2026-06-18T14:32:07Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

familyID
string<uuid>
required

Body

application/json
name
string
required
birth_date
string<date>
required

Response

Child added

id
string<uuid>

Unique identifier for this resource.

family_id
string<uuid>

Identifier of the family this resource belongs to.

name
string

Human-readable display name.

birth_date
string<date-time>

Child's date of birth (YYYY-MM-DD). Used to derive the age-appropriate policy.

avatar_url
string

URL of the profile image.

created_at
string<date-time>

RFC 3339 timestamp of when the resource was created.