PigeonDocs

Workout, program and session schemas

Read the canonical training bodies for a reusable workout, a program and a performed session.

Developer guideOpen Data & schemas
On this page

See the record envelope for revision and provenance fields. The kind registry lists all writer and reader schemas.

Workout

A live training template groups its prescription into blocks.

Download the workout writer schema

JSON
{
  "title": "demo",
  "equipment": [],
  "target_muscles": [],
  "contraindications": [],
  "blocks": []
}

Program

A program defines a schedule and typed workout references.

Download the program writer schema

JSON
{
  "title": "demo",
  "equipment": [],
  "target_muscles": [],
  "contraindications": [],
  "phases": [],
  "progression_rules": []
}

Session

A session records performed training, including individual exercise sets.

Download the session writer schema

JSON
{
  "title": "demo",
  "status": "active",
  "time_confidence": "unknown",
  "active_duration_ms": 0,
  "pause": {
    "elapsed_ms": 0
  },
  "occurrences": []
}

Workout version

An immutable pin contains a complete workout@1.0 body. The Hub verifies its digest after rewriting typed references.

Download the workout version writer schema

JSON
{
  "workout": {
    "record": "0194ab00-0000-7000-8000-000000000001"
  },
  "schema": "workout@1.0",
  "body": {
    "title": "demo",
    "equipment": [],
    "target_muscles": [],
    "contraindications": [],
    "blocks": []
  },
  "body_sha256": "6abfd7f29f3de9caf3ae5101b22d6ec382c1ba11e2d88fa668e6767230d2ee7b"
}

Planned workout

A planned workout schedules a prescription separately from its reusable template.

Download the planned workout writer schema

JSON
{
  "workout": {
    "record": "0194ab00-0000-7000-8000-000000000001"
  },
  "planned_date": "2026-01-01",
  "scheduled_date": "2026-01-01",
  "status": "planned"
}