Examplary
Start for free
Developer docs

Developer changelog

Changes to the API, SDKs, embeds, and question type platform, in chronological order.

  1. Apps can add pages, run on a schedule and store data

    Apps can now do a lot more than export and settings buttons. A DashboardPage adds a page of your own to Examplary, in the main sidebar or the account settings, with server-side actions your component calls. A CronJob runs a hook on a schedule for every workspace that has your app. And storage keeps JSON documents and files per workspace, per user or for the whole app.

    app.addCapability(
      new CronJob({
        id: "sync-rosters",
        schedule: "0 3 * * *",
        action: async () => {
          const linked = storage.org.collection("linked-courses");
          await syncRosters(settings.apiToken, linked);
        },
      }),
    );
    

    To try it all out, run npx @examplary/cli dev in your app's folder. It installs a private copy in your workspace, updates it on every save, and the developer toolbar shows your hook calls, cron jobs and stored data. More in trying out your app.

  2. Build and publish your own apps

    You can now extend Examplary with apps. An app is a folder with an app.ts that brings together settings, server-side hooks, React components and capabilities: an export option, a requirement students meet before they start a test, a button on the app's settings card, or your own question types. Our own integrations, from Google Classroom to Safe Exam Browser, now run as apps too.

    npx @examplary/cli init acme-gradebook --id acme.gradebook --name "Acme Gradebook"
    npx @examplary/cli publish
    

    Question types are now published as part of an app, with app.addCapability(new QuestionType({...})). npx @examplary/cli upload and POST /question-types are gone, but types you uploaded before keep working, and an app from your workspace that publishes the same ID takes them over. See publishing apps for private and public apps.

  3. Regenerate a question with an AI prompt

    You can now hand an existing question back to the AI with a prompt. POST /exams/{id}/questions/{questionId}/generate takes a message describing the change you want — "make this harder", "rewrite it for B1 level" — and returns the reworked question in the job result. Set replace to also save it back to the exam.

    It's the counterpart to POST /exams/{id}/questions/generate, which writes a brand-new question: same exams:write scope, same asynchronous job result. Handy when you're building questions programmatically and want to iterate on one rather than start it over.

  4. Validate the questions your question type generates

    A published question type can now check each question the AI generates before it's added to a test. Add a function to your question type with addValidator() — it receives { question }, returns { valid, error }, can be async, and runs in your app's sandbox alongside your other hooks.

    When a validator returns valid: false the question is dropped and your error goes back to the model, so a specific message like "Provide at least two options." helps it try again. Return anything else and the question is kept as is. See generating questions for a full example.

  5. Re-grade answers after changing how they're graded

    Change a question's scoring and the answers already graded against the old version now catch up on their own. PATCH /exams/{id}/questions/{questionId} re-grades a question's automatically graded answers in the background whenever its scoring changes (toggling excludeFromGrading on its own doesn't count).

    To re-apply new AI grading instructions across a whole exam, the new POST /exams/{id}/sessions/regrade-ai queues a re-grade of every AI-graded answer a teacher hasn't touched since. Both leave manual grades and answers with teacher feedback alone, and answers report a gradingStatus of auto-grading-pending while the re-grade runs. See the grading docs for the full flow.

  6. Exam and practice space links now use your own domain

    The publicUrl on an exam or practice space — the shareable link you get back from endpoints like GET /exams/{id} — now points at your first-party Examplary domain. A test comes back as https://app.examplary.ai/l/{id} and a practice space as https://app.examplary.ai/s/{id}, or at your workspace's custom domain when you've set one up. Until now these links used the separate examplary.link and practice.space short domains.

    First-party links are far less likely to be flagged or blocked by school networks and email filters, so the tests you hand to students are easier to reach. Nothing about the request changes — only the host and path of the URL you get back.

    Links already in the wild keep working: the old examplary.link and practice.space addresses redirect to the new ones. If you store or parse these URLs, re-fetch them or update anything that expected the old domains.

  7. Import a test straight into a folder

    POST /exams/import now takes an optional folder — the ID of the folder to drop the imported test into. Leave it out and the test lands at the top level, exactly as before.

    The token needs editor access to that folder, otherwise the call returns a 404, and the folder is recorded in the import's audit log entry.

  8. Restore recently deleted items over the API

    GET /org/recently-deleted lists the tests and practice spaces deleted in the last seven days — each with who deleted it and when — and POST /org/recently-deleted/{id}/restore brings one back, along with the people it was shared with. Handy for building your own trash-and-restore flow, or an undo step after a bulk cleanup. Restoring a test also restores its sessions.

    The list call needs an admin or owner token with orgs:read; restoring needs an admin or owner token with orgs:write. The workspace also needs audit logs, part of our plan for organizations. Anything that isn't a restorable test or practice space within the window returns a 404.

  9. Higher rate limits for creating source materials

    With POST /source-materials, you can now make 60 requests per minute instead of 10; POST /source-materials/{id}/slice now allows 20 instead of 5. Both limits remain per user, and the current values appear in the Rate limit section on each endpoint's reference page.

    If you were pacing uploads to stay under the old ceiling, you can let them run faster. Exceeding a limit still returns 429 with a Retry-After header. The uploading files guide explains how to upload a local file and use its public URL with the API.

  10. OAuth tokens are now scoped to a single workspace

    When a user authorizes your integration and belongs to more than one Examplary workspace, the consent screen now asks which workspace to grant access to. The token you receive back is tied to that one workspace. Until now a token could reach any of the user's other workspaces by passing an X-Examplary-Org header or ?org= query parameter; now anything other than the token's own workspace returns 403, and GET /orgs lists only that workspace.

    If your integration relied on switching workspaces with that header or parameter, it will need the user to authorize again for each workspace it works with. Users who belong to a single workspace are unaffected and skip the picker entirely. The OAuth guide walks through the full authorization flow.