PlaySpace

Partner Platform

Bring therapeutic play into your platform.

PlaySpace builds the interactive layer of child and family mental health care: a shared sandtray two people can move figures in from different cities, a dollhouse, a collaborative whiteboard, therapeutic games, and illustrated storybooks written for one child. The Partner Platform puts the real PlaySpace dashboard inside your product, signed in as your clinicians, with your backend provisioning the records it works on.

The browser half, in full:

import { mount } from '@playspace-health/embed'

mount({
  container: document.getElementById('playspace')!,
  ehrOrigin: 'https://agentic-ps.playspace.health',
  getCode: async ({ path }) => {
    const res = await fetch('/playspace/sign-in-code', {
      method: 'POST',
      headers: { 'content-type': 'application/json' },
      body: JSON.stringify({ path }),
    })
    return ((await res.json()) as { code: string }).code
  },
})

Your Partner API credential stays on your server. getCode calls your own route, which decides which clinician is signed in to your product and mints a sign-in code for them that works once and lasts 60 seconds. When a session reaches its limit, the frame asks for another code and carries on.

Not a JavaScript stack? Nothing here requires one. The server half is a plain HTTPS call and the browser half is an iframe, so a page rendered by Python, PHP, Java, C# or Ruby frames the same dashboard. Using the API from other languages is that whole path.

One integration

The same PlaySpace product every clinician uses, with the same permissions and features. You provision the records, frame the dashboard, and bring patients in.

Inside the frame

Everything a partner clinic is entitled to, in the dashboard itself. Live sessions run in the same frame rather than a new tab.

Sandtray and dollhouse

A shared three-dimensional tray and a dollhouse, moved by two people from different places in a live session.

Live sessions

Video, the meeting room, the whiteboard and therapeutic games, running inside your page.

Clients and notes

Client records, clinical notes and the note-taker, under the same rules as every PlaySpace clinician.

Forms

Intake and assessment forms a clinician builds, sends and reviews.

Storybooks and worksheets

Illustrated stories written for one child, and worksheets a clinician uploads and annotates.

The assistant and Connections

On for partner clinics from the start. Your settings can switch any area off.

How it fits together

  1. 1

    You create the records

    Clinics, practitioners, patients and appointments, through the Partner API, with an idempotency key on every write. PlaySpace assigns the identifiers and you keep them alongside your own.

  2. 2

    You set your origins and features

    One settings call lists the origins allowed to frame PlaySpace and switches off any area your clinicians should not see. Patient contact stays off until you turn it on.

  3. 3

    You sign the clinician in

    Your server mints a one-time sign-in code for the clinician signed in to your product, and @playspace-health/embed frames the dashboard with it.

  4. 4

    You bring the patient in

    Request the patient's join link for an appointment and deliver it yourself. The clinician starts the session from inside the frame.

Core concepts

The tenancy boundary, the two credentials, and the retry contract

@playspace-health/embed

The one installable package: mount, sign-out and the frame messages

Endpoint summary

Every operation the Partner API serves, with the scope each needs

Security and compliance

What the platform enforces on itself, and what it asks of you