# Create Payment Source: https://docs.classquill.com/api-reference/billing/create-payment /openapi.json post /v1/payments Record a MANUAL / EXTERNAL payment (cash, bank transfer, off-platform). This endpoint NEVER initiates a real charge. `payment_type` must be `external` — any Stripe/processor value (single_session, group_session, package_redemption) is rejected with 422, because a real charge must flow through the Stripe PaymentIntent + webhook that keeps `session_ledger` consistent; the Python backend does not own money flows. `organization_id` and `created_at` are server-set; `stripe_payment_intent_id` is always null. The referenced `session_id` (and any `student_id`/`tutor_id`) must be org-scoped (404 otherwise). Honours `Idempotency-Key`. # Get Invoice Source: https://docs.classquill.com/api-reference/billing/get-invoice /openapi.json get /v1/invoices/{invoice_id} Fetch a single invoice (with line items) by ID. 404 unless its `organization_id` is this org (same scoping as list_invoices). # Get Payment Source: https://docs.classquill.com/api-reference/billing/get-payment /openapi.json get /v1/payments/{payment_id} Fetch a single payment by ID. 404 if it doesn't exist or belongs to another org. # Get Payout Source: https://docs.classquill.com/api-reference/billing/get-payout /openapi.json get /v1/payouts/{payout_id} Fetch a single payout by ID. 404 if it doesn't exist or belongs to another org. # List Invoices Source: https://docs.classquill.com/api-reference/billing/list-invoices /openapi.json get /v1/invoices List invoices for the org (most recent first), each with its line items. Scoped by `tutor_invoices.organization_id`, kept reliable by the auto-draft + line-item triggers (WS-3). Filter by student, status, or date range. # List Payments Source: https://docs.classquill.com/api-reference/billing/list-payments /openapi.json get /v1/payments List payments received by the org (most recent first). Scoped directly by `organization_id`. Filter by student, tutor, status, or date range. # List Payouts Source: https://docs.classquill.com/api-reference/billing/list-payouts /openapi.json get /v1/payouts List completed tutor payouts for the org (most recent first) — the wage-payment ledger for payroll export. Scoped directly by `organization_id`. Notification-plumbing columns are not exposed; the table carries no bank details. # Create Blog Post Source: https://docs.classquill.com/api-reference/blog/create-blog-post /openapi.json post /v1/blog-posts Create a blog post on the calling key's OWN organisation blog — the post is scoped to the key's org, so callers normally send only `title` (+ optional fields). Defaults `status='draft'`. Slug is derived from the title when omitted and must be unique per org. Honours `Idempotency-Key`. Requires the `blog:write` scope (NOT granted by the `write` umbrella). `target`/`brand` are reserved for EquateIt marketing sites: `target='platform'` writes a public marketing post (organization_id NULL), requires the key's platform-blog capability, and `brand` (required for platform) selects the surface. # Delete Blog Post Source: https://docs.classquill.com/api-reference/blog/delete-blog-post /openapi.json delete /v1/blog-posts/{post_id} Delete a blog post. 204 on success, 404 if not found or out of the key's scope (own org, or platform when the key is platform-capable). Published posts can be deleted (no guard — PATCH to unpublish first if preferred). DELETE is already idempotent, so it takes no Idempotency-Key. Requires `blog:write`. # Get Blog Post Source: https://docs.classquill.com/api-reference/blog/get-blog-post /openapi.json get /v1/blog-posts/{post_id} Fetch one blog post the key may see (own org, or platform when capable). Cross-scope / missing → 404. Requires `read`. # List Blog Posts Source: https://docs.classquill.com/api-reference/blog/list-blog-posts /openapi.json get /v1/blog-posts List blog posts visible to the key: its OWN org's posts always, plus platform posts when the key has the platform-blog capability. Optional brand/status/target filters. Includes drafts (this is an authoring surface). Requires `read`. # Update Blog Post Source: https://docs.classquill.com/api-reference/blog/update-blog-post /openapi.json patch /v1/blog-posts/{post_id} Update fields and/or flip `status` to 'published'. brand/target are immutable. Re-publishing an already-published post is a no-op success (no duplicate rebuild dispatch). Cross-scope id → 404. Requires `blog:write`. # Upload Blog Image Source: https://docs.classquill.com/api-reference/blog/upload-blog-image /openapi.json post /v1/blog-images Upload an image to the `blog-images` Supabase storage bucket and return its public URL (use as a post's `featured_image` or inline in `content`). By default the image is stored under the calling key's OWN organisation. * target=org (default) → `org//-` (the key's own org). * target=platform → `platform//-`; reserved for EquateIt marketing sites — requires the key's platform-blog capability. 415 on an unsupported MIME type, 413 over 10 MB. Requires `blog:write`. # Create Lead Source: https://docs.classquill.com/api-reference/bookings/create-lead /openapi.json post /v1/leads Capture an inbound lead into your org's CRM (e.g. a website quote funnel). The free-form details (name/phone/subject) are stored in the lead's `payload`; `email`, `source_url`, `notes` and a `source_form_name` snapshot are columns; `status` starts at 'new'. `audience` ('student'/'tutor'/'parent') defaults to 'student' when omitted. Honours `Idempotency-Key`. Requires `leads:write` (the coarse `write` umbrella grants it). # Get Lead Source: https://docs.classquill.com/api-reference/bookings/get-lead /openapi.json get /v1/leads/{lead_id} Fetch a single lead by ID. 404 if it doesn't exist or belongs to another org. # List Booking Requests Source: https://docs.classquill.com/api-reference/bookings/list-booking-requests /openapi.json get /v1/booking-requests List incoming booking requests for the org (most recent first). These are the "request a tutor" submissions from the org's public page. Scoped directly by `org_id`. Filter by status or requested subject. # List Leads Source: https://docs.classquill.com/api-reference/bookings/list-leads /openapi.json get /v1/leads List inbound leads captured by the org's lead forms (most recent first). Scoped directly by `org_id`. The free-form `payload` is NOT exposed; only a safe subset (name/email/phone/subject) is flattened. `ip_address`, `user_agent`, and raw `utm` are never exposed. # Recommend Tutors Source: https://docs.classquill.com/api-reference/bookings/recommend-tutors /openapi.json get /v1/booking-requests/{request_id}/recommended-tutors Rank the org's tutors for a booking request, best fit first. Each tutor is scored 0–100 on subject match, availability overlap with the requested days/times, teaching mode, spare capacity, and — for an in-person request with a known suburb — proximity (via the shared match_org_tutors RPC, which also powers the in-app matcher). Tutors who can't do the requested arrangement or are beyond their travel radius are omitted. Includes a per-signal `breakdown`, `distance_km`/`nearby`, and human-readable `reasons`. Read-only — this recommends, it never assigns. 404 if the request isn't this org's. # Create Lesson Plan Source: https://docs.classquill.com/api-reference/coursework/create-lesson-plan /openapi.json post /v1/lesson-plans Create a lesson plan — a tutor-authored, curriculum-aware teaching plan. `created_by` (the key's creator), `created_at`, and `updated_at` are server-set. Any referenced `classroom_id`/`group_id`/`student_id` must belong to your org (404 otherwise). Honours `Idempotency-Key` on retry. # Create Question Source: https://docs.classquill.com/api-reference/coursework/create-question /openapi.json post /v1/questions Create a question in your org's private question bank. The question is stamped with `organization_id` (the calling org) and no `user_id` — org-owned content survives individual tutor turnover. It then appears in the default `GET /v1/questions` union for this org (and in the in-app Question Bank's "Org Bank" scope), but never in the shared catalogue. Honours `Idempotency-Key`. Requires `coursework:write` (the coarse `write` umbrella grants it). # Get Result Source: https://docs.classquill.com/api-reference/coursework/get-result /openapi.json get /v1/results/{result_id} Fetch a single assessment result by ID. 404 unless it belongs to one of the org's students. # List Files Source: https://docs.classquill.com/api-reference/coursework/list-files /openapi.json get /v1/files List the org's files and resources (most recent first) — the content library. Scoped by `resources.tenant_org_id`, derived from each resource's scope at creation (organization → classroom → group → tutor-student relationship → single-org owner, WS-3B ph2) — so a multi-org tutor's other-org or ambiguous `personal` files never surface here. # List Homework Source: https://docs.classquill.com/api-reference/coursework/list-homework /openapi.json get /v1/homework List assessments assigned by the org's tutors (most recent first). One row per `assessment_assignments` row — a paper assigned to two classrooms is two homework rows with two due dates. Scoped by the assignment's TARGET (the org's classrooms, its groups, and its affiliated students for 1:1 rows) rather than a stamped org column: `assessment_assignments` has none, and the paper's `assessments.org_id` is only set for org-tier papers, so a classroom paper authored inside an org classroom would otherwise vanish from this list. Same id sets `_org_scope` computes for every other cross-org read. A student-scope (1:1) row additionally requires `assigned_by` to be one of the org's staff, so another tutor's private work for a shared student never lists here (F4). `homework_type` is the paper's `kind` — a label, six values, never a behaviour. # List Lesson Plans Source: https://docs.classquill.com/api-reference/coursework/list-lesson-plans /openapi.json get /v1/lesson-plans List the org's lesson plans (most recent first). Tutor-authored, curriculum- aware teaching plans — an EquateIt feature with no Teachworks equivalent. Scoped by `lesson_plans.organization_id`, derived from each plan's scope at creation (classroom → group → session → tutor-student relationship → single-org author, WS-3B) — so a multi-org tutor's plans for another org don't surface here. # List Questions Source: https://docs.classquill.com/api-reference/coursework/list-questions /openapi.json get /v1/questions List questions available to the org. By default returns the shared catalogue (VCAA / EquateIt / Bank) plus the questions this org's own tutors authored. Each row carries `owned_by_org` and `total_marks` (summed across its parts). # List Results Source: https://docs.classquill.com/api-reference/coursework/list-results /openapi.json get /v1/results List assessment results (`assessment_attempts`) for the org's students, newest first. Covers every attempt — an assigned paper (`mode = homework`, carrying `homework_assignment_id`) and a self-directed sitting (`mode` = its kind: topic_practice, diagnostic, smart_review, saved_review, ai_practice). `grade` is the attempt's percentage score, null until marked. `status` uses the /v1 vocabulary: `completed` is the table's `submitted`; `expired` (timed out) and `discarded` (walked away with nothing written) are new. `assessment_attempts` has no org column, so results are scoped to the org's students. The optional `from`/`to` range filters on completion date. # Update Lesson Plan Source: https://docs.classquill.com/api-reference/coursework/update-lesson-plan /openapi.json put /v1/lesson-plans/{plan_id} Update a lesson plan (partial — send only fields to change). 404 unless the plan's `organization_id` is your org. Any newly referenced classroom/group/student must also belong to your org. Returns the full updated plan. # Add Student To Classroom Source: https://docs.classquill.com/api-reference/curriculum/add-student-to-classroom /openapi.json post /v1/classrooms/{classroom_id}/students Enrol an existing org member as a student in a classroom. Idempotent. # Add Tutor To Classroom Source: https://docs.classquill.com/api-reference/curriculum/add-tutor-to-classroom /openapi.json post /v1/classrooms/{classroom_id}/tutors Add an accepted org tutor/admin as a teacher on a classroom. Idempotent. # Create Classroom Source: https://docs.classquill.com/api-reference/curriculum/create-classroom /openapi.json post /v1/classrooms Create a classroom scoped to this org. The org owner is set as the tutor (owner-as-merchant model). Returns 422 with a `reason` field on validation failure. Honours `Idempotency-Key`. # Get Classroom Source: https://docs.classquill.com/api-reference/curriculum/get-classroom /openapi.json get /v1/classrooms/{classroom_id} Fetch a single classroom by ID. 404 unless it belongs to this org (org-owned, or a single-org member's null-org classroom). # Get Student Group Source: https://docs.classquill.com/api-reference/curriculum/get-student-group /openapi.json get /v1/student-groups/{group_id} Fetch a single student group (with members) by ID. 404 unless it belongs to this org (org-owned, or a single-org member's null-org group). # List Classrooms Source: https://docs.classquill.com/api-reference/curriculum/list-classrooms /openapi.json get /v1/classrooms List the org's classrooms (most recent first). Scoped to classrooms whose `organization_id` is this org, plus null-org legacy classrooms owned by a single-org member — so a multi-org tutor's other-org classrooms don't surface. Consistent with student-groups. # List Student Groups Source: https://docs.classquill.com/api-reference/curriculum/list-student-groups /openapi.json get /v1/student-groups List the org's student groups, each with its accepted student-member IDs. Scoped to groups whose `organization_id` is this org, plus null-org groups owned by a single-org member — so a multi-org tutor's other-org groups don't surface. Ordered by the tutor's configured sort order. # List Subjects Source: https://docs.classquill.com/api-reference/curriculum/list-subjects /openapi.json get /v1/subjects The subjects the org teaches, derived from the subject IDs on its sessions. `name` is the subject_registry label (the platform subject dictionary, subject-system overhaul P1); unregistered/legacy ids fall back to the raw id. # Add Student To Group Source: https://docs.classquill.com/api-reference/general/add-student-to-group /openapi.json post /v1/groups/{group_id}/students Enrol an existing org member as a student in a group. Writes an accepted row on the group's parent classroom first if the student has none there. If their classroom place is still pending, the group place is held: status is "pending", and it becomes "accepted" automatically when the classroom place is approved. A student who left or was removed from the classroom is refused with 422; re-add them to the classroom first. Idempotent. # Add Tutor To Group Source: https://docs.classquill.com/api-reference/general/add-tutor-to-group /openapi.json post /v1/groups/{group_id}/tutors Add an org tutor as a teacher on a group. Cascades to the parent classroom (a group instructor is always a classroom teacher). Idempotent. # Coverage Gaps Source: https://docs.classquill.com/api-reference/general/coverage-gaps /openapi.json get /v1/coverage/gaps Where the org is short on tutors: postcodes with booking demand but too few IN-PERSON tutors covering them, ranked worst-first. Delegates to the get_org_coverage_gaps RPC — the single source of truth shared with the in-app coverage map. Demand comes from this org's booking requests, status-weighted in SQL (pending weighs most; declined/expired/matched less) and placed by `preferred_postcode`. Supply counts IN-PERSON covering tutors only: an online all-areas tutor "covers" everywhere but cannot physically be in the area, so it must not mask a geographic gap. Aggregated per postcode (filter by `subject` for a single subject). Read-only intelligence: it recommends where to recruit, it changes nothing. # Coverage Summary Source: https://docs.classquill.com/api-reference/general/coverage-summary /openapi.json get /v1/coverage/summary Supply headcount for a subject and (optionally) a postcode in one call. Returns `{ total, in_person, online, covering_area }`: `total` is the org's subject-matched tutors, `in_person`/`online` split by delivery mode ('both' counts in both), and `covering_area` is how many of them reach `postcode`. With no postcode, `covering_area == total` (geography ignored). Same coverage RPC; no geometry recomputed. # Coverage Tutors Source: https://docs.classquill.com/api-reference/general/coverage-tutors /openapi.json get /v1/coverage/tutors The org's tutors with their service-area coverage of `postcode`, covering-first. Each tutor carries `covers_area` — does their declared service (serves_all_areas, service_postcodes, or within max_travel_km) reach the postcode — and `distance_km`, the straight-line km from the postcode centroid to the tutor's home (null when either is unknown). Coverage is computed once, server-side, by the shared coverage RPC; it is never re-derived here. With no `postcode`, geography is ignored and every tutor is flagged covers_area=true. Postcode-level only — street addresses are never returned. Org-bound (the API key scopes the org). # Create Group Source: https://docs.classquill.com/api-reference/general/create-group /openapi.json post /v1/groups Create a group linked to an existing org classroom. The org owner is the primary tutor. Groups must be linked to a classroom — the membership endpoints require it. Honours `Idempotency-Key`. # Create Invite Source: https://docs.classquill.com/api-reference/general/create-invite /openapi.json post /v1/invites Mint a join link or code for a chosen scope, org-scoped to the API key's org. Scopes: `organization` (recruit a tutor/admin by email, or get a reusable org join link), `tutor_student` (1-on-1), `classroom`, `group`, `parent`. Supply `email` to invite a specific person (creates an invite row; EquateIt emails them where the platform already does); omit `email` for a reusable shareable link/code. Cross-org targets return 404. Honours `Idempotency-Key`. # Create Message Source: https://docs.classquill.com/api-reference/general/create-message /openapi.json post /v1/messages Send an in-app message into a conversation. `sender_id` must be an accepted member of your org **and** an active participant of the target conversation (404 otherwise) — the API can't impersonate a family member or post into a thread it isn't part of. The message is sent as plain text, visible to everyone in the thread, and the normal bell/email notifications fire. Honours `Idempotency-Key`. # Get Curriculum Item Source: https://docs.classquill.com/api-reference/general/get-curriculum-item /openapi.json get /v1/curriculum/items/{item_id} One curriculum item with its `children_count` and owning `subject_id`. If the item was merged into another, the canonical item is returned and `merged_from_id` carries the id you asked for. Items from other organisations, and unknown ids, return the same 404. # Get Me Source: https://docs.classquill.com/api-reference/general/get-me /openapi.json get /v1/me Return the identity of the authenticated org. Works with both API key (Token token=cq_live_...) and OAuth 2 Bearer tokens. Zapier calls this endpoint after authentication to confirm the connection and display the connected account label. Returns 401 if the credential is missing, invalid, revoked, or expired. # Get Note Source: https://docs.classquill.com/api-reference/general/get-note /openapi.json get /v1/notes/{note_id} Fetch a single note, including `content_markdown` — the full body as a markdown document. 404 if it does not exist or this key may not read it (never 403, so cross-user existence does not leak). # List Conversation Messages Source: https://docs.classquill.com/api-reference/general/list-conversation-messages /openapi.json get /v1/conversations/{conversation_id}/messages List messages in a thread (most recent first). Only public (`visibility='everyone'`), non-deleted messages are returned — family-private messages are never exposed. 404 if the thread isn't in your org. # List Conversations Source: https://docs.classquill.com/api-reference/general/list-conversations /openapi.json get /v1/conversations List the org's message threads (most recently active first). A thread is included when one of its active participants is an accepted member of your organisation. Each thread lists its active participants (user_id + role) and its last-activity time. Message bodies are fetched separately (and only public, `visibility='everyone'` messages are ever returned). # List Curriculum Items Source: https://docs.classquill.com/api-reference/general/list-curriculum-items /openapi.json get /v1/curriculum/items Browse a subject's curriculum tree to find the `curriculum_item_id` for a question part. Items are in tree order (depth-first, siblings by their curriculum order, ties by id), so a page reads like the syllabus. `parent_id` narrows to one item's direct children: walk down from the top level to the right topic. Items belonging to another organisation are never listed. An unknown, inactive or tree-less subject returns 404. # List Notes Source: https://docs.classquill.com/api-reference/general/list-notes /openapi.json get /v1/notes List topic notes (most recent first). Returns the published shared corpus by default. Add the `notes:personal` scope to a key to also see notes owned by the key's creator, or pass `?scope=personal` for only those. **`content_markdown` is null here** — list responses carry metadata only; fetch a single note to get its body. # List Org Inbox Source: https://docs.classquill.com/api-reference/general/list-org-inbox /openapi.json get /v1/org-inbox List inbound inquiries in the org's admin inbox (visitor messages to contact-only tutor cards + routed first-contact DMs). Distinct from the conversation threads. # List Registry Subjects Source: https://docs.classquill.com/api-reference/general/list-registry-subjects /openapi.json get /v1/curriculum/subjects The subject registry visible to your org: platform subjects plus any your org created. Each entry gives the `subject_id` to send when creating questions and whether a curriculum tree exists (`GET /v1/curriculum/items?subject_id=...`). Active subjects only unless `include_inactive`. Ordered by label then id. # List Session Feedback Source: https://docs.classquill.com/api-reference/general/list-session-feedback /openapi.json get /v1/session-feedback Lesson feedback for the org's tutors, newest first (owner/admin view — attributed). `session_feedback.organization_id` is stamped at submit time, so rows scope directly to this org. Pass `anonymize=true` to return a first-name + initial instead of the full reviewer name when re-publishing externally. Note: legacy `tutor_reviews` migrated into `session_feedback` carry a NULL organization_id (they predate org scoping) and are intentionally NOT returned here — they belong to no org. Backfilling them to a tutor's *current* org would mis-attribute pre-org personal reviews, so the exclusion is by design. # Org Join Link Source: https://docs.classquill.com/api-reference/general/org-join-link /openapi.json get /v1/org/join-link The org's reusable self-signup join links + codes (student + tutor). Share these via Facebook/Instagram/WhatsApp — anyone who opens one is added to your org when they sign up, no email needed from you. Returns the existing codes (a field is null if that code hasn't been minted yet — call POST /v1/invites {scope:"organization"} to mint one). Requires `invites:write` even though it never writes: the tutor code grants STAFF membership, so handing it out is an access grant, not a read — a `read` key must not be able to turn itself into an org seat. # Ping Source: https://docs.classquill.com/api-reference/general/ping /openapi.json get /v1/ping Health check for the public API. Returns 200 with the authenticated org's ID and name when a valid API key is provided. Use this to verify your key is working correctly. Returns 401 if the key is missing, invalid, revoked, or expired. # Refresh Isochrones Source: https://docs.classquill.com/api-reference/general/refresh-isochrones /openapi.json post /v1/coverage/isochrones/refresh (Re)compute the org's in-person tutors' drive-time isochrones from Mapbox, caching them for the accurate coverage overlay + the gate's ST_Contains leg. Skips serves_all_areas / online tutors (no bounded reach to model) and any tutor whose home coordinate has not moved since its cached isochrone (the skip-guard), so repeat calls cost nothing. When MAPBOX_TOKEN is unset, `enabled` is false and nothing is computed — the map keeps using the max_travel_km radius circle. Intended for a cron / Hermes trigger; bounded by MAPBOX_ISOCHRONE_MAX_PER_REFRESH per call. # Update Note Source: https://docs.classquill.com/api-reference/general/update-note /openapi.json put /v1/notes/{note_id} Update a personal note (partial — send only fields to change). Only notes owned by the API key's creator are writable; the shared corpus is read-only over /v1, and anything else 404s. `content_markdown` is decoded back into the note's stored sections, and a section block this server does not recognise round-trips untouched. When both fields are sent, `title` wins over any title in the markdown front matter. This endpoint never creates a note — `topic_notes` has no uniqueness constraint, and duplicate rows break the app's `.maybeSingle()` reads. # Create Adjustment Source: https://docs.classquill.com/api-reference/operations/create-adjustment /openapi.json post /v1/adjustments Record a payroll adjustment (manual credit/debit) for one of the org's tutors. A negative `amount_cents` is a deduction. `tutor_id` must be an accepted member of your org (404 otherwise); `period_end` must be on or after `period_start`. `organization_id`, `created_by`, and `created_at` are server-set. Send an `Idempotency-Key` header to make retries safe — a repeat with the same body replays the original response; a repeat with a different body is a 409. # Get Location Source: https://docs.classquill.com/api-reference/operations/get-location /openapi.json get /v1/locations/{location_id} Fetch a single location by ID. 404 unless owned by this org, a member, or a student of it. # List Adjustments Source: https://docs.classquill.com/api-reference/operations/list-adjustments /openapi.json get /v1/adjustments List the org's payroll adjustments (most recent first) — manual credits/debits folded into payroll. A negative `amount_cents` is a deduction. Scoped directly by `organization_id`. Voided adjustments are excluded unless `include_voided=true`. # List Expenses Source: https://docs.classquill.com/api-reference/operations/list-expenses /openapi.json get /v1/expenses List the org's expense claims (most recent first) — for reimbursement export. Scoped directly by `organization_id`. Filter by tutor, status, category, or expense-date range. # List Locations Source: https://docs.classquill.com/api-reference/operations/list-locations /openapi.json get /v1/locations List the saved locations owned by the org, its tutors, and its students. `locations` has three owner columns (org_id / tutor_id / student_id), exactly one of which is set; `owner_type` is resolved in the response. Scoped to the union of this org, its accepted members, and its students. # List Mileage Source: https://docs.classquill.com/api-reference/operations/list-mileage /openapi.json get /v1/mileage List the org's mileage trips (most recent first) — for reimbursement export. Scoped directly by `organization_id`. Filter by tutor, status, or trip-date range. `amount_cents`/`rate_cents` are the snapshots taken at approval. # List Rate Bands Source: https://docs.classquill.com/api-reference/pricing/list-rate-bands /openapi.json get /v1/rate-bands List the org's named student price bands, in the org's configured sort order. Scoped directly by `organization_id`. Pairs with `rate-cells.band_id`. # List Rate Cells Source: https://docs.classquill.com/api-reference/pricing/list-rate-cells /openapi.json get /v1/rate-cells List the org's rate-matrix cells — student rates per (band × tier × subject × session kind), plus the in-person surcharge. Scoped directly by `organization_id`. Tutor-pay fields are pay-sensitive and only included when `include_pay=true`. # List Tutor Tiers Source: https://docs.classquill.com/api-reference/pricing/list-tutor-tiers /openapi.json get /v1/tutor-tiers List the org's tutor pay/qualification tiers, in the org's configured sort order. Names and labels only — no money. Scoped directly by `organization_id`. Pairs with `rate-cells.tutor_tier_id`. # Reports Summary Source: https://docs.classquill.com/api-reference/reports/reports-summary /openapi.json get /v1/reports/summary An owner's business-health snapshot in one call: active tutors/students, sessions today, money settled this week vs outstanding, and the number of approvals waiting. Day/week boundaries are UTC; the week starts Monday. No new rollup table — every figure is summed server-side in one call (`get_org_summary_metrics`). # Cancel Session Source: https://docs.classquill.com/api-reference/sessions/cancel-session /openapi.json post /v1/sessions/{session_id}/cancel Soft-cancel a session (keeps the record). 404 if it isn't in your org; cancelling an already-cancelled session is a 200 no-op; a completed session is 422. Marks the session and its participants cancelled. Honours `Idempotency-Key`. # Complete Session Source: https://docs.classquill.com/api-reference/sessions/complete-session /openapi.json put /v1/sessions/{session_id}/complete Mark a session completed. Sets `tutor_sessions.status='completed'` and writes one tutor-owed `session_ledger` row per participant from that participant's per-hour rate snapshot, atomically via a transactional RPC. Idempotent — completing an already-completed session is a no-op replay, never a double-ledger. No charge is initiated here. Requires the `sessions:write` scope. 404 if the session isn't in your org. # Create Session Source: https://docs.classquill.com/api-reference/sessions/create-session /openapi.json post /v1/sessions Create a SCHEDULED session. Creates a `tutor_sessions` row with status='scheduled' and a participant whose per-hour rate snapshot is resolved server-side from the org rate matrix. No charge is initiated — settlement flows through the existing Stripe PaymentIntent + webhook, and the tutor-owed ledger row is written only on completion (see PUT /v1/sessions/{id}/complete). `organization_id`, `creator_id`, `status`, the rate snapshot, and timestamps are all server-set. `tutor_id`/`student_id` must be org-scoped (404 otherwise). The money-moving write runs inside a single transactional RPC. Requires the `sessions:write` scope. Honours `Idempotency-Key`. # Delete Session Source: https://docs.classquill.com/api-reference/sessions/delete-session /openapi.json delete /v1/sessions/{session_id} Hard-delete a SCHEDULED session (and its participant rows). 404 if it isn't in your org; 422 if it isn't `scheduled` (use POST /v1/sessions/:id/cancel to cancel a completed/in-progress one). Returns 204 No Content. # Get Lesson Participant Source: https://docs.classquill.com/api-reference/sessions/get-lesson-participant /openapi.json get /v1/lesson-participants/{participant_id} Fetch a single lesson-participant row by ID. 404 unless its session belongs to this org. # Get Session Source: https://docs.classquill.com/api-reference/sessions/get-session /openapi.json get /v1/sessions/{session_id} Fetch a single session by ID. Returns 404 if the session doesn't exist or belongs to a different org (indistinguishable by design — prevents enumeration attacks). # List Lesson Participants Source: https://docs.classquill.com/api-reference/sessions/list-lesson-participants /openapi.json get /v1/lesson-participants List per-student attendance rows on the org's sessions (group/classroom attendance), most recent first. Scoped by `session_participants.organization_id` (denormalised from the parent session by trigger, WS-3). Billing-state fields (rate snapshots, settlement state, Stripe payment refs) are never exposed. # List Sessions Source: https://docs.classquill.com/api-reference/sessions/list-sessions /openapi.json get /v1/sessions List sessions for the authenticated organisation. Ordered by `created_at` descending (most recently **booked** first) by default so a polling integration that reads only the first page catches every new booking. Pass `?sort=starts_at` to order by when the session is **scheduled** instead (an agenda view). `from`/`to` always filter on `starts_at`, whichever sort is used. Filter by status, tutor, student, or date range. Supports limit/offset and cursor pagination. Common status values: completed, scheduled, cancelled, pending, time_change_requested, disputed. # Update Session Source: https://docs.classquill.com/api-reference/sessions/update-session /openapi.json put /v1/sessions/{session_id} Update a SCHEDULED session (reschedule/edit). 404 if it isn't in your org; 422 if it isn't `scheduled`. A time change that collides with the tutor's other scheduled session returns 409. Honours `Idempotency-Key`. # Bulk Invite Users Source: https://docs.classquill.com/api-reference/students-&-parents/bulk-invite-users /openapi.json post /v1/users/bulk-invite Bulk create/invite 1–100 users — students (optionally each with a parent), tutors, and parents — in one call. Each row carries a `type` discriminator. Auth is all-or-nothing: the key must hold every scope the batch's row types require (`students:write` for student/parent rows, `tutors:write` for tutor rows) or the whole request is 403. Provisioning is then per-row and independent — one row's failure never rolls back the others. Each input row maps to one `results[]` entry (same order, by `index`) with a `status`: - `ok` — newly provisioned (`created` = whether a new login was made) - `exists` — already an accepted member of this org (idempotent no-op) - `error` — could not provision (`error` carries a human-readable reason) Honours `Idempotency-Key` (the whole batch result is replayed on retry). # Create Parent Source: https://docs.classquill.com/api-reference/students-&-parents/create-parent /openapi.json post /v1/parents Create a parent account and link it to an existing org student (`student_id`). `email` is optional (omit → no-email placeholder account, invite later); when a real email is present and `send_invite` (default true) is set, emails a set-password link. The student must already be an accepted student of the org (else 404). # Create Student Source: https://docs.classquill.com/api-reference/students-&-parents/create-student /openapi.json post /v1/students Create a student account (name, subjects, phone, address, placement) and optionally a linked parent. `email` is optional (omit → no-email placeholder account, invite later); when a real email is present and `send_invite` (default true) is set, emails a set-password link. Cross-org placement targets return 404. # Get Parent Source: https://docs.classquill.com/api-reference/students-&-parents/get-parent /openapi.json get /v1/parents/{parent_id} Fetch a single parent by ID, with their org-linked children. 404 if none in this org. # Get Student Source: https://docs.classquill.com/api-reference/students-&-parents/get-student /openapi.json get /v1/students/{student_id} Fetch a single student by ID. 404 unless the student is affiliated with your org (classroom roster, 1:1 relationship, org membership, or a session) — the same set GET /v1/students lists, so anything you see there is fetchable here. # Link Parent Student Source: https://docs.classquill.com/api-reference/students-&-parents/link-parent-student /openapi.json post /v1/parents/{parent_id}/link-student Link a parent ALREADY KNOWN to your org to another of your students (a sibling). Both sides are org-scoped: `student_id` must be an org-affiliated student, and `parent_id` must be a parent account (profiles.account_type='parent') already linked to at least one of your students. 404 otherwise — a parent you have no relationship with is indistinguishable from one that does not exist. Idempotent — an existing link is returned as a 200 no-op. To associate a parent with your org for the FIRST time use `POST /v1/parents`, which identifies the parent by email (resolving an existing platform account, or minting one) against an org-scoped `student_id`. # List Parents Source: https://docs.classquill.com/api-reference/students-&-parents/list-parents /openapi.json get /v1/parents List the parents in your organisation (linked to at least one of your students), each with the IDs of their children. **Ordered by `enrolled_at` descending — newest first**, so a polling integration that reads only the first page still catches every new parent. A parent's `enrolled_at` is the earliest point at which both the parent↔student link and that child's enrolment existed — so a parent linked today to a long-standing student is new today, not backdated to the child's enrolment. # List Students Source: https://docs.classquill.com/api-reference/students-&-parents/list-students /openapi.json get /v1/students List the students in your organisation, each with the IDs of their linked parents. Includes everyone affiliated with the org by any route: rostered into one of your classrooms, in an active 1:1 relationship with one of your tutors, an accepted org member, or the student on one of your sessions. **Ordered by `enrolled_at` descending — newest enrolment first**, so a polling integration that reads only the first page still catches every new student. `enrolled_at` is when they joined *your org*; `created_at` is when their account was created (possibly elsewhere, possibly years earlier) — sort and filter on the former. # Lookup User Source: https://docs.classquill.com/api-reference/students-&-parents/lookup-user /openapi.json get /v1/users Look up a single user by email or phone. At least one of `email`/`phone` is required (422 otherwise). Only returns a user who is an accepted member of your org, or an org-affiliated student — a user in a different org is indistinguishable from a non-existent one (404, no existence leak). # Offboard Student Source: https://docs.classquill.com/api-reference/students-&-parents/offboard-student /openapi.json post /v1/students/{student_id}/offboard Offboard a student org-wide → the soft, read-only **alumni** tier. Archives the student's tutoring relationships in your org, removes their org classroom seats, and revokes org-provided premium/AI coverage (freeing any org-paid seat). The account is kept: the student can still see their own past work and can request to resume — re-add or re-invite them to restore access. A student who pays for themselves (or is covered outside your org) keeps that access. Reversible and idempotent — calling it again is a no-op success. 404 if `{student_id}` isn't a student affiliated with your org. Returns `success: false` with a `reason` (`cannot_offboard_owner`, `not_a_member`) when the operation does not apply. Requires the `students:write` scope, which the coarse `write` umbrella does NOT grant — it must be enabled deliberately. # Parent Balance Source: https://docs.classquill.com/api-reference/students-&-parents/parent-balance /openapi.json get /v1/parents/{parent_id}/balance What a parent owes and has paid, summed across their org-linked children's invoices. Returns 404 if the parent has no students in this org. # Send Parent Invite Source: https://docs.classquill.com/api-reference/students-&-parents/send-parent-invite /openapi.json post /v1/parents/{parent_id}/send-invite (Re)send the set-password invite to an org parent. 409 if they still have no real email; 404 if they aren't linked to a student in your org. # Send Student Invite Source: https://docs.classquill.com/api-reference/students-&-parents/send-student-invite /openapi.json post /v1/students/{student_id}/send-invite (Re)send the set-password invite to an org student created earlier. Use this after you've added an email to a no-email account (via PATCH /v1/students/{id}). 409 if the student still has no real email; 404 if they aren't affiliated with your org. # Update Student Source: https://docs.classquill.com/api-reference/students-&-parents/update-student /openapi.json patch /v1/students/{student_id} Update a student's admin-only fields. `admin_notes` is written directly. Supplying `email` sets/updates the login email and clears the no-email placeholder flag; `send_invite` (default false) sends a set-password link — combine them to add an email and invite in one call. Inviting an account that still has no real email is rejected (409). 404 if the student isn't affiliated with your org. Returns the full student. # Create Tutor Source: https://docs.classquill.com/api-reference/tutors/create-tutor /openapi.json post /v1/tutors Create a tutor (or admin) account + tutor profile. `email` is optional (omit → no-email placeholder account, invite later); when a real email is present and `send_invite` (default true) is set, emails a set-password link. # Get Availability Source: https://docs.classquill.com/api-reference/tutors/get-availability /openapi.json get /v1/availabilities/{availability_id} Fetch a single availability rule by ID. 404 unless its tutor is a member of this org. # Get Tutor Source: https://docs.classquill.com/api-reference/tutors/get-tutor /openapi.json get /v1/tutors/{tutor_id} Fetch a single tutor/staff member by ID. 404 if not an accepted member of this org. # List Availabilities Source: https://docs.classquill.com/api-reference/tutors/list-availabilities /openapi.json get /v1/availabilities List the recurring weekly availability rules of the org's tutors. `tutor_availability_rules` has no org column, so rules are scoped to this org's accepted members. `day_of_week` is 0–6 (Sunday=0). # List Tutor Reviews Source: https://docs.classquill.com/api-reference/tutors/list-tutor-reviews /openapi.json get /v1/tutors/{tutor_id}/reviews Public reviews for one of the org's tutors — the subset of lesson feedback whose author chose to publish a written comment. Cross-org tutors return 404. # List Tutors Source: https://docs.classquill.com/api-reference/tutors/list-tutors /openapi.json get /v1/tutors List the tutors and staff in the authenticated organisation. Includes everyone with an accepted org membership (owner, admin, tutor). Bank/payout details are never exposed. Sorted by accepted date. Pass `is_published=true` to return only publicly-listed tutors; members with no tutor profile count as not-published. # Tutor Available Slots Source: https://docs.classquill.com/api-reference/tutors/tutor-available-slots /openapi.json get /v1/tutors/{tutor_id}/available-slots Free bookable time slots for a tutor in [from, to], computed by subtracting the tutor's already-scheduled sessions from their weekly availability rules. 404 if the tutor isn't an accepted member of your org. v1 is deliberately coarse: availability clock-times are treated as UTC and emitted as '...Z'. # Tutor Earnings Source: https://docs.classquill.com/api-reference/tutors/tutor-earnings /openapi.json get /v1/tutors/{tutor_id}/earnings Earnings for one tutor over an optional date range — the payroll/Xero figure. `earned_cents` is what the tutor is owed for their sessions; `paid_out_cents` is what's been paid out; `unpaid_cents` is the difference. Scoped to this org's sessions only. Returns 404 if the tutor isn't an accepted member of this org. # Update Tutor Source: https://docs.classquill.com/api-reference/tutors/update-tutor /openapi.json put /v1/tutors/{tutor_id} Update an org tutor's profile fields. Only `bio`, `teaching_mode` (online | in_person | both), and `is_published` are writable — partial update, send only the fields you want to change. Bank/payout/ Stripe/role/email fields are never accepted, and there is no per-tutor rate field (rate lives in the org matrix). Returns the full updated tutor. 404 if `{tutor_id}` isn't an accepted member of your org. # Authentication Source: https://docs.classquill.com/authentication All API requests require an API key. Keys are scoped to your organisation and never expire unless you set an expiry date. ## Getting an API key API keys are managed in your ClassQuill organisation settings: 1. Log in to ClassQuill as an **org owner** or **admin** 2. Go to **Settings → Developers** 3. Click **Create new key**, give it a name (e.g. "Xero integration"), and optionally set an expiry date 4. Copy the key — **it is shown only once and cannot be retrieved again** > [!WARNING] > > Store your API key securely (e.g. as an environment variable or in a secrets manager). Never commit it to source control or expose it in client-side code. ## Using your API key Include the key in the `Authorization` header of every request: ``` Authorization: Token token=ei_live_... ``` ### Example request ```bash theme={null} curl https://api.classquill.com/v1/ping \ -H "Authorization: Token token=ei_live_your_key_here" ``` ### Example response ```json theme={null} { "status": "ok", "org_id": "ce374c65-...", "org_name": "Smiths Tutoring" } ``` ## Key format All ClassQuill API keys start with `ei_live_` followed by 64 hex characters: ``` ei_live_5961c2b7cf00623bc536b6f520fc915771de86c6517b825f406fd3a184d9a7f5 ``` ## Scopes & permissions Every key is granted one or more **scopes** when you create it, which control what it can do: | Scope | Grants | | - | - | | `read` | Read-only access to all your org's data (the default) | | `payments:write` | Record manual/external payments | | `tutors:write` | Update tutor profiles | | `payroll:write` | Create payroll adjustments | | `coursework:write` | Create and update lesson plans | | `sessions:write` | Create and complete sessions | | `accounts:write` | Create student, tutor and parent accounts | | `write` | Umbrella covering the write scopes above (excludes `sessions:write` and `accounts:write`, which must be granted explicitly) | New keys are **read-only by default** — grant a write scope only when an integration needs to change data. A request to a write endpoint with a read-only key returns `403`. ## Key security * Keys are stored as SHA-256 hashes — even ClassQuill cannot retrieve the raw key after creation * Keys are scoped to your organisation — they cannot access another org's data * If a key is compromised, revoke it immediately in Settings → Developers ## Key rotation To rotate a key without downtime: 1. Create a new key in settings 2. Update your integration to use the new key 3. Verify the integration is working with the new key 4. Revoke the old key ## Expiry Keys can optionally have an expiry date. Requests made after the expiry date return: ```json theme={null} { "code": 401, "message": "API key has expired. Create a new key in your org settings.", "data": {} } ``` ## Error responses | Status | Meaning | | - | - | | `401` | Missing, invalid, revoked, or expired API key | | `403` | Valid key but insufficient permissions for this endpoint | | `429` | Rate limit exceeded — slow down your requests | # MCP Server Source: https://docs.classquill.com/connect-ai-tools Give AI tools access to your ClassQuill data using natural language. ## What is an MCP Server? MCP is an open protocol that standardizes how applications provide context to LLMs. Among other benefits, it gives LLMs tools to act on your behalf. The ClassQuill MCP server lets MCP-aware tools — Claude Code, Claude Desktop, Cursor, Windsurf and others — read and, with a write-scoped key, update your organisation's tutoring data through the [ClassQuill public API](/introduction). Write tools need an API key with write scopes (the hosted OAuth connector is still read-only). It is scoped to your org, exactly like the REST API. > [!TIP] > > Prefer not to install or run anything? Use the **hosted** server at > `https://mcp.classquill.com/mcp` instead — see > [AI Connectors](/connectors) to connect Claude (via OAuth), Codex, Composio > and others. This page covers running the `classquill-mcp` package yourself. ## What it can do One tool per public endpoint (write tools need a write-scoped key): * **Sessions** — list and fetch tutoring sessions * **Tutors** — list tutors and pull per-tutor earnings * **Payments & invoices** — list payments received and invoices issued * **Students & parents** — list students, parents, and a parent's balance * **Curriculum** — subjects, classrooms, student groups, lesson plans, homework, results * **Operations** — mileage trips, expense claims, and an owner reports summary As an example, you could ask *"How much did each tutor earn last week?"* or *"List the invoices that are still outstanding."* ## Prerequisites * [Node.js](https://nodejs.org) 18 or later * A ClassQuill API key — create one in **Settings → Developers** (org admins only). See [Authentication](/authentication). ## How to use the MCP Server The server is published to npm and runs with `npx` — there is nothing to install or host. Replace `cq_live_xxxxxxxxx` with your own key throughout. It supports two transports: **stdio** (default, runs locally) and **HTTP**. ### Stdio (default) > [tab] Claude Code > > ```bash theme={null} > claude mcp add classquill -e CLASSQUILL_API_KEY=cq_live_xxxxxxxxx -- npx -y classquill-mcp > ``` > [tab] Cursor > > Open the command palette → "Cursor Settings" → "MCP" → "Add new global MCP server". > > ```json theme={null} > { > "mcpServers": { > "classquill": { > "command": "npx", > "args": ["-y", "classquill-mcp"], > "env": { "CLASSQUILL_API_KEY": "cq_live_xxxxxxxxx" } > } > } > } > ``` > [tab] Claude Desktop > > Open Claude Desktop settings → "Developer" → "Edit Config". > > ```json theme={null} > { > "mcpServers": { > "classquill": { > "command": "npx", > "args": ["-y", "classquill-mcp"], > "env": { "CLASSQUILL_API_KEY": "cq_live_xxxxxxxxx" } > } > } > } > ``` > [tab] Windsurf > > ```json theme={null} > { > "mcpServers": { > "classquill": { > "command": "npx", > "args": ["-y", "classquill-mcp"], > "env": { "CLASSQUILL_API_KEY": "cq_live_xxxxxxxxx" } > } > } > } > ``` > [!NOTE] > > Renamed from `equateit-mcp` (2026-09-21). Old configs using `equateit-mcp` / > `EQUATEIT_API_KEY` / an `ei_live_...` key keep working — see > [the package README](https://github.com/EquateItAu/classquill-app/tree/master/internal-mcp/public-api#back-compat-with-equateit-mcp). ### HTTP transport Run the server over HTTP for remote or web-based integrations. In HTTP mode each client authenticates by passing its API key as a Bearer token. Start the server: ```bash theme={null} npx -y classquill-mcp --http --port 3000 ``` It listens on `http://127.0.0.1:3000` and exposes the MCP endpoint at `/mcp` using Streamable HTTP. > [tab] Claude Code > > ```bash theme={null} > claude mcp add classquill --transport http http://127.0.0.1:3000/mcp --header "Authorization: Bearer cq_live_xxxxxxxxx" > ``` > [tab] Cursor > > ```json theme={null} > { > "mcpServers": { > "classquill": { > "url": "http://127.0.0.1:3000/mcp", > "headers": { "Authorization": "Bearer cq_live_xxxxxxxxx" } > } > } > } > ``` ## Options | Flag | Env var | Default | Purpose | | - | - | - | - | | `--key` | `CLASSQUILL_API_KEY` | — | Your `cq_live_...` key (stdio mode; HTTP mode reads the Bearer token per request). `EQUATEIT_API_KEY` still works as a fallback. | | `--http` | — | off | Use HTTP transport instead of stdio. | | `--port` / `-p` | `MCP_PORT` | `3000` | HTTP port. | | — | `CLASSQUILL_API_BASE_URL` | production | Backend base URL. Override to target staging. `EQUATEIT_API_BASE_URL` still works as a fallback. | > [!NOTE] > > The MCP server is a thin client over the REST API — all access control, > org-scoping and [rate limits](/rate-limits) are enforced by the API itself. > A key used here has the same scopes it does everywhere. # AI Connectors (Hosted MCP) Source: https://docs.classquill.com/connectors Connect Claude, Codex, Composio and other AI tools to your ClassQuill data through the hosted MCP server — no install required. ## The hosted MCP server ClassQuill runs a hosted [MCP](/connect-ai-tools) server at: ``` https://mcp.classquill.com/mcp ``` It is the same read-only, org-scoped server as the [`classquill-mcp`](/connect-ai-tools) npm package, but hosted for you as a remote **Streamable HTTP** endpoint — so any AI tool can connect over the network without installing anything. It is a thin proxy to the [ClassQuill public API](/introduction): all access control, org-scoping and [rate limits](/rate-limits) are enforced by the API itself. There are **two ways to authenticate**, depending on the client: | Method | Best for | What you provide | | - | - | - | | **OAuth** | claude.ai custom connectors (web) | Nothing — you log in through Claude | | **API key** (`Authorization: Bearer cq_live_...`) | Codex, Composio, Claude Code, and most other clients | An [API key](/authentication) as a Bearer token | > [!NOTE] > > Both paths reach the same read-only tools. OAuth exists because claude.ai's > custom connectors require it; everywhere else, a plain API key is simpler. > Create a key in **Settings → Developers** (org admins only) — see > [Authentication](/authentication). ## Claude (claude.ai custom connector — OAuth) claude.ai connects through OAuth, so there is no key to paste — you authorise ClassQuill the same way you would any other app. **1. Open connector settings** In claude.ai, go to **Settings → Connectors → Add custom connector**. **2. Enter the MCP URL** Set the URL to `https://mcp.classquill.com/mcp` and add the connector. **3. Complete the login** Claude discovers the OAuth server automatically and opens a ClassQuill login. Sign in and approve access. Claude registers itself, runs PKCE, and stores the token — the connector's tools then appear in your tool list. Under the hood Claude follows the standard MCP OAuth discovery chain: an unauthenticated request returns `401` with a `WWW-Authenticate` header pointing at the server's protected-resource metadata (`/.well-known/oauth-protected-resource/mcp`), which names the authorisation server (`api.classquill.com`). Claude then does Dynamic Client Registration and an authorization-code + PKCE flow. This is all automatic — you only click **Log in**. > [!NOTE] > > Custom connectors are available on claude.ai paid plans. Claude Code connects > differently — see [Claude Code](#claude-code) below. ## Codex Add the hosted server to your Codex MCP configuration with your API key as a Bearer token. Replace `cq_live_xxxxxxxxx` with your own key. ```toml theme={null} [mcp_servers.classquill] url = "https://mcp.classquill.com/mcp" [mcp_servers.classquill.headers] Authorization = "Bearer cq_live_xxxxxxxxx" ``` ## Composio In Composio, add a **custom MCP server** pointing at the hosted URL and set the authorization header to your API key. ```json theme={null} { "name": "classquill", "url": "https://mcp.classquill.com/mcp", "headers": { "Authorization": "Bearer cq_live_xxxxxxxxx" } } ``` ## Claude Code Claude Code connects to the hosted endpoint over HTTP with your API key in the `Authorization` header — no OAuth needed. ```bash theme={null} claude mcp add classquill --transport http https://mcp.classquill.com/mcp --header "Authorization: Bearer cq_live_xxxxxxxxx" ``` ## Any other MCP client Any client that speaks Streamable HTTP MCP can connect by sending your key as a Bearer token on each request: ``` POST https://mcp.classquill.com/mcp Authorization: Bearer cq_live_xxxxxxxxx ``` ## Prefer to run it yourself? If you would rather run the server locally (stdio, or your own HTTP host) instead of using the hosted endpoint, use the [`classquill-mcp`](/connect-ai-tools) npm package — same tools, same read-only access. > [!NOTE] > > Every connector here is **read-only** and scoped to the organisation that owns > the key or OAuth session, exactly like the [REST API](/introduction). A key > used here has the same access it does everywhere, and the same > [rate limits](/rate-limits) apply. # Errors Source: https://docs.classquill.com/errors HTTP status codes the API returns and what they mean. The API uses standard HTTP status codes. Every error response shares a single envelope — an `error` object describing the problem. | Status | Meaning | Common cause | | - | - | - | | `200` | OK | Request succeeded. | | `400` | Bad request | The request was malformed. | | `401` | Unauthorized | Missing, malformed, unknown, revoked, or expired API key. | | `403` | Forbidden | The key lacks the scope required for this endpoint. | | `404` | Not found | The record doesn't exist **or belongs to another organisation**. | | `409` | Conflict | The request conflicts with the current state (e.g. a duplicate). | | `422` | Unprocessable entity | A query parameter or field failed validation (e.g. `limit` over 100). | | `429` | Too many requests | You exceeded the [rate limit](/rate-limits). | | `500` | Internal error | Something went wrong on our side. | ## A note on `404` Requesting a record that belongs to a **different organisation** returns `404`, not `403`. This is deliberate: it prevents callers from probing which IDs exist outside their own org. From your key's perspective, anything outside your organisation simply does not exist. ## The error envelope Every error — at any status — returns the same shape: ```json theme={null} { "error": { "code": "not_found", "message": "Session not found", "status": 404, "details": {} } } ``` `code` is a stable machine-readable string, `message` is a human-readable description, `status` mirrors the HTTP status, and `details` carries any extra context (empty by default). ## Error codes | `code` | Status | | - | - | | `bad_request` | `400` | | `unauthorized` | `401` | | `forbidden` | `403` | | `not_found` | `404` | | `conflict` | `409` | | `validation_error` | `422` | | `rate_limited` | `429` | | `internal_error` | `500` | ## Validation errors A `422 validation_error` carries the field-level failures in `details.errors`: ```json theme={null} { "error": { "code": "validation_error", "message": "Validation failed", "status": 422, "details": { "errors": [ { "loc": ["query", "limit"], "msg": "must be 100 or less", "type": "value_error" } ] } } } ``` ## Rate limit errors A `429 rate_limited` sets `details.retry_after_seconds`, and the response still carries a `Retry-After` header with the same value. See [rate limits](/rate-limits) for the headers on every response. ```json theme={null} { "error": { "code": "rate_limited", "message": "Rate limit exceeded", "status": 429, "details": { "retry_after_seconds": 30 } } } ``` > [!TIP] > > A `401` right after creating a key usually means the `Authorization` header is wrong. > It must be exactly `Token token=cq_live_...` — not `Bearer ...`. # Adding students Source: https://docs.classquill.com/guides/add-students Enrol students into your organisation, a classroom, or a 1:1 arrangement with a tutor. ## Who can add students **Org Owners** and **Org Admins** can add students. Tutors cannot add students directly. ## Steps ### 1. Go to Users → Learners From the sidebar, click **Users**, then select the **Learners** tab. ### 2. Click "Add User" Click **Add User** in the top-right corner, then select the **Student** card. ### 3. Choose an enrolment scope You'll be asked how this student should be enrolled: | Scope | When to use | | - | - | | **Organisation only** | Add the student to the org — assign to classes later | | **A specific classroom** | Enrol directly into one of your classrooms | | **A group inside a classroom** | Place them in a sub-group within a classroom | | **1:1 with a tutor** | Pair them privately with a specific tutor | For most tutoring centres, **Organisation only** is the right starting point — you can assign classrooms afterwards. ### 4. Enter student details Enter the student's name. **Email is optional** — if you only have a name (or a name and phone number), you can still create the account now and add the email later. If the student is under 18, you can also add a parent, whose email is optional too. ### 5. Choose whether to send the invite now If you entered an email, a **"Send invite now"** toggle appears: * **On (default)** — the student (or parent, for younger students) is emailed a link to create their account right away. * **Off** — the account is created quietly with no email sent. Send the invite whenever you're ready (see below). If you left the email blank, no email is sent — the account is created against an internal placeholder and shows a **"No email set"** badge on the learner's row and profile. ### 6. Add an email or send the invite later Open the student (or parent) from **Users → Learners** and use **Add email & send invite** on their profile. Enter their email and, if you want, tick **Send invite now** — this saves the email and sends the set-password link. The "No email set" badge clears once a real email is set. ## Import your whole roster from a spreadsheet Moving from Excel or another system? One upload can bring across your **students, parents, tutors, who-teaches-whom, and everyone's weekly timetable** — and invite everyone in the same pass. ### 1. Open the import Go to **Users → Learners → Add User → Import roster**, or follow the guided **Migrate your business** flow from your dashboard checklist (it walks import → subjects → availability → terms → invites and shows live progress). ### 2. Prepare the file Upload a **CSV or Excel (.xlsx)** file — the **Template** button gives you a starter. One row per person; add extra rows with the same email for students with more than one weekly lesson. Useful columns: | Column | Notes | | - | - | | `role` | `student`, `parent`, or `tutor` (blank = student) | | `full_name`, `email`, `phone` | Email is optional for students — accounts without one get a "No email set" badge | | `subject` | Plain names are fine — "Year 9 Maths" works; you'll confirm any uncertain matches | | `tutor_email` | Assigns the student to that tutor (a tutor row in the same file, or an existing member) | | `day`, `start time`, `duration`, `mode`, `recurrence` | The weekly lesson: e.g. `Tuesday`, `4:00 PM`, `60`, `online`, `weekly` or `fortnightly` | | `child_email` | Parents: the email of their child in the same file | ### 3. Map, match subjects, review The wizard auto-detects your columns (adjust anything it guessed wrong), then asks you to confirm any subject names it isn't sure about — nothing is ever silently dropped. The preview shows every person, their lessons, and any row problems before anything is created. ### 4. Choose the schedule window and invites If your file has lesson columns, pick what the recurring schedules run against — a **term** you've created (Settings → Terms) or a **number of weeks** from a start date. The **"Send invite emails now"** toggle (on by default) controls whether everyone gets their set-password email immediately. ### 5. Import and check the results The wizard creates accounts first, then books every lesson as a confirmed recurring session on your org calendar. The result table shows three things per person — **Account** (created / linked / failed), **Schedule** (sessions booked, or any time conflicts skipped), and **Invite** (sent / already a member / no email) — with a one-click retry for any schedules that failed. Tutors get a single summary email of the sessions added to their calendar, not one email per lesson. Re-running the same file is safe: it won't double-book sessions or send duplicate invites. ## Invite several students at once **Users → Learners → Add → Invite many…** takes a pasted list of email addresses (one per line, or comma-separated), up to 5,000 at a time. > [!WARNING] > > Anyone on that list who **already has a ClassQuill account** joins your organisation straight away — they are not emailed and cannot decline. Addresses we don't recognise get an invite email instead, which expires in **30 days** (longer than the 7 days a single invite gets, so a family migrating over the holidays doesn't lose it). When it finishes you get a breakdown — added, invite emailed, already a member, skipped as invalid — and each group can be copied out. Click **View pending invites** to jump to the roster; the queued invites live there until they're redeemed. ## Tracking student invites you've sent Unredeemed invites appear **in the Learners roster itself**, as rows showing the email address with an **Invited** status, until the person signs up. Each row gives you: * **Copy link** — the exact link that was emailed. Use this when someone says it never arrived; it saves waiting for a resend. Hidden once an invite has expired or been declined, since those links are permanently dead. * **Resend** — issues a fresh link and emails it again. The old link stops working. * **Revoke** — cancels the invite. The link stops working immediately, even if they've already opened the email. ## Inviting a parent Parents don't join your organisation the way students and tutors do — they link to a specific **child**. Open the learner from **Users → Learners**, and on their profile use **Invite a parent**: * Enter the parent's email and we'll send them the code. * Or leave the email blank and just copy the code to share yourself — useful if you're reading it out over the phone. > [!NOTE] > > Parent codes expire after **48 hours**. If one lapses, generate a new one — codes can't be extended. Resending to the same parent reuses the existing code while it's still valid, so they won't end up with two. ## Letting students find you themselves If your organisation is **listed in search**, a student can create their own account, search for you by name, and send a join request that you approve — no code and no email needed from you. Check **Settings → Organisation → Listed in search**. Tutoring companies are listed by default; schools are not, and have to opt in. Once it's on, the exact wording to send someone is on **Users → Add → How people join…**, ready to copy. Requests land on the **Pending** tab with whatever message the person wrote, and you approve or decline each one. ## Joining via a shareable link You don't need anyone's email to bring them in. Two kinds of self-serve link exist: * **Org join link** — a link you can paste into a Facebook, Instagram, or WhatsApp message. The person clicks it, signs up themselves, and lands straight in your organisation. Use the **Share link** buttons in the add-students area (copy the link, or share it directly from your device). * **Classroom join link** — each classroom also has its own join link for enrolling straight into that class. Find it under **Teaching → \[Classroom name] → Members → Invite link**. Either way, once they've signed up you can place them in the right classroom or pair them with a tutor. ## What's next > [card] [Set tutor availability](/guides/set-availability) > > Ensure tutors have availability set before students try to book. > [card] [How parents book a session](/guides/how-parents-book) > > Walk through the booking flow from a parent's perspective. # How the AI study assistant works Source: https://docs.classquill.com/guides/ai/ai-study-assistant Ask AI is a 24/7 study tool built into the student portal — here's what it does and how it works. ## What Ask AI is Ask AI is an AI-powered study assistant available to every student in the app. It helps students work through problems when their tutor isn't available — late at night, on weekends, or any time they're stuck. It is **not** a shortcut for getting answers. Ask AI walks students through problems step-by-step so they understand the method, not just the result. *** ## What students can do ### Ask a question in text Students type a question or describe what they're stuck on. Ask AI responds with a guided explanation, working through the problem step by step. ### Upload a photo Students take a photo of a problem from their textbook, worksheet, or exam paper and upload it. Ask AI reads the problem and provides step-by-step guidance. Works for: * Printed questions and diagrams * Handwritten working (for feedback on where an error occurred) * Calculator screenshots or CAS output ### Escalate to their tutor If Ask AI can't fully resolve the confusion, students press **Save question** to add it to their saved questions list. It appears in the tutor's view at the start of the next session — the tutor can see exactly what the student was stuck on. *** ## How to access Ask AI **Mobile app:** tap **Ask AI** in the bottom navigation bar (chat bubble icon). **Desktop:** click **Ask AI** in the sidebar. *** ## Curriculum alignment Ask AI's responses are tailored to the Australian curriculum — VCAA for VCE subjects, ACARA for junior years. It uses the correct formulas, notation, and exam expectations for each subject. *** ## What Ask AI is not * It does not complete assignments for students — it guides them through the process. * It does not replace the tutor. For persistent gaps or exam strategy, tutor sessions are the primary tool. * It does not have access to a student's personal data outside the current conversation. *** ## For tutors: seeing what students asked Tutors see questions a student saved from Ask AI sessions via **Teaching → \[student] → Saved Questions** — a useful starting point for each session. *** ## Related > [card] [Assign practice questions](/guides/ai/practice-questions) > > Tutor-assigned targeted practice from the Question Bank. > [card] [How AI auto-grading works](/guides/ai/auto-grading) > > How AutoMarker grades submitted work step-by-step. # How AI auto-grading works Source: https://docs.classquill.com/guides/ai/auto-grading ClassQuill's AutoMarker grades student work step-by-step, so tutors spend time teaching instead of marking. ## What AutoMarker does When a student submits a homework question, AutoMarker grades it automatically — checking not just whether the final answer is right, but **each step of the working out**. For each question the student submits, AutoMarker: 1. Reads the student's full working out 2. Identifies which step first went wrong (if any) 3. Marks each step correct ✓ or incorrect ✗ 4. Generates a short explanation of where the error occurred 5. Flags the topic as a weakness area if the student struggles consistently The tutor receives a summary and can add their own comments before it reaches the student — reviewing and augmenting, not starting from scratch. *** ## Supported question types | Question type | Supported | | - | - | | Multiple choice | ✅ | | Short written answers | ✅ | | Maths (step-by-step working) | ✅ — including LaTeX / CAS expressions | | Long-form essays | Partial — flags key points missing | *** ## How students submit work ### Via assigned homework 1. The tutor assigns a question or set to the student. 2. The student opens it in their **Home** or **Study** section. 3. They type or write their answer (or upload a photo of handwritten working). 4. They click **Submit** — AutoMarker grades it within seconds. ### Via Ask AI Students can also take a photo of a question they're working on outside of assigned homework. The AI walks through the solution rather than just giving the answer. *** ## How tutors review graded work 1. Go to **Teaching** → classroom → **Homework** tab. 2. Click a submitted piece of work. 3. Review the step-by-step breakdown AutoMarker produced. 4. Add your own comments in the **Tutor feedback** field if needed. 5. Click **Release** to make the grade visible to the student. > [!NOTE] > > Tutor review before release is optional — you can configure assignments to auto-release immediately after grading. *** ## Related > [card] [Assign practice questions](/guides/ai/practice-questions) > > How to pick questions from the Question Bank and assign them. > [card] [View progress reports](/guides/student-portal/progress-reports) > > How to write, publish and email a progress report. # Assigning practice questions Source: https://docs.classquill.com/guides/ai/practice-questions How to find questions in the Question Bank and assign them to students or classrooms. ## The Question Bank The Question Bank is a searchable library of practice questions organised by subject, topic, and difficulty. Access it via **Question Bank** in the sidebar. *** ## Finding questions | Filter | Options | | - | - | | **Subject** | Maths, English, Chemistry, Physics, etc. | | **Topic** | Subtopics within each subject (e.g. Calculus → Differentiation → Chain Rule) | | **Difficulty** | Easy / Medium / Hard | | **Type** | Multiple choice / Short answer / Extended response | | **Source** | Platform questions / Your org's own questions | Click any question to preview the full text, expected answer, and marking scheme before assigning. *** ## Assigning questions 1. Select the questions you want to assign (tick the checkbox next to each). 2. Click **Assign**. 3. Choose the recipient — a classroom, an individual student, or a group. 4. Set an optional due date. 5. Click **Confirm**. The student(s) receive a notification and the assignment appears in their **Home** screen. *** ## Saving and sending questions while studying Students can flag questions themselves while studying: 1. The student finds a question they want to revisit. 2. They press the **Save** button (bookmark icon). 3. The question is added to their **Saved Questions** list. When a student gets a question wrong or reveals the solution, a **"Stuck? Send this question to your tutor"** prompt also appears — sending shares the question with their draft answer and whiteboard working attached, so the tutor sees exactly where they got stuck. The tutor can see all saved questions under the student's **Review** tab in the Teaching view before the next session — a ready-made queue of what the student was stuck on, with no prep needed. In a classroom, the group's progress tab shows a count of saved questions, including ones several students got stuck on. *** ## Creating your own questions 1. Go to **Question Bank** → **My Questions** tab. 2. Click **New question**. 3. Choose the type, enter the text, add images or LaTeX maths, and set the marking scheme. 4. Tag it with subject and topic. 5. Click **Save** — available to all tutors in your org. *** ## Related > [card] [How AI auto-grading works](/guides/ai/auto-grading) > > What happens after a student submits their answers. > [card] [How the AI study assistant works](/guides/ai/ai-study-assistant) > > The student-facing AI tool for getting help between sessions. # How invoices are generated Source: https://docs.classquill.com/guides/billing/invoices ClassQuill automatically creates invoices when sessions are completed. Here's how the billing cycle works. ## Automatic invoice generation When a session is marked as **completed**, ClassQuill automatically generates an invoice and sends it to the parent (or directly to the student if no parent is linked). No manual action required from tutors or admins. The invoice includes: * Session date, time, and duration * Tutor name * Rate per hour and total amount * Payment due date (set by your org) * Payment options (bank transfer, or card if Stripe is connected) *** ## Manually generating an invoice Org admins can also generate invoices outside the automatic cycle — for example, for a bulk session package or a custom charge. 1. Go to **Payments → Invoices** in the org sidebar. 2. Click **New invoice**. 3. Select the student and enter the line items. 4. Set a due date and click **Send**. *** ## Invoice statuses | Status | Meaning | | - | - | | **Pending** | Sent, awaiting payment | | **Paid** | Payment confirmed (card or manually marked) | | **Overdue** | Past due date, payment not received | | **Voided** | Cancelled (e.g. session was cancelled after invoicing) | *** ## Marking an invoice as paid manually If a parent pays by bank transfer or cash: 1. Go to **Payments → Invoices**. 2. Find the invoice and click it. 3. Select **Mark as paid** and enter the payment method and date. > [!NOTE] > > Card payments processed via Stripe are marked as paid automatically. *** ## Related > [card] [Set up online payments](/guides/billing/online-payments) > > Connect Stripe so parents can pay by card. > [card] [View transaction history](/guides/billing/transaction-history) > > Find and filter all past payments. # Setting up online payments Source: https://docs.classquill.com/guides/billing/online-payments Connect Stripe so parents can pay invoices by card directly through ClassQuill. ## Overview ClassQuill uses **Stripe** to process card payments. Once you connect your Stripe account, parents can pay invoices online — no manual bank transfer coordination needed. Stripe's standard processing fee applies. ClassQuill does not add a platform surcharge on top. *** ## Connecting Stripe You must be an **Org Owner** or **Org Admin** to connect Stripe. 1. Go to **Settings → Payments** in the org sidebar. 2. Click **Connect Stripe**. 3. You'll be redirected to Stripe's onboarding flow. Complete the steps to verify your business identity and bank account. 4. Once approved, you'll be redirected back to ClassQuill and Stripe will show as **Connected**. > [!NOTE] > > Stripe's identity verification typically takes a few minutes but can take up to 2 business days for new accounts. *** ## What happens after connecting * All new invoices will include a **Pay by card** button. * Parents receive an email with a secure payment link. * Payments are deposited to your bank account on Stripe's payout schedule (typically 2 business days). * Paid invoices are automatically marked as **Paid** in ClassQuill. *** ## Accepting cash and bank transfers Stripe is optional. Parents can always pay by bank transfer or cash — mark those payments manually. See [How invoices are generated](/guides/billing/invoices) for details. *** ## Related > [card] [How invoices are generated](/guides/billing/invoices) > > When invoices are created and how to manage them. > [card] [View transaction history](/guides/billing/transaction-history) > > Find all past payments. # Viewing transaction history Source: https://docs.classquill.com/guides/billing/transaction-history Find, filter, and export all payments across your organisation. ## For org admins The full transaction history is in **Payments → Transactions** in the org sidebar. ### Filtering | Filter | Options | | - | - | | **Date range** | Pick a start and end date | | **Status** | Paid, Pending, Overdue, Voided | | **Student** | Filter to one student's payment history | | **Tutor** | Filter to sessions delivered by a specific tutor | | **Payment method** | Card (Stripe), bank transfer, cash | ### Exporting Click **Export** to download a CSV. The export includes: date, student name, tutor name, session details, amount, payment method, and status. Use this for reconciling with Xero, MYOB, or QuickBooks. *** ## For parents 1. Log in to the parent portal. 2. Click **Billing** in the sidebar. 3. All invoices are listed with their status. 4. Click any invoice to view the breakdown and download a PDF receipt. *** ## For tutors Tutors see their earnings in **Earnings** (not Payments): 1. Click **Earnings** in the sidebar. 2. View sessions delivered, amounts owed, and payout history. 3. Filter by date range or status. *** ## Related > [card] [How invoices are generated](/guides/billing/invoices) > > How the billing cycle works. > [card] [Set up online payments](/guides/billing/online-payments) > > Accept card payments via Stripe. # Publishing your blog Source: https://docs.classquill.com/guides/blog/publishing-your-blog Write posts once in ClassQuill and choose how they reach readers — a hosted blog, your own domain, a widget on your existing site, or fully custom via the API. ## How it works Your blog posts live in ClassQuill. You write them once, and they're **live within a couple of minutes — no rebuild, no developer.** How and where they appear is a separate choice, and you can change it any time without rewriting a single post. > [!NOTE] > > Every published post is **server-rendered**, so it's fully search-optimised and link previews (the image + title card on Facebook, LinkedIn, WhatsApp, etc.) work correctly out of the box. ## Four ways to deliver your blog > [card] Hosted blog (subdomain) > > Live instantly at `yourname.classquill.com/blog`. No setup, full SEO. The right default for most. > [card] Hosted on your own domain > > Serve it from `blog.yourcompany.com`. Full SEO, your brand. One CNAME to connect. > [card] Recent-posts widget > > Drop a snippet into your existing website to show a "latest posts" strip. Teaser only — see the note below. > [card] Headless (API) > > Have a developer? Pull your posts from the API and render them however you like. | Option | SEO | Effort | Best for | | - | - | - | - | | Hosted subdomain | ✅ Full | None | No website yet, or zero setup | | Hosted custom domain | ✅ Full | Connect a domain | On your own brand | | Recent-posts widget | ⚠️ Weak | Paste a snippet | A teaser on an existing homepage | | Headless (API) | ✅ Full *if server-rendered* | Needs a developer | Full design control | ## Hosted (recommended) The simplest path. Publish a post in ClassQuill and it's live at your blog URL, automatically wearing **your** logo, colours, and name. * **Free subdomain** — `yourname.classquill.com/blog` works the moment you publish. No DNS, no cost. * **Your own domain** — connect `blog.yourcompany.com` (one CNAME). Same rendering, same SEO, your brand. Both are fully server-rendered, so search engines and social platforms see complete pages. ## The recent-posts widget A one-line snippet you paste into your existing website to show a few recent posts. > [!WARNING] > > **Use the widget for a teaser, not your whole blog.** It loads posts in the visitor's browser, so search engines don't index it well. For a search-optimised blog, use a **hosted** option above (or headless with server-side rendering) and let the widget just link to it. ## Headless — build your own frontend If you'd rather design the blog yourself, use the API. Your posts stay in ClassQuill; your site renders them. * **Read published posts** (no key needed — the content is public): ```bash theme={null} curl "https://.supabase.co/functions/v1/org-blog-public?slug=yourname" ``` Returns each post's title, rendered HTML, images, dates, tags, and SEO fields — everything you need to render a blog. * **Manage posts programmatically** (create/update/delete) via the authenticated REST API — see the [API Reference](/introduction) for `POST/GET/PATCH/DELETE /v1/blog-posts`. > [!TIP] > > For good SEO when going headless, render on your **server** (SSR/static), not in the browser — the same way the hosted blog does it. Fetching the API from browser JavaScript alone has the same SEO weakness as the widget. ## Branding & customisation Hosted blogs automatically use your organisation's **logo, brand colour, and name**. More customisation (fonts, footer links, layout themes) is on the roadmap; until then, the headless API is the escape hatch for a completely bespoke design. # Build a course: topics, materials and quizzes Source: https://docs.classquill.com/guides/courses/building-a-course Choose which ClassQuill topics a class covers, add your own topics and materials, place quizzes, and share your organisation's course with classes, groups and 1:1 students. Every class, group and 1:1 student has a **Curriculum** tab under **Learn**. It starts with the ClassQuill syllabus for the subject. You can then shape it to fit what you actually teach. ## Choose the topics this course covers Every ClassQuill area and topic for the subject is in the course to start with. The first time you open a fresh course, ClassQuill offers to narrow it down. **1. Open Choose topics** Click **Choose topics** on the offer above the area cards, or on the dashed card at the end of the grid. Inside an area, click **Choose topics** under **+ New topic** in the topic list. **2. Tick what you teach** The dialog lists every area and topic as a checklist. Search to find one quickly. Untick anything you don't teach. **3. Save** Click **Save changes**. You can reopen the dialog and change your selection at any time. ## Edit ClassQuill areas and topics ClassQuill areas and topics work like the ones you create yourself. Use the **⋮** menu on an area card, or the **⋮** at the top of an open topic, to: * **Rename** it for this course. The original name stays the same everywhere else. * **Reorder** it. Click **Edit order** above the area grid or the topic list, then drag (or focus a handle and use the arrow keys). You can also use **Move up** / **Move down** in a topic's **⋮** menu. * **Remove from this course**. A toast lets you **Undo** straight away. To add a topic of your own, click **+ New topic** at the top of the topic list. ### Removing at the organisation level If you're an org admin editing your organisation's course, removing a ClassQuill area or topic takes it out of **every class, group and 1:1** in your organisation. ClassQuill asks you to confirm first. Teachers can't bring it back in their own class; only your organisation's staff can. ## Bring removed items back Nothing you remove is deleted. Removed items are listed under **Removed from this course** at the foot of the page. Click **Restore** to put an item back. This includes lessons that came from your organisation's course. You can remove one from your class without affecting anyone else, then restore it later. ## Add materials Open a section, topic or page and click **+ Add**. You can add a file, video, link, text, Google Drive item, notes, practice questions, a quiz or a worksheet. * **Area overview** — each ClassQuill area has an overview page that can hold materials too, for content that covers the whole area rather than one topic. * **Library files** — files saved in your organisation's Library can be placed straight into a course. * **Reorder** — click **Edit order**, then drag sections, topics, pages or lessons into place. Each lesson's **⋮** menu also has **Move up** / **Move down**. > [!NOTE] > > Deleting a section or topic you created removes its lessons from every place they appear, including classes that use your organisation's course. ## Add a quiz Click **+ Add** → **Quiz**, then pick a paper from your organisation's shelf, this course, or the ClassQuill catalogue. Set a **pass mark** and the number of **attempts** (1, 3 or unlimited). * A student completes a quiz lesson by passing it. Opening it and submitting a blank paper doesn't count. * Students don't see answers or worked solutions until the paper's release setting allows it. * Quizzes in removed, deleted or locked lessons can't be started. A locked lesson names the lesson to finish first, with a link to it. * Only your organisation's staff can edit your organisation's papers. * Click **Preview** on a quiz to try it as a student. A preview is a practice run, so it never counts towards marks or attempts. * The quiz's **⋮** menu has **Quiz settings…**, **Rename…** and **Remove from page**. A worksheet's menu has **Print…** and **Remove from page**, plus **Sit with student** in a 1:1. * After a student hands in a quiz that isn't marked or released yet, it reads **Handed in · Waiting for results**. They can still **Try again** while they have attempts left. If you remove a quiz from a course, any attempts and marks students already have are kept. ## Use your organisation's course Org admins can build a course once at the organisation level. Teachers then add its sections to a class, group or 1:1 from **Use your organisation's sections**. * Adding a section links to it. Updates from your organisation reach the class automatically, and nothing is copied. * Groups and 1:1 students only see organisation sections that were added for them. * The option only appears for students you teach through your organisation. It's hidden for private students. ## Related > [card] [Notes and reference sheets](/guides/study/notes-and-reference-sheets) > > How students use notes and formula sheets. > [card] [Practice questions](/guides/ai/practice-questions) > > Generate and assign practice questions. # How parents book a session Source: https://docs.classquill.com/guides/how-parents-book A step-by-step walkthrough of the parent portal booking flow. ## Prerequisites Before a parent can book: * The student has been added to the org (see [Adding students](/guides/add-students)) * At least one tutor has set their availability (see [Setting tutor availability](/guides/set-availability)) * The parent has accepted their invite and logged into their parent account ## Booking flow ### 1. Log in to the parent portal Parents log in at [app.classquill.com](https://app.classquill.com). They land on the **Home** page, which shows all tutors currently linked to their child. ### 2. Find a tutor **If a tutor is already linked to the child** — click the tutor's card on the Home page to open their profile. **If the parent is looking for a new tutor** — click **Find Tutor** in the sidebar. This shows the org's active tutors with their subjects, bio, and availability. Click a tutor to view their full profile. ### 3. View available slots On the tutor's profile, click **Book a session**. A calendar opens showing the tutor's available slots (green = open, grey = already booked or blocked). ### 4. Select a slot and duration Click an available slot to select it. Then choose the session duration (e.g. 60 min, 90 min). The session price is calculated automatically based on the tutor's rate and the selected duration. ### 5. Set recurrence (optional) If the parent wants a recurring weekly session at the same time, toggle **Repeat weekly** and choose how many weeks to book in advance (or select "ongoing"). ### 6. Confirm the booking Review the session details — date, time, tutor, duration, and price — then click **Confirm booking**. The tutor receives a notification. The session appears on the parent's calendar, the student's calendar, and the tutor's calendar immediately. ## After booking * **Reminders** — ClassQuill sends an email reminder to the parent and student 24 hours before the session. * **Rescheduling** — Parents can reschedule from the **Calendar** page up until the cancellation cutoff set by the org. * **Invoicing** — Sessions are invoiced automatically. Parents can view and pay invoices under **Billing** in the sidebar. ## What's next You've completed the core setup. Here's a summary of what you've done: 1. ✅ Set up your organisation 2. ✅ Invited tutors 3. ✅ Added students 4. ✅ Tutors set availability 5. ✅ Parents can book sessions > [card] [Back to Help Center](/guides/overview) > > Explore more guides as your org grows. # Inviting tutors Source: https://docs.classquill.com/guides/invite-tutors Send email invites to your tutors and assign them the right role. ## Who can invite tutors **Org Owners** and **Org Admins** can invite tutors. Tutors cannot invite other tutors. ## Steps ### 1. Go to Users From the sidebar, click **Users**. This opens the user management page with two tabs: **Tutors** and **Learners**. Make sure you're on the **Tutors** tab. ### 2. Open the Tutors tab and click "Add" Invites are sent from the **Tutors** tab specifically — that's what makes the role choice in the next step available. Click **Add** in the top-right, then **Invite one…**. ### 3. Enter their email address and choose a role | Role | When to use | | - | - | | **Tutor** | Standard tutor — delivers sessions, sees their own schedule and earnings | | **Admin** | Trusted team lead — can manage other tutors, students, classrooms, and payments | Students are added from the **Learners** tab instead — see [Add students](/guides/add-students). > [!WARNING] > > Admins can manage members, scheduling, billing and settings for the whole organisation. Only invite someone you'd trust with all of it. ### 4. Send it Click **Send invite**. ClassQuill emails them a link to create their account. > [!NOTE] > > The invite link works **once**, is tied to that exact email address, and expires after **7 days**. Accepting it joins them to your organisation directly, with no separate approval step — share the tutor **join link** instead if you'd rather approve each person first. > > If it never arrives, you don't have to wait: find their row on the Tutors tab and click **Copy link** to send them the exact same link yourself. ### 5. Tutor accepts and completes onboarding When the tutor clicks the link, they create a password and land on their onboarding checklist. Alongside the two always-on setup steps (selecting subjects and setting weekly availability), the checklist shows whichever requirements **your org** has turned on: * Profile photo and bio * Identity verification * Working with Children Check (WWCC) * ABN and bank details (for payroll) * Required training * Signing your org's tutor contract Each item carries a status — **To-do**, **Awaiting approval**, **Done**, or **Action needed** (with your reason if you rejected it) — so tutors always know exactly what's left. ## Tracking invites you've sent Every invite you send stays visible **in the Tutors roster itself** — as a row with the email address instead of a name — until it's accepted, with a status you can act on: | Status | What it means | What to do | | - | - | - | | **Pending** | Sent, not yet answered | Wait, or **Resend** if they say it never arrived | | **Declined** | The tutor opened the link and chose not to join, on the date shown | Nothing, unless you want to ask them again — see below | | **Expired** | Seven days passed with no answer | **Resend** to issue a fresh link | Once a tutor accepts, the row becomes a normal roster row with their name and profile. ### If a tutor declines Tutors can decline an invite from the invite page. When they do, the invite shows as **Declined** in your list with the date, and their link stops working permanently — declining is final for that link, so nobody can accept it later by mistake. You can still invite them again. Click **Invite again** on the declined row and ClassQuill sends a brand-new invite with a fresh link. (Their old declined link stays dead — the new one is what they'll use.) ### Resending and revoking * **Copy link** hands you the exact link that was emailed, so you can send it through any channel that actually reaches them. This is the fix for "the email never arrived". It's hidden once an invite is expired or declined, because those links are permanently dead — use **Resend** instead. * **Resend** issues a new invite link and emails it again. The previous link stops working, so always tell the tutor to use the newest email. * **Revoke** cancels an invite you sent by mistake. The link stops working and the row disappears from the roster. You can invite the same person again at any time. Both actions are available to Org Owners and Org Admins. ## Choosing your onboarding requirements In **Settings → Tutor onboarding**, you decide what each requirement means for your org: | Mode | What it does | | - | - | | **Off** | Not part of onboarding | | **Required to start** | The tutor can't run sessions until it's complete and approved | | **Start now, review soon** | The tutor starts immediately; the item lands in your review queue afterwards | | **Must complete — doesn't block** | Shows on the checklist and gets reviewed, but never blocks sessions | By default nothing blocks a new tutor — you opt in to the gates you want. WWCC is the exception: it's either off or a hard requirement (it's a legal obligation, so it can't be waived for individual tutors). ## Reviewing submissions As tutors complete requirements, submissions appear in the **Approvals** tab on your onboarding page. Approve, reject with a reason, or revoke a previous approval — the tutor is notified each time and sees your reason on their checklist. You can also waive a requirement for an individual tutor from their profile (except WWCC). If a tutor is blocked, anyone who tries to book them sees which requirement is outstanding and where to fix it — never a silent failure. ## What's next > [card] [Add students](/guides/add-students) > > Enrol students into your org. > [card] [Set tutor availability](/guides/set-availability) > > Tutors set the hours they're available to be booked. # Setting up your organisation Source: https://docs.classquill.com/guides/org-setup Configure your organisation's name, logo, subjects, and timezone before inviting anyone. ## Before you start You need to be logged in as an **Org Owner**. Organisation settings are not accessible to tutors or students. ## Steps ### 1. Open organisation settings From the sidebar, click **Settings**, then select the **Organisation** tab (or navigate directly to `/settings/org`). ### 2. Fill in your organisation details | Field | What to enter | | - | - | | **Name** | Your tutoring business name (shown to students, parents, and on invoices) | | **Logo** | Upload a square PNG or JPG — recommended 400×400 px | | **Timezone** | Your local timezone — this is used for all scheduling | | **Website** | Your public website URL (optional) | ### 3. Add subjects Click **Subjects** and select every subject your org offers. Tutors will later pick which of these they teach, and students will be enrolled in subject-specific classrooms. Common subject groupings: * Maths (Primary, Junior, Senior, VCE Methods, VCE Specialist) * English (Primary, Junior, Senior, VCE) * Sciences (Chemistry, Physics, Biology) * Languages, Music, Test Prep ### 4. Save Click **Save changes**. Your org name and logo will appear immediately across the platform — in the sidebar, on invoices, and on your public booking page. ## Decide whether people can find you by name **Settings → Organisation → Listed in search** controls one thing with two consequences: * **Listed** — anyone creating a ClassQuill account can search your organisation by name and send you a join request. You approve or decline each one from **Users → Pending**; nobody gets in without your say-so. * **Not listed** — you're invisible in that search, and the only ways in are the ones you hand out: a join link, an emailed invite, or a roster import. > [!NOTE] > > **Tutoring companies are listed by default. Schools are not.** If you're a school and you want families to be able to find you, you have to turn this on deliberately. This is worth checking early, because it decides whether "make an account and search for us" is advice you can actually give. Once it's on, **Users → Add → How people join…** gives you the exact wording to send a student or a tutor, ready to copy. ## What's next > [card] [Invite tutors](/guides/invite-tutors) > > Add your team to the platform. > [card] [Add students](/guides/add-students) > > Enrol your first students. # Help Center Source: https://docs.classquill.com/guides/overview Everything you need to get your tutoring organisation up and running on ClassQuill. ## Welcome to ClassQuill ClassQuill is a tutoring management platform for tutoring businesses, tutoring centres, and schools. It handles scheduling, payments, student progress, and tutor administration in one place. These guides cover the five core tasks every new organisation completes in their first week. > [card] [Set up your organisation](/guides/org-setup) > > Add your org name, logo, subjects, and timezone. > [card] [Invite tutors](/guides/invite-tutors) > > Send email invites and assign tutor or admin roles. > [card] [Add students](/guides/add-students) > > Enrol students into your org, a classroom, or a 1:1 arrangement. > [card] [Set tutor availability](/guides/set-availability) > > Tutors set their weekly available hours so parents and students can book. > [card] [How parents book a session](/guides/how-parents-book) > > Walk through the parent portal booking flow. ## Roles in ClassQuill | Role | What they do | | - | - | | **Org Owner** | Full control — billing, settings, users, data | | **Org Admin** | Manage tutors, students, classrooms, and payments | | **Tutor** | Deliver sessions, view their own schedule and earnings | | **Student** | Attend sessions, complete homework, view progress | | **Parent** | Book sessions, view invoices, message tutors | > [!NOTE] > > Looking for API documentation? Switch to the **API Reference** tab above. # Reschedule or cancel a session Source: https://docs.classquill.com/guides/scheduling/reschedule-cancel How tutors, admins, and parents can reschedule or cancel a booked session. ## Who can reschedule or cancel | Role | Can reschedule | Can cancel | | - | - | - | | **Org Admin** | Yes — any session | Yes — any session | | **Tutor** | Yes — their own sessions | Yes — their own sessions | | **Parent** | Yes — up to the cutoff | Yes — up to the cutoff | | **Student** | No | No | The **cancellation cutoff** is set by your org admin (e.g. 24 hours before the session). Parents cannot reschedule or cancel inside that window — they need to contact the tutor or admin directly. *** ## Rescheduling a session ### As a tutor or org admin 1. Go to **Calendar** in the sidebar. 2. Click the session you want to reschedule. 3. Select **Reschedule**. 4. Pick a new date and time from the available slots. 5. Confirm — the parent and student receive an automatic notification. ### As a parent 1. Go to **Calendar** in the parent portal. 2. Click the session. 3. Select **Request reschedule** and pick your preferred new time. 4. The tutor receives a notification to confirm the new time. > [!NOTE] > > If the new time is outside the tutor's published availability, the reschedule request goes to the tutor for manual approval rather than confirming automatically. *** ## Cancelling a session ### As a tutor or org admin 1. Go to **Calendar** and click the session. 2. Select **Cancel session**. 3. Add a reason (optional but recommended — the reason is included in the notification to the parent). 4. Confirm. The session is marked as **Cancelled** and removed from all calendars. If the session was already invoiced, the invoice is voided automatically. ### As a parent 1. Go to **Calendar** and click the session. 2. Select **Cancel** (only visible if you're within the cancellation window). 3. Confirm. > [!WARNING] > > If you try to cancel inside the cancellation cutoff period, the option will be greyed out. Contact your tutor or the org admin directly in those cases. *** ## Related > [card] [How parents book a session](/guides/how-parents-book) > > The original booking flow. > [card] [How session reminders work](/guides/scheduling/session-reminders) > > Automated reminders sent before each session. # How session reminders work Source: https://docs.classquill.com/guides/scheduling/session-reminders ClassQuill automatically notifies tutors, parents, and students before every session. ## Overview ClassQuill sends automatic reminders before every booked session. No setup required — reminders go out as long as the session is confirmed and the recipient has a valid email address. *** ## What gets sent and when | Reminder | Sent to | Timing | | - | - | - | | Email reminder | Parent, student, tutor | 24 hours before | | Push notification (app) | Parent, student, tutor | 1 hour before | | SMS | Parent (if mobile number on file) | 24 hours before | > [!NOTE] > > SMS requires a mobile phone number on the parent or student's account. Go to **Settings → Profile** to add or update a phone number. *** ## What the reminder contains * Session date, time, and duration * Tutor name * Session format (in-person address or video call join link) * Link to the session in the app For video sessions, the join link is included directly in the reminder email — no need to log in to find it. *** ## If a session is rescheduled or cancelled When a session is rescheduled or cancelled, ClassQuill immediately sends a notification to all parties with the updated details. A fresh reminder goes out 24 hours before the rescheduled session. *** ## Turning off reminders 1. Go to **Settings → Notifications** 2. Toggle **Session reminders** on or off per channel (email / push / SMS) Individual users control their own notification settings — org admins cannot disable reminders for a specific user. *** ## Related > [card] [Reschedule or cancel a session](/guides/scheduling/reschedule-cancel) > > What happens to a reminder when a session is rescheduled or cancelled. # Setting tutor availability Source: https://docs.classquill.com/guides/set-availability Tutors set their weekly available hours so parents and students can find and book open slots. ## Overview Availability can be set by each **tutor** individually, or by an **Org Owner / Org Admin on a tutor's behalf** — handy when you're migrating a whole team and want booking live before every tutor has logged in. Once availability is published, those slots appear in the booking calendar for parents and students. ## Steps (for tutors) ### 1. Open Calendar Settings Log in as a tutor. From the sidebar, click **Settings**, then select the **Calendar** tab (or navigate to `/settings/calendar`). ### 2. Set your weekly availability You'll see a weekly grid. Click and drag to mark the hours you're available each day. Tips: * Set the hours you're *generally* available, not the hours you're already booked — ClassQuill automatically hides slots that are already taken. * You can set different hours for different days (e.g. available Mon/Wed/Fri afternoons, Sat mornings). * Leave days unchecked if you never work that day. ### 3. Save Click **Save availability**. Your slots are immediately visible to parents and students in the booking calendar. ## Steps (for org owners and admins — on a tutor's behalf) ### 1. Open the tutor's profile Go to **Users → Instructors** and click the tutor. Their detail panel opens. ### 2. Edit the Availability card The **Availability** card shows the same weekly grid the tutor sees, clearly labelled as editing on their behalf. Set their hours and save — changes take effect immediately, and the tutor can adjust them any time from their own settings. > [!NOTE] > > You can only edit availability for **active** tutors in your organisation — offboarded tutors are > excluded. The guided **Migrate your business** checklist shows how many of your tutors have hours > set, so you can see at a glance when self-booking is ready to go live. ## Blocking time off If you need to be unavailable during a period that falls inside your usual availability (e.g. a holiday), you can block individual dates from your **Calendar** page — click any slot and select **Block time**. > [!WARNING] > > Blocking time does not cancel sessions already booked in that slot. Cancel those sessions separately if needed. ## What students and parents see Once a tutor has set availability, parents booking through the parent portal and students on the **Find Tutor** page will see a calendar showing only open, unbooked slots for that tutor. ## What's next > [card] [How parents book a session](/guides/how-parents-book) > > See exactly what the booking experience looks like for parents. # Settings overview Source: https://docs.classquill.com/guides/settings-overview Where everything lives under Settings, and who can see each section. Settings is one page, `/settings`, but it shows a different set of rows depending on your role. This page is a map — use it to find the right row before hunting through the sidebar. ## Organisation (org owners and admins only) Tutors, students and parents never see this group. | Row | What's there | | - | - | | **Organisation** | Name, logo, timezone, language, currency, brand kit, legal details, danger zone | | **Billing & finance** | GST treatment, invoice settings, how families pay, bank account, tutor reimbursements (mileage + expenses), cancellations & no-shows, card auto-charge | | **Integrations** | Stripe Connect, accounting (Xero/MYOB), bank reconciliation, API keys, connect via MCP, outbound integrations, Zapier, connected apps and webhooks — everything that belongs to the organisation rather than to one person | | **Subjects** | Subjects you teach, open-book policy for exams, content defaults (question bank, resource downloads, course adoption) | | **Scheduling & teaching** | Locations, term dates, institute holidays, session scheduling, video calls (recording + auto-log), booking approvals, travel-time warning | | **Booking & public page** | Family feedback and tutor check-in settings, your public booking page | | **Communications** | Email sending identity, email templates, extra notes in emails, inquiry routing | | **Team & compliance** | Permissions (admins and tutors), messaging policy | | **Pricing** | Your rate matrix — what students pay and tutors earn | | **Subscription** | Your ClassQuill plan | > [!NOTE] > > **Integrations** used to be split across Billing, Connections and a separate Developers page. > It's now one row: if a credential or config belongs to the organisation (survives a staff > member leaving), it's here. If it belongs to a person, it's on their own **Connections** page > below. ## Account (everyone) Every role — owner, admin, tutor, student, parent — sees these. | Row | What's there | | - | - | | **Preferences** | Appearance, input method, language, timezone, and (students) calculator, voice and AI response mode | | **Account** | Your identity (name, email, phone, avatar), password, memberships, referral code, signature, and account deletion | | **Tutor profile** *(tutors only)* | **Listing** — photo, video, bio, publish/unpublish; **Teaching** — mode, type, experience, specialisations, capacity and booking approval; org tutors also get a **Getting paid** group (invoice settings, bank details, where you tutor) | | **Connections** | Your personal Google Calendar, Drive and Classroom links (students also see membership cards — join code, linked org, classrooms, groups, parent link) | | **Notifications** | Per-category notification preferences (in-app and email), plus push notifications | | **Safety** | Blocked users, your reports, and Help & legal | > [!NOTE] > > **Preferences** was called **General** before 2026-09-20 — it's the same page, renamed and > trimmed down to one card. Push notifications moved from there to **Notifications**. ## What's next > [card] [Set up your organisation](/guides/org-setup) > > Name, logo, subjects and timezone. > [card] [Set tutor availability](/guides/set-availability) > > Weekly hours and org-wide scheduling rules. # Mastery scales and progress levels Source: https://docs.classquill.com/guides/student-portal/mastery-scales Set your organisation's mastery scale, set a student's level on a topic, and choose what parents see. A mastery scale names the levels a student moves through on each topic, such as Needs work, Developing and Secure. Practice places a student on the scale automatically, and a tutor can set a level by hand. Students, tutors and (unless switched off) parents see the same levels in the Mastery table. *** ## Set up a mastery scale (owners and admins) 1. Go to **Settings**, then **Subjects**, then **Mastery scale**. 2. Pick a starting template: 3, 4 or 5 bands. The default is three bands: **Needs work**, **Developing** and **Secure**. 3. Edit the bands table: rename a band, or change the score where it begins. A band runs until the next one starts, so bands never overlap or leave gaps. 4. To score one subject differently, add a subject override. Every other subject keeps using the organisation's scale. 5. Click **Save**. Levels tutors have already set keep their band. Nothing in a student's history is rewritten. *** ## Set a level for a student (tutors) 1. Open the student's **Mastery** table. Topics are grouped into sections using your organisation's level names. 2. Pick a topic and choose a level. The row shows **Set by** with your name. A level you set wins over the practice score. 3. If the student practises again and the result lands in a different band, the row shows **Check** so you can confirm your level or change it. 4. Optionally set a target level for a term. Your note on a level is visible to staff only. A **Secure** level you set unlocks that topic as a prerequisite in the student's learning path. *** ## What parents see Parents see the Mastery table and weak-area review unless the organisation or a class turns them off. * Org admins choose this for org classrooms. Tutors choose it for their own groups and 1:1s. * If any of a child's classes turns Mastery off, the parent sees none of it on the main progress page. * Parents never see the knowledge map or diagnostic answers. # Progress reports Source: https://docs.classquill.com/guides/student-portal/progress-reports Write, publish and email a progress report to parents, and how parents read it. A progress report is a written summary of a student's period (a term, a month, or any date range) with charts of attendance, homework and practice. You write it in the report studio, with an optional AI assistant beside you. When you publish, parents are emailed and notified in the app. ## Who can write reports * The student's tutor. * Any teacher of a classroom, for the students in that classroom. * Owners and admins of the student's organisation. Reports are for parents. Students do not see them. *** ## For tutors ### Create a report 1. Open the student (or the classroom or group) and go to **Reports**, then click **+ New**. 2. Pick the period. If your organisation has term dates set up, the terms appear as presets. 3. Choose **Create and draft with AI** to have the report drafted from the period's data, or **Start blank** to write it yourself. The report opens in the studio. If a report already exists for that student and period, it opens instead of creating a second one. ### Write and edit in the studio The report is on the left and the AI assistant is on the right (on a phone, tap **Ask AI**). Everything autosaves. * Type in any section at any time, before, during or after using the AI. * Use the sparkle menu on a section to **Rewrite**, make it **Shorter**, **Warmer** or **More specific**, or **Redraft from data**. * Ask the assistant in the side panel to change the report in plain language. * If the AI changes a section that already has text, you see a before-and-after and choose **Accept** or **Reject** (or **Accept all**). It never overwrites your text silently. Use the options bar to turn charts, topics covered and the knowledge map on or off, and **Preview as parent** to see what parents will see. > [!NOTE] > > The numbers in a report are captured when the AI first drafts it or when you click **Refresh data**. A report written in March still shows March's figures when opened in June. Refresh is only available while the report is a draft. ### Draft reports for a whole class In a classroom's **Reports** tab, choose **Whole class**. **Create for all N students** makes a blank draft for each student, and **Draft all with AI** drafts them in turn, showing progress. Students with no data for the period are skipped, and students whose report you have already started are left alone. ### Publish and email parents 1. Click **Publish**. 2. The dialog lists who will be emailed and who will not, with the reason, for example an emergency-only contact, a parent who turned report emails off, or a parent with no email address. 3. Confirm. The report is published, parents are emailed and notified in the app. Once published, the content is locked. You can archive and restore it, but not edit it. ### If an email fails The report shows each parent's delivery status. Click **Resend to failed** to retry only the failures. Parents who already received it are not emailed again. ### Archive and delete Archive a published report to tidy up (you can restore it later). Only drafts and archived reports can be deleted. *** ## For org admins Go to **Progress reports** in the organisation menu to see every report across your organisation: student, tutor, period, status and email delivery. Filter by status or tutor, and use the failed count to jump to reports with failed emails. Open any row to read or edit it. *** ## For parents ### Get a report When a report is published you get an email with the written summary, simple attendance, homework and practice bars, and a link to the full report. You also get a notification in the app. You can turn report emails off in your notification settings. ### Find past reports 1. Log in to the parent portal and open your child. 2. Go to **Reports**. Every published report for your child is listed, newest first. ### Read, print or save The report page shows attendance, homework and practice charts, topics covered, and a knowledge map if the tutor included one. Click **Print / Save as PDF** and choose **Save as PDF** in your browser's print dialog to keep a copy. *** ## Related > [card] [What parents and students can see](/guides/student-portal/what-parents-students-see) > > Full overview of the parent and student portals. > [card] [How AI auto-grading works](/guides/ai/auto-grading) > > How weakness data is generated from marked homework. # What parents and students can see Source: https://docs.classquill.com/guides/student-portal/what-parents-students-see An overview of the parent and student portals — what each role has access to. ## The parent portal Parents log in at [app.classquill.com](https://app.classquill.com) and land on their **Home** page, which shows all tutors linked to their child. ### What parents can access | Section | What's there | | - | - | | **Home** | Tutors linked to their child — click any tutor to see sessions, chat, and homework | | **Calendar** | Upcoming and past sessions; book, reschedule, or cancel | | **Messages** | Direct messaging with tutors | | **Billing** | All invoices, payment history, PDF receipts | | **Find Tutor** | Browse and book tutors in the org | | **Settings** | Profile, phone number, notification preferences | ### What parents can see about their child * Upcoming and completed sessions (dates, tutors, duration) * Session summaries written by the tutor after each lesson * Homework assigned to their child and its status: **Not started**, **In progress**, **Overdue**, **Handed in** or **Marked**, with the grade once it's released * Published progress reports from the tutor (written summary, attendance, homework and practice charts, topics covered). Students do not see these. * Messages between the child and tutor (read-only view) > [!NOTE] > > Parents cannot see the student's AI chat conversations — those are private to the student. *** ## The student portal Students see a different interface tailored to learning. ### What students can access | Section | What's there | | - | - | | **Home** | Learning Hub — quick links to active homework, saved questions, and AI tools | | **Study** | Practice questions filtered by subject and topic | | **Ask AI** | AI study assistant — ask questions, upload photos of problems | | **Calendar** | Upcoming sessions and homework due dates | | **Messages** | Chat with their tutor | | **Progress** | Weakness analytics, topic coverage, time studied | | **News** | Org announcements and updates | ### What students cannot do * Book sessions themselves (parents or admins book on their behalf) * See other students' data * Access billing or payments *** ## Messaging is contained All messaging happens within ClassQuill. Tutor ↔ student and parent ↔ tutor messaging is separate — no cross-over, no random DMs from outside the platform. *** ## Related > [card] [View progress reports](/guides/student-portal/progress-reports) > > How to read and share a student's progress. > [card] [How parents book a session](/guides/how-parents-book) > > The booking flow from the parent portal. # Cue-card decks Source: https://docs.classquill.com/guides/study/cue-card-decks Study short question cards on a spaced-repetition schedule, build your own decks, and see how reviewing feeds your topic mastery. A **deck** is a set of question cards you review on a schedule. ClassQuill uses **FSRS**, a spaced-repetition scheduler, so a card you know well comes back less often and one you struggle with comes back sooner. ## Where to find decks Open **Review**, then **Saved**. Saved has two tabs: **Questions** and **Decks**. Pick a deck to see what's due today and start studying. ## Studying a card 1. Read the question and think of your answer. 2. Reveal the answer and check it against yours. 3. Rate how well you knew it: **Again**, **Hard**, **Good** or **Easy**. Each button shows when the card will come back. Cards with a single mark and a self-checkable answer can be cards; longer, multi-part questions can't. ## Building your own deck Create a deck from the **Decks** tab, name it, pick a subject, then add questions to it (for example with **Add to deck** while you practise). You can set how many new cards you see per day, suspend a card, or bury it until tomorrow. If a question a card came from is later removed, the card is dropped and the deck shows how many cards are no longer available. ## How it affects your progress Rating a card counts towards your topic mastery and weak-topic signals: **Again** counts as incorrect, and **Hard**, **Good** and **Easy** count as correct, once per card per day. Decks are for self-study — they never appear as homework and don't send reminders. # Notes and reference sheets Source: https://docs.classquill.com/guides/study/notes-and-reference-sheets Publish study notes and one-page reference sheets to your students, add extra material for one class, and control what they can open during an exam. Every topic in ClassQuill can carry **notes** — as long as you like — and every area of study can carry a **reference sheet**, the one-page cheat sheet a student keeps open while working. ## How the layers work Notes and reference sheets stack in layers, and **no layer replaces another**: | Layer | Written by | Who sees it | | - | - | - | | **Official** | ClassQuill | Everyone on the platform | | **Your organisation** | You and your tutors | Every student your org teaches | | **An extra for one class, group, or student** | You and your tutors | Only that class, group, or student — *on top of* the org-wide one | | **Mine** | The student | Only them | A student sees the layers that apply to them, each labelled with where it came from. Adding an extra for one class never hides the org-wide version from anyone else. *** ## Writing notes for a topic ### 1. Open the Study notes tab From the sidebar, click **Resources**, then the **Study notes** tab. You don't need a classroom to write notes — this tab exists so you can publish from anywhere, including if you don't teach a class yourself. ### 2. Pick a topic Choose a curriculum, then an area of study, then a topic. Click **Open notes for this topic**. You land in the same reader your students use, so what you see while writing is what they get. ### 3. Add your note Click **Add a note for your students**, write it, and click **Save**. > [!WARNING] > > A new note saves as a **Draft**. Drafts are visible only to you and your org admins — your students see nothing until you switch the **Draft / Published** toggle in the editor to **Published**. You can also jump straight there from a topic that has no notes yet: the empty state shows a **Publish notes for this topic** button. Only the tutor who wrote a note sees the **Edit** button on it. Everyone else in your org reads it. *** ## Writing a reference sheet Reference sheets attach to an **area of study** rather than a single topic — a reference sheet covers a chunk of the course by definition. ### 1. Open the reference sheet panel Open any study or practice session and switch to the **Reference sheet** panel. ### 2. Create the sheet Click **New sheet**. Give it a title and write the content — maths renders properly, so formulas look the way they will in an exam. ### 3. Choose who it's for Under **Who is this extra for?**, pick one: | Choice | What it does | | - | - | | **Everyone in the org** | The default. Reaches every student your organisation teaches. | | **Extra for one class** | Sits on top of the default, for that class only. | | **Extra for one group** | Sits on top of the default, for that group only. | | **Extra for one student** | Sits on top of the default, for that student only. | You're only offered the classes, groups, and students you actually teach. ### 4. Save Click **Save**. As with notes, it stays a draft until you publish it. Students switch between layers using the tabs at the top of the panel — **Official**, your organisation's name, any extra for their class, and **Mine**. > [!NOTE] > > Deleting a shared sheet removes it for **every student it currently reaches**, and can't be undone. ClassQuill asks you to confirm first. *** ## What students can do * Every student gets a **Mine** tab on both notes and reference sheets, and a **Create your own** button. * Their own material is private — tutors can't read, edit, or hide it. * Students can't edit anything you publish. They keep their own notes alongside yours rather than forking a copy. *** ## Controlling what's open during an exam Practice runs always have everything available. A **timed exam** is different, and the rule is set per organisation. Go to **Settings** → **Subjects** → **Exam resources**: | Setting | Options | Default | | - | - | - | | **Topic notes** | Practice only / Always available / Never in an exam | Practice only | | **Reference sheet** | Practice only / Always available / Never in an exam | Always available | The two defaults differ on purpose, and both match how ClassQuill already behaved — notes were practice-only, the reference sheet was always open. Nothing changes for your org until you choose otherwise. *** ## Good to know * **Fix it once, everywhere.** An extra for one class points at your org-wide version rather than copying it, so correcting the original still reaches every class. Nothing drifts out of date. * **Per-class extras are on reference sheets today.** Notes publish to your whole organisation. * **Official content stays.** You can add your own material alongside ClassQuill's, but you can't hide the Official layer from your students. *** ## Related > [card] [Assigning practice questions](/guides/ai/practice-questions) > > Finding questions in the Question Bank and sending them to students. > [card] [What parents and students see](/guides/student-portal/what-parents-students-see) > > The student's side of the portal. # Switch, leave, or delete an organisation Source: https://docs.classquill.com/guides/switch-leave-delete-org Move between organisations you belong to, leave one you no longer need, or permanently delete an organisation you own. Some people belong to more than one organisation on ClassQuill — for example, if you own your own tutoring business and also help out at another. This guide covers moving between them, leaving one, and permanently deleting one. ## Switching between organisations If you belong to two or more organisations (as an owner, admin, or tutor), an **organisation switcher** appears at the top of the sidebar, just under your organisation's name. ### 1. Open the switcher In the sidebar, click your organisation's name at the top. ### 2. Pick an organisation Choose one from the list — each shows your role in it (owner, admin, or tutor). ### 3. You're switched The whole app moves into that organisation — dashboard, users, calendar, billing, and settings all reflect the one you picked. > [!NOTE] > > Your choice is remembered, so you'll land back in the same organisation the next time you sign in — until you switch again. The switcher only appears when you belong to more than one organisation. If you're in just one, there's nothing to switch and it stays hidden. ## Leaving an organisation Leaving removes your access to everything shared at the organisation level. An owner or admin can re-invite you later if needed. ### If you're a tutor 1. Go to **Settings → General**. 2. Find the **Organisation** card, click **Leave**, and confirm. ### If you're an admin 1. Go to **Settings → Organisation**. 2. Scroll to the **Danger Zone** and click **Leave Organisation**, then confirm. > [!WARNING] > > If you own the organisation, you can't leave it directly — that would leave it without an owner. **Transfer ownership** to someone else first, or **delete** the organisation (below). ## Deleting an organisation > [!WARNING] > > Deleting is **permanent and cannot be undone**. It removes the organisation and everything belonging to it — members, classrooms, and related records. Only the **owner** can delete an organisation. ### 1. Open organisation settings Go to **Settings → Organisation**. You must be signed in as the **Owner**. ### 2. Open the Danger Zone Scroll to the bottom and click **Delete Organisation**. ### 3. Confirm by typing the name Type the organisation's exact name into the box — this unlocks the delete button so it can't happen by accident. ### 4. Delete Click **Delete Organisation**. You'll be returned to your home page. If you belong to other organisations, ClassQuill switches you into one of those automatically. ## Related > [card] [Set up your organisation](/guides/org-setup) > > Configure name, logo, subjects, and timezone. > [card] [Invite tutors](/guides/invite-tutors) > > Add your team to the platform. # Adding the ClassQuill badge to your website Source: https://docs.classquill.com/guides/website/adding-the-badge Add a "Powered by ClassQuill" badge to your website's footer, with paste-in steps for WordPress, Squarespace, Wix, and Elementor. ## What the badge is A small "Powered by ClassQuill" graphic that links back to classquill.com. It's optional — adding it to your footer helps other tutoring businesses discover ClassQuill through you, and it's the one thing that resolves the "Share your badge" step on your organisation's getting-started checklist. ## Get your embed code Go to **Settings → Organisation → ClassQuill badge**. Click either the light or dark badge preview to copy its embed code — it's plain HTML (a linked image), so it works anywhere a site lets you paste custom HTML. ## Steps by platform ### WordPress (block theme) 1. Go to **Appearance → Editor** and open the **Footer** template part. 2. Add a **Custom HTML** block and paste the embed code. 3. Save — the footer now shows on every page of your site. ### WordPress (classic theme) 1. Go to **Appearance → Widgets** and pick a **Footer** widget area. 2. Add a **Custom HTML** widget and paste the embed code. 3. Save — footer widgets appear site-wide. ### Squarespace 1. Go to **Settings → Advanced → Code Injection**. 2. Paste the embed code into the **Footer** field and save — it renders on every page. ### Wix 1. Open the footer section of your site in the editor. 2. Choose **Add → Embed Code → Embed HTML**, paste the code, and place it in the footer so it shows on every page. ### Elementor 1. Edit your footer template (**Templates → Theme Builder → Footer**). 2. Drag in an **HTML** widget, paste the embed code, then publish. ### Any other website builder The embed code is a plain `` linking an `` — no script tag, no dependencies. Look for a **Custom HTML**, **Embed**, or **Code Injection** block in your builder, add it to your footer template so it's site-wide rather than one page, and paste the code in. ## Keep the link as-is Leave the link untouched — don't add `rel="nofollow"` or strip the tracking parameter. Both are needed for the badge to count as a referral back to your organisation. # Introduction Source: https://docs.classquill.com/introduction The ClassQuill API gives you programmatic access to your tutoring organisation's data — sessions, invoices, payments, tutor earnings, and more. ## What is the ClassQuill API? The ClassQuill API is a REST API that lets your organisation pull data out of ClassQuill and into the tools you already use — accounting software, payroll systems, custom dashboards, or anything that can make an HTTP request. Every endpoint returns JSON and uses standard HTTP status codes. ## What can you build with it? > [card] Accounting integration > > Push sessions and invoices directly into Xero, MYOB, or QuickBooks. Automate the reconciliation process your admin team does manually today. > [card] Tutor payroll > > Pull each tutor's completed sessions for the pay period, calculate what they're owed, and export to your payroll tool. > [card] Parent billing > > See each family's balance — what they've been invoiced, what they've paid, and what's outstanding — without logging into ClassQuill. > [card] Custom reporting > > Build your own dashboards on top of your real session and payment data. ## Base URL All API requests are made to: ``` https://api.classquill.com ``` ## Versioning The current version is **v1**. All v1 endpoints are prefixed with `/v1/`: ``` https://api.classquill.com/v1/sessions https://api.classquill.com/v1/invoices ``` ## Next steps > [card] [Authentication](/authentication) > > Get your API key and learn how to include it in requests. > [card] [Quickstart](/quickstart) > > Make your first API call in under 5 minutes. > [card] [Connect AI tools (MCP)](/connect-ai-tools) > > Give Claude, Cursor, Codex and others read-only access to your data. # Pagination Source: https://docs.classquill.com/pagination How list endpoints page and envelope their results. List endpoints return a consistent envelope: ```json theme={null} { "data": [ /* records */ ], "meta": { "limit": 20, "offset": 0, "count": 20 } } ``` Two paging modes are available on most list endpoints: * **Offset** (`limit` + `offset`) — simple, fine for small result sets and one-off reads. * **Cursor** (`cursor`) — recommended for large exports and incremental syncs: constant cost at any depth, and rows inserted while you page can never make you skip or double-read a record. ## Parameters **limit** `integer` (default: 20) Records per page. Minimum `1`, maximum `100`. Applies in both modes. **offset** `integer` (default: 0) Number of records to skip. Combine with `limit` to page: `?limit=50&offset=100` returns records 101–150. Ignored when `cursor` is set. **cursor** `string` Opaque token from a previous response's `meta.next_cursor`. When set, results page by a stable `(created_at, id)` keyset — newest first — and `offset` is ignored. Available on every list endpoint except `/tutors`, `/students`, `/parents`, `/conversations`, and the `/coverage/*` routes (offset-only). ## The `meta` object | Field | Meaning | | - | - | | `limit` | The page size that was applied. | | `offset` | Offset mode only: the offset that was applied. | | `count` | Number of records in **this** page's `data` array. | | `total` | Offset mode, full result-set size **when known** (present on `/tutors`, `/students`, `/parents`). | | `next_cursor` | Cursor mode only: pass as `?cursor=` for the next page; `null` means you have everything. | Cursor-mode responses also carry a standard `Link: <...>; rel="next"` header, so generic HTTP paginators can follow pages without parsing the body. ## Polling for new records Tools like Zapier and Make poll a list endpoint on a timer, read **only the first page**, and treat any record ID they haven't seen before as new. They do **not** page backwards through history. That only works if new records sort to the top. `/students` and `/parents` are ordered **newest enrolment first** (`enrolled_at` descending) for exactly this reason — poll page 1 on your interval and you will see every new record. | Endpoint | Ordered by | Safe to poll for new records | | - | - | - | | `/students` | `enrolled_at` desc | Yes | | `/parents` | `enrolled_at` desc | Yes | | `/tutors` | join date | Yes | | `/payments`, `/invoices`, `/leads`, `/classrooms` (and most others) | `created_at` desc | Yes | | `/sessions` | `created_at` desc (default) | Yes | ### `/sessions` has two sort axes `/sessions` accepts `?sort=created_at` (default) or `?sort=starts_at`: * **`created_at`** (default) — when the session was **booked**. Poll page 1 on this axis and you will see every new booking, same as every other endpoint above. * **`starts_at`** — when the session is **scheduled to happen**. Useful for an agenda/calendar view ("what's coming up"), but do NOT poll it to detect new bookings: a session booked today for next month sorts above one booked today for tomorrow, and a session backfilled for a past date sorts near the bottom. `from`/`to` always filter on `starts_at`, regardless of which `sort` you use — so a calendar consumer typically sets both `sort=starts_at` and a `from`/`to` window. If you'd rather be pushed than poll, [webhooks](/webhooks) deliver the same records the moment they change. ### `enrolled_at` is the cursor, not `created_at` On `/students` and `/parents` these two fields mean different things: * **`enrolled_at`** — when they joined **your organisation**. This is the sort key. * **`created_at`** — when the underlying **account** was created: possibly in a different organisation, possibly years earlier. A student who has had an account since 2024 but joined your org this morning has an `enrolled_at` of this morning and sits at the top of page 1. Sort and filter on `enrolled_at`. If you'd rather be pushed than poll, [webhooks](/webhooks) deliver the same records the moment they change. ## Paging through everything **Preferred (cursor):** start with `cursor=start`, then follow `meta.next_cursor` until it comes back `null`: ```bash theme={null} # page 1 curl "https://api.classquill.com/v1/payments?limit=100&cursor=start" \ -H "Authorization: Token token=cq_live_..." # → meta: { "limit": 100, "count": 100, "next_cursor": "eyJrIjoi..." } # page 2 (and onwards, until next_cursor is null) curl "https://api.classquill.com/v1/payments?limit=100&cursor=eyJrIjoi..." \ -H "Authorization: Token token=cq_live_..." ``` On endpoints whose default order is already newest-created-first (most of them), a full plain offset page also includes a `next_cursor`, so you can switch to cursor paging from page 2 without starting over. Cursor pages are always ordered newest-created first regardless of the endpoint's offset-mode order (so `/sessions` by cursor walks booking order, not schedule order — exactly what a sync wants). **Legacy (offset):** increase `offset` by `limit` until a page returns fewer than `limit` records (or, where `total` is present, until `offset + count >= total`). Offset paging keeps working forever, but deep offsets get slower and a record created mid-walk shifts the window, so a sync can miss or double-read a row. > [!NOTE] > > Single-record and rollup endpoints (e.g. `/sessions/{id}`, `/reports/summary`, > `/parents/{id}/balance`) return the object directly, with no `data`/`meta` envelope. # Quickstart Source: https://docs.classquill.com/quickstart Make your first ClassQuill API call in under 5 minutes. ## Step 1: Get your API key Follow the [Authentication guide](/authentication) to create an API key in your org settings. You'll need it for every request. ## Step 2: Verify your key works The `/v1/ping` endpoint confirms your key is valid and shows which organisation it belongs to. ```bash cURL theme={null} curl https://api.classquill.com/v1/ping \ -H "Authorization: Token token=ei_live_your_key_here" ``` ```python Python theme={null} import requests response = requests.get( "https://api.classquill.com/v1/ping", headers={"Authorization": "Token token=ei_live_your_key_here"}, ) print(response.json()) ``` ```javascript JavaScript theme={null} const response = await fetch("https://api.classquill.com/v1/ping", { headers: { Authorization: "Token token=ei_live_your_key_here" }, }); const data = await response.json(); console.log(data); ``` **Expected response:** ```json theme={null} { "status": "ok", "org_id": "ce374c65-...", "org_name": "Your Organisation Name" } ``` If you see a `401`, double-check that: * Your key starts with `ei_live_` * The header format is exactly `Token token=ei_live_...` (note the space before `token=`) * The key has not been revoked in your org settings ## Step 3: Fetch your sessions Once your key is verified, you're ready to pull real data. ```bash theme={null} curl "https://api.classquill.com/v1/sessions?limit=10" \ -H "Authorization: Token token=ei_live_your_key_here" ``` Sessions are the core record — they power tutor earnings calculations, parent invoices, and accounting exports. ## What's next? > [card] [Sessions](/api-reference/sessions) > > List completed sessions, filter by tutor or student, and pull session details. > [card] [Invoices](/api-reference/invoices) > > Fetch invoices by organisation, parent, or date range for accounting reconciliation. # Rate limits Source: https://docs.classquill.com/rate-limits Per-key request limits and how to handle them. Each API key is limited to **120 requests per minute**. When you exceed the limit, the API responds with: ``` HTTP/1.1 429 Too Many Requests ``` The body follows the standard [error envelope](/errors) with `code: "rate_limited"`, and `details.retry_after_seconds` tells you how long to wait. A `Retry-After` header carries the same value. ## Rate limit headers Every `/v1` response — success or `429` — includes your current limit state, so you can pace requests proactively instead of waiting for a `429`: | Header | Meaning | | - | - | | `RateLimit-Limit` | Requests allowed per window (`120`). | | `RateLimit-Remaining` | Requests left in the current window. | | `RateLimit-Reset` | Seconds until the window resets. | The same values are also sent under `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` aliases — read whichever your HTTP client exposes. ## Staying within the limit * **Watch `RateLimit-Remaining`** and slow down as it approaches zero rather than waiting to be throttled. * **Cache** data that doesn't change often (tutors, classrooms, subjects) rather than re-fetching on every run. * **Page efficiently** with `limit=100` instead of many small pages. * **Back off** on a `429`: honour `Retry-After` (or `details.retry_after_seconds`), then retry with exponential backoff (e.g. 1s, 2s, 4s). > [!TIP] > > Syncing to an accounting tool? Pull once on a schedule (hourly or nightly) rather than > polling continuously — you'll stay well under the limit and your data stays fresh enough > for reconciliation. # Webhooks Source: https://docs.classquill.com/webhooks Get a signed HTTP POST the moment something happens in your organisation. ## What are webhooks? Instead of polling the [REST API](/introduction) on a cron, register a webhook endpoint and ClassQuill will **POST a signed event to your URL** the moment something changes — a session completes, a payment lands, an invoice is paid, a lead arrives. Pipe those events straight into your CRM, Zapier/Make, Slack, or a data warehouse. Each event body is byte-identical to the matching `/v1` resource, so you already know its shape. ## Create an endpoint In **Settings → Developers → Webhooks** (org admins only): 1. Click **Add endpoint** and enter your HTTPS URL. 2. Tick the events you want to receive. 3. Copy the **signing secret** — it is shown **once**. Store it now; you can't retrieve it again (you can rotate it later). Your URL must use `https://` on port 443. URLs that resolve to private, loopback, or link-local addresses are rejected (SSRF protection), both when you create the endpoint and again at delivery time. Use **Send test event** to fire a synthetic `webhook.ping` and confirm your signature-verification wiring before relying on real events. ## Event catalog | Event `type` | Fires when | | - | - | | `session.created` | a tutoring session is created | | `session.completed` | a session transitions to `completed` | | `session.cancelled` | a session transitions to `cancelled` | | `payment.received` | a payment transitions to `succeeded` | | `invoice.created` | an invoice is created (`open`/`draft`) | | `invoice.paid` | an invoice transitions to `paid` | | `lead.created` | an inbound lead is captured | | `booking_request.created` | an inbound booking request is captured | Subscribe to `*` to receive all current **and future** event types. ## Payload shape Every delivery is a JSON envelope. The `data` block is exactly the `/v1` resource shape (e.g. `session.*` → the [Session](/introduction) object). ```json theme={null} { "id": "evt_3f1c…", "type": "session.completed", "schema_version": "2026-06-02", "created_at": "2026-06-02T04:11:00Z", "org_id": "8b2a…", "data": { "id": "…", "status": "completed", "tutor_id": "…", "student_id": "…", "starts_at": "…", "ends_at": "…", "duration_minutes": 60, "rate_cents": 9000, "subject_id": "methods_34", "created_at": "…" } } ``` ## Headers | Header | Meaning | | - | - | | `ClassQuill-Signature` | `t=,v1=` — see below | | `ClassQuill-Event-Id` | `evt_` — stable across redeliveries; use it to dedupe | | `ClassQuill-Event-Type` | the event `type` | ## Verify the signature We compute `HMAC-SHA256(secret, "{t}.{raw_body}")` — over the timestamp **and** the raw body, so a captured body can't be replayed with a different timestamp. Recompute it with your secret, compare in constant time, and reject anything older than **5 minutes**. ```javascript Node.js theme={null} import crypto from "node:crypto"; const TOLERANCE_SECONDS = 300; // `rawBody` MUST be the exact bytes received (don't re-serialise the parsed JSON). export function verify(rawBody, signatureHeader, secret) { const parts = Object.fromEntries( signatureHeader.split(",").map((p) => p.split("=")), ); const t = Number(parts.t); if (Math.abs(Date.now() / 1000 - t) > TOLERANCE_SECONDS) return false; const expected = crypto .createHmac("sha256", secret) .update(`${t}.${rawBody}`) .digest("hex"); const a = Buffer.from(expected); const b = Buffer.from(parts.v1); return a.length === b.length && crypto.timingSafeEqual(a, b); } ``` ```python Python theme={null} import hashlib import hmac import time TOLERANCE_SECONDS = 300 def verify(raw_body: bytes, signature_header: str, secret: str) -> bool: parts = dict(p.split("=", 1) for p in signature_header.split(",")) t = int(parts["t"]) if abs(time.time() - t) > TOLERANCE_SECONDS: return False expected = hmac.new( secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, parts["v1"]) ``` Respond with any `2xx` status to acknowledge receipt. Anything else (or a timeout) is treated as a failure and retried. ## Idempotency & ordering Delivery is **at-least-once** and may arrive **out of order**. Dedupe on `ClassQuill-Event-Id` — it is stable across automatic retries and manual redeliveries of the same event. ## Retries Failed deliveries retry with exponential backoff (30s, 60s, 2m, 4m … capped at 6 hours) for up to 10 attempts. After that the delivery is dead-lettered, and an endpoint that fails repeatedly is auto-disabled (the org owner is notified). You can manually **Redeliver** any failed or dead delivery from the delivery log, re-enable a disabled endpoint, or **rotate** the signing secret at any time. ## Security notes * We only POST to verified `https://` URLs and never follow redirects. * The signing secret is stored encrypted and is never shown after creation — rotate it if you suspect it leaked. * Lead events include the lead's email and a safe subset of submitted fields; analytics fields (`ip_address`, `user_agent`) are never sent.