← Syllabus Schedule Maker
Your token

Syllabus Schedule Maker API

Dating every class, skipping no-class days, placing topics and every export run free in the browser and need no API. The API is for the one metered step: send the dated classes and the topics placed on them, and get back, as JSON, the units (which topics form each, with a short title from their words) and the graded work (which class each kind is due on, and its weight). The page builds this input for you and checks every unit, date and weight before it is used.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is {"data": ...} or {"error": {"code", "message"}}; read error.code and error.message rather than the HTTP status alone.

The task field

This app has one task. Always send "task": "plan".

taskWhat it doesReply
planGroups the topics into units and places each kind of graded work on a class, with weights that add up to 100.One JSON object

Input fields

Every field is a string; topics, sessions and facts hold JSON text. All but course are required.

FieldMeaning
task"plan"
levelschool, intro, upper or graduate. It sets the weight cap: 35 for school and intro, 50 for upper and graduate (participation 15).
kindsComma-separated, at least three of exam_midterm, exam_final, project, paper, presentation, quiz, homework, lab_report, participation.
topicsJSON list of {id, text, classes} in teaching order (t1, t2, ...), 6 to 80 topics. classes lists the class ids the topic is taught on.
sessionsJSON list of every class {id, date, day, week} (c1, c2, ...), plus {id: "final", ..., final_exam_day: true} when there is a final exam day.
facts{class_count, weeks_with_classes, first_week, last_week, last_week_sessions, midterm_from, midterm_to, second_half_from, final_session, units_min, units_max}, computed from the classes.
courseOptional course name.

The reply

job.output.output is text holding one JSON object: units, a list of {title, topics}, and graded, a list of {kind, sessions, weight}. Before using it, check it as the page does: units_min to units_max units taking every topic once in order; every title word of 4+ letters found in its own topics; each ticked kind once; one-off kinds on one class, quizzes, homework and lab reports on 3+ classes at most one a week, participation on none; nothing in the first week; the final on the final exam day or in the last week; the midterm from midterm_from to midterm_to; projects and papers from second_half_from; midterm, final, project and paper in different weeks; weights multiples of 5 within the caps, adding up to 100. If the balance ran low, truncated is true and the object may stop early; the page keeps every unit and item that arrived whole.

Worked example

Input (input.json, shortened), a general chemistry course:

{
  "task": "plan",
  "level": "intro",
  "kinds": "exam_midterm,exam_final,quiz,lab_report,participation",
  "topics": "[{\"id\": \"t1\", \"text\": \"Matter and measurement\", \"classes\": [\"c1\", \"c2\", ...]}, {\"id\": \"t2\", \"text\": \"Atoms and the periodic table\", \"classes\": [\"c3\", \"c4\", ...]}, {\"id\": \"t3\", \"text\": \"Molecules and ions\", \"classes\": [\"c5\", ...]}, ...]",
  "sessions": "[{\"id\": \"c1\", \"date\": \"2026-08-24\", \"day\": \"Mon\", \"week\": 1}, {\"id\": \"c2\", \"date\": \"2026-08-26\", \"day\": \"Wed\", \"week\": 1}, {\"id\": \"c3\", \"date\": \"2026-08-28\", \"day\": \"Fri\", \"week\": 1}, ...]",
  "facts": "{\"class_count\":42,\"weeks_with_classes\":15,\"first_week\":1,\"last_week\":15,\"last_week_sessions\":[\"c40\",\"c41\",\"c42\"],\"midterm_from\":\"c15\",\"midterm_to\":\"c27\",\"second_half_from\":\"c22\",\"final_session\":\"final\",\"units_min\":6,\"units_max\":12}",
  "course": "General Chemistry I"
}

Reply:

{
 "units": [
  {
   "title": "Matter, atoms and molecules",
   "topics": [
    "t1",
    "t2",
    "t3"
   ]
  },
  {
   "title": "Formulas, the mole and equations",
   "topics": [
    "t4",
    "t5",
    "t6"
   ]
  },
  {
   "title": "Stoichiometry and limiting reactants",
   "topics": [
    "t7",
    "t8"
   ]
  },
  {
   "title": "Solutions, acids and redox",
   "topics": [
    "t9",
    "t10",
    "t11"
   ]
  },
  {
   "title": "Gases and kinetic molecular theory",
   "topics": [
    "t12",
    "t13"
   ]
  },
  {
   "title": "Thermochemistry and enthalpy",
   "topics": [
    "t14",
    "t15"
   ]
  },
  {
   "title": "Quantum theory and periodic trends",
   "topics": [
    "t16",
    "t17",
    "t18"
   ]
  },
  {
   "title": "Ionic and covalent bonding",
   "topics": [
    "t19",
    "t20",
    "t21"
   ]
  },
  {
   "title": "Molecular shapes and hybrid orbitals",
   "topics": [
    "t22",
    "t23"
   ]
  },
  {
   "title": "Intermolecular forces",
   "topics": [
    "t24"
   ]
  }
 ],
 "graded": [
  {
   "kind": "exam_midterm",
   "sessions": [
    "c17"
   ],
   "weight": 25
  },
  {
   "kind": "exam_final",
   "sessions": [
    "final"
   ],
   "weight": 30
  },
  {
   "kind": "quiz",
   "sessions": [
    "c6",
    "c10",
    "c14",
    "c20",
    "c25"
   ],
   "weight": 15
  },
  {
   "kind": "lab_report",
   "sessions": [
    "c8",
    "c13",
    "c19",
    "c28",
    "c34"
   ],
   "weight": 15
  },
  {
   "kind": "participation",
   "sessions": [],
   "weight": 15
  }
 ]
}

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above, or a required field is missing or empty.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://syllabus-schedule-maker.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"syllabus-schedule-maker"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "plan", "level": "intro", "kinds": "exam_midterm,exam_final,quiz,lab_report,participation", "topics": "[...]", "sessions": "[...]", "facts": "{...}", "course": "General Chemistry I"}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="syllabus-schedule-maker:plan:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: units, graded
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: syllabus-schedule-maker:plan:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json