Connect Your Student System to the Testing Center — Setup Guide
This guide is for the person setting things up — a coordinator, an administrator or a project manager. You do not need to know how to program. By the end you will have created a test link for a pretend student, opened it as that student and seen the result come back. Then you hand over to your developers.
Developers: the technical details are in Testing Center API — Reference.
What this does
Your school already has a student system (an SIS — the software where your students, classes and grades live). This connection lets that system give any student a PrepareBuddy test without the student creating an account or remembering a password:
Your student system PrepareBuddy
─────────────────── ────────────
1. "Student 00001 needs test A1" ───▶ makes a personal test link
◀─── https://…/language-tests/start/?code=7KQ2M9XPRA
2. Sends the link to the student
(email, SMS, or inside your system)
3. Student opens the link, presses Start, takes the test
4. The result is ready (straight away, or after a teacher checks it)
5. Gets the result ◀─── sent automatically, or fetched whenever you ask
(score, CEFR level, date)
Your student system only ever sends PrepareBuddy a student ID (like 00001). It does not need to send
names, emails or phone numbers.
The whole journey on one page
Do these in order. Each line says what you should see, so you always know if it worked.
| Stage | What you do | Where | What you should see |
|---|---|---|---|
| 1 | Create an API key | PrepareBuddy: Organization dashboard → API Keys & Integrations | A long key, shown once. Copy it. |
| 2 | Check the connection | Postman, request 1. Check my key | Green 200 with your organization's name. |
| 3 | Create an assessment (a test sitting with a name you choose, like A1-midterm) |
Either PrepareBuddy (Step 1) or Postman (Step 1, Option B) | The assessment appears in the list. |
| 4 | Make a test link for a pretend student | Postman, request 6. Create a test link | A link starting with https://www.preparebuddy.com/language-tests/start/?code= |
| 5 | Open the link as the student and take the test | A private browser window | "Your test is ready", then the test. |
| 6 | See the result | PrepareBuddy sitting page, or Postman request 8 | Status completed, with score and level. |
If a step does not show what is written here, go straight to If something goes wrong at the bottom.
Words you will see
| Word | What it means |
|---|---|
| Student system / SIS | Your own software that holds students and grades. |
| Sitting | One test session in PrepareBuddy's Testing Center: which test, when it opens and closes, and how results are released. (Some screens call it an event.) |
| Assessment ID | A short name you make up for a sitting, such as A1-midterm or TOEFL-mock-1. PrepareBuddy does not create it for you. It is how your student system says which test it means, a bit like a nickname. Until at least one sitting has an Assessment ID, your assessment list is empty and no test link can be made. |
| Student ID | Your own ID for the student, such as 00001. PrepareBuddy just stores it. |
| Attempt | One student's link for one sitting. Each attempt has its own attempt_id. |
| Test link | The personal address the student opens. It contains a one-time access code. |
| API key | A long password that proves a request comes from your student system. |
| Webhook | PrepareBuddy calling your system when something happens (for example: "result ready"). |
Who does what
| Step | Who | Time |
|---|---|---|
| 1–2 Create a sitting and give it an assessment ID | Coordinator (you) | 5 min |
| 3 Create an API key | Organization administrator (you) | 2 min |
| 4–6 Check the connection, then try the whole thing once, by hand | You | 15 min |
| 7 Set up automatic results (webhook) | You, with the address from your developers | 5 min |
| 8 Connect the student system for real | Your developers | Their estimate |
The order matters: sitting with an Assessment ID first, then the test link. If you make a link before
any sitting has an Assessment ID, the answer is unknown_assessment.
You need to be an administrator (or examiner) of your organization in PrepareBuddy. If you are trying this in a sandbox organization first, everything below works the same way there — and sandbox tests are not billed.
Step 1 — Create the sitting (the "assessment")
There are two ways. Both make exactly the same thing. Pick one.
Option A — in PrepareBuddy (point and click)
- Sign in to PrepareBuddy. Open the Institution menu → Student & Course Dashboard, then click the Testing Center card.
- Click Conduct a test. It is one page with three steps.
- Step 1 — Which test? Pick the test your students will take. Use the type buttons or the search box.
- Step 2 — Who takes it? In Assessment ID for your student system (optional), type the ID your
student system will use, for example
A1-midterm. Leave Candidates empty: your student system adds the students. - Step 3 — How are results released?
- Release immediately — the student and your system get the result as soon as it is scored.
- Examiner review first (this is pre-selected) — a teacher checks and can adjust writing and speaking first. Your system receives the result when the teacher releases it.
- Optionally set Opens and Take by (the last moment a student can start). A student who has already started is never thrown out when the window closes. Leave both empty for "always open".
- Click Review & confirm →, check the summary, then click Create event. You land on the sitting's page, which already shows the Assessment ID.
Rules for an assessment ID: 1–64 characters; letters, digits and . _ - / : @ # +; no spaces. Each ID can
be used by only one sitting at a time in your organization. Capital letters matter: A1 and a1 are
different.
Already have a sitting? Open it, click Connect your student system (API), type the assessment ID and click Save. Leave the box empty and save to disconnect — links already sent keep working.
Option B — with Postman (no clicking around in PrepareBuddy)
You need the API key from Step 3 first, and to have done Step 4a (check the connection).
- In Postman run request 2. Which tests can I use? It lists every test you can use, each with a
test_idnumber, for example{"test_id": 412, "title": "TOEFL iBT Practice Test 1", ...}. - Click the collection → Variables. Put that number in
test_id, and the name you chose inassessment_id. Save. - Run request 3. Create an assessment. You should see 201 Created:
{
"status": "ok",
"created": true,
"assessment": {
"assessment_id": "A1-midterm",
"name": "My first assessment",
"window": "open",
"results": "instant",
"attempts": 0
}
}
- Run request 4. List my assessments. Your assessment is now in the list. That is the green light for Step 4.
What you can set in request 3: name (what teachers see), results (instant, or after_review so a
teacher checks writing and speaking first; if you do not say, it is after_review), opens_at and
closes_at (dates like 2026-12-31T23:59:00+00:00; leave out for "always open"), and instructions (text the
student sees). Exam conditions and Safe Exam Browser are set in PrepareBuddy, on the sitting's page.
To give students more time later, run request 5. Change an assessment with a new closes_at.
Step 2 — Decide how you will name assessments
Agree one naming pattern with your team and your developers, and stick to it. We recommend one ID per level and term, for example:
| Sitting | Assessment ID |
|---|---|
| A1 level, midterm, first term 2026 | A1-MID-2026T1 |
| A1 level, final, first term 2026 | A1-FIN-2026T1 |
| B2 level, placement | B2-PLACEMENT |
Starting a new term? Create the new sitting with a new ID (A1-MID-2026T2) and tell your developers. If
you prefer to keep the same ID every term, open the new sitting and save the old ID there: PrepareBuddy moves
it from the old sitting automatically, and students sent from then on get the new sitting.
Step 3 — Create an API key
- Open Organization dashboard → API Keys & Integrations.
- Name the key, for example
Student system – production(or– sandbox). - Access: Full access. (Read-only keys can fetch results but cannot create test links.)
- Click Create key and copy it immediately — it is shown only once.
- Store it like a password. Send it to your developers through a password manager or another secure channel — never in a normal email or chat message.
If a key is ever exposed, click Revoke and create a new one. Revoked keys stop working instantly.
Step 4 — Check the connection, then make a test link (with Postman, no coding)
4a — Check the connection first
Run request 1. Check my key (a plain GET to https://www.preparebuddy.com/api/v1/ping/). Do this before
anything else. You should see 200 OK:
{ "status": "ok", "organization": "Your School", "access": "full", "assessments": 1, "testing_center_enabled": true }
access must say full to create anything. assessments is how many assessments exist (0 means do Step 1).
testing_center_enabled must be true; if it says false, ask PrepareBuddy support to switch the Testing Center on.
Whenever a list comes back empty, read its hint: it says why and what to do next.
The most common mistake — the address. In Postman's Variables,
base_urlmust be onlyhttps://www.preparebuddy.com— nothing after.com, not even a/. Every request adds/api/v1/...itself. If you puthttps://www.preparebuddy.com/api/v1/testing-center/inbase_url, the address becomes.../api/v1/testing-center/api/v1/ping/and you get a 404. Check the address Postman shows in the top bar:/api/v1/must appear once.
4b — Make the test link
Postman is a free app for sending requests to an API by filling in boxes.
Shortcut — our ready-made requests. In Postman choose Import → Link and paste
https://www.preparebuddy.com/static/integrations/preparebuddy-testing-center-api.postman_collection.json. Click the imported collection → Variables, fill inapi_key,assessment_idandstudent_id, save, and run requests 1 → 12 in order (the whole journey is numbered). Or follow the manual steps below — they do the same thing.
- Install Postman from postman.com and open it.
- Click New → HTTP Request.
- Change GET to POST, and paste this address:
https://www.preparebuddy.com/api/v1/testing-center/attempts/ - Headers tab → add a row: Key
X-API-Key, Value = your API key. - Body tab → choose raw, then JSON in the drop-down, and paste:
{
"student_id": "TEST-001",
"assessment_id": "A1-midterm"
}
(Use the assessment ID you chose in Step 1.)
- Click Send. You should see status 201 Created and an answer like this:
{
"status": "ok",
"created": true,
"attempt": {
"attempt_id": "7c1e9f3a-2b4d-4e8f-9a1b-3c5d7e9f1a2b",
"student_id": "TEST-001",
"assessment_id": "A1-midterm",
"attempt_number": 1,
"status": "not_started",
"assessment_url": "https://www.preparebuddy.com/language-tests/start/?code=7KQ2M9XPRA",
"access_code": "7KQ2M9XPRA",
"opens_at": null,
"closes_at": "2026-11-30T23:59:00+00:00",
"score": null,
"level": null
}
}
(The real answer has a few more lines; the important ones are shown.)
- Click Send again. This time you get 200 OK,
"created": falseand the same link. That is on purpose: if your student system sends the same student twice, the student still has one link.
Your organization has its own PrepareBuddy address? Use it instead of
www.preparebuddy.comeverywhere. The links you receive will use the same address you called.
Step 5 — Open the link as the student
- Copy the
assessment_urland open it in a private (Incognito) browser window, so it does not mix with your own PrepareBuddy login. - You see "Your test is ready" with the access code already filled in. Press Start test.
- A second screen, Assignment Information, shows the test name, the student ID, the due date, the duration (for example 75 minutes) and the sections (reading, listening, speaking, writing). Press Start Assignment.
- The student is now inside that one test. Nothing else in PrepareBuddy is reachable with this link.
- To finish quickly while trying things out, answer a few questions and click the red Exit icon at the top right. A box asks "Are you sure you want to exit the test?"; click OK. Whatever has been answered is scored. The student sees "Your submission has been received" and, once the result is released, their result.
A full test with all four sections takes as long as the duration shown. For a quick try, pick a short test (a one-level "Targeted Assessment" has 16 grammar questions as its first section).
What the student never has to do: register, choose a password, confirm an email address or remember a username. If they close the browser and open the link again, they continue where they were. After finishing, the same link shows them their result once it is released.
Step 6 — See the result
In PrepareBuddy: open the sitting (Testing Center → your sitting). TEST-001 is listed like any other
candidate, with status, score and level. If you chose examiner review, the result appears under
awaiting review until a teacher releases it.
Through the API (in Postman):
- New request, GET, address:
https://www.preparebuddy.com/api/v1/testing-center/students/TEST-001/results/ - Same
X-API-Keyheader. Click Send.
{
"status": "ok",
"count": 1,
"attempts": [
{
"attempt_id": "7c1e9f3a-2b4d-4e8f-9a1b-3c5d7e9f1a2b",
"student_id": "TEST-001",
"assessment_id": "A1-midterm",
"status": "completed",
"score": 62,
"max_score": 100,
"percentage": 62.0,
"level": "B1",
"completed_at": "2026-10-23T14:30:00+00:00"
}
]
}
What the status means:
| Status | Meaning |
|---|---|
not_started |
Link made; the student has not started yet. |
in_progress |
The student is taking the test now. |
submitted |
Finished — waiting for a teacher to review. No score yet. |
completed |
Final result available: score, max_score, level. |
expired |
The window closed before the student started. |
cancelled |
The link was cancelled and no longer works. |
level is the CEFR level the test awarded (for example B1). It is empty for tests that do not award a
level, and when the student answered too little to be placed. Then level_description says
insufficient evidence and cefr.standing says insufficient (some tests also add a result_note with the
reason, such as "0 of 54 questions answered"). A pretend student who presses Exit after a few answers gets
exactly that, with a low score. For a test written for one level (for example "English A1 Beginner
Targeted Assessment") the answer also shows cefr.target_level (A1) and, once enough is answered, how well
the student met it.
Step 7 — Get results sent automatically (webhook)
Instead of asking for results, your student system can be told when something happens.
- Ask your developers for the webhook address of your student system (it starts with
https://). Just trying things out? A free request-inspection site such as webhook.site gives you a temporary address where you can watch events arrive — use it only with pretend students likeTEST-001. - Open Organization dashboard → API Keys & Integrations → Manage webhooks.
- Paste the address. It must start with
https://(anhttp://address is refused). Under Send these events, every box is ticked at first. Leave ticked only the Testing Center API events you want (untick the others, such asstudent.joinedorassignment.created, unless your system needs them): attempt.completed— the result is final (the important one)attempt.submitted— finished, waiting for review (optional)attempt.started,attempt.expired,attempt.cancelled(optional)- Click Add webhook, then copy the signing secret and give it to your developers the same secure way as the API key.
- After you add it, the address appears in the list with a Send test button. Click it: a test event arrives within seconds, and Recent deliveries (on the same page) shows what your system answered.
Status changes are sent within about 5 minutes. If a result is re-marked later (a teacher adjusts a
score), attempt.completed is sent again with the new score.
Step 8 — Hand over to your developers
Send them:
- The link to Testing Center API — Reference.
- The API key and webhook signing secret — through a secure channel.
- Your list of assessment IDs and what each one means.
- The base address (for example
https://www.preparebuddy.com, or your own PrepareBuddy address). - Whether each sitting releases results immediately or after review.
Everyday tasks
| I want to… | Do this |
|---|---|
| Give a student a link | Your student system sends their student ID and the assessment ID (Step 4). |
| See who has finished | Open the sitting in Testing Center, or ask the API for ?status=completed. |
| Replace a link a student lost or forwarded | Your system calls new link for that attempt — the old link stops working. |
| Withdraw a link nobody has used | Your system calls cancel for that attempt. |
| Let a student take a test again | Your system sends the same student and assessment with "new_attempt": true (only after the first attempt has finished). |
| Give more time to start | Open the sitting → Change the sitting window → move "Take by" later. |
| Release a held result | Open the sitting → the result awaiting review → release it (as for any sitting). |
| Start a new term | New sitting + new assessment ID (Step 2). You can create it with request 3. |
| Rename an assessment or move its dates | Request 5, or Change the sitting window on the sitting's page. |
Questions
Do students need an email address? No. They need only the link.
Can a student share their link? Anyone with the link can take that one test as that student — the same as a password or a printed access slip. Ask your system to send links only to the student. If a link leaks, issue a new one.
Can the link be used to get into anything else? No. It opens only that student's test and result.
What if your system sends the same student twice? Same attempt, same link. Nothing is duplicated.
What does it cost? Each sitting a student completes counts as one test under your agreement. Links that are never used are not charged. Sandbox organizations are not billed.
Can teachers see the students in PrepareBuddy? Yes — each sitting lists its students by student ID, with status, score and level, plus the usual exports, certificates and review tools.
If something goes wrong
| You see | It means | What to do |
|---|---|---|
401 missing_api_key |
No key was sent. | Add a header named exactly X-API-Key with your key as the value. |
401 invalid_api_key |
The key is not valid. | Copy the whole key again with no spaces or quotes. Keys are shown only once; if it is lost, create a new one (Step 3). |
401 revoked_api_key |
The key was revoked. | Create a new key (Step 3). |
403 read_only_key |
You used a read-only key to create something. | Create a Full access key. |
403 testing_center_not_enabled |
The Testing Center is not switched on for your organization. | Ask PrepareBuddy support to enable it. Request 1 shows "testing_center_enabled": false. |
404 on the very first request (Check my key) |
The address is wrong, almost always a doubled /api/v1/.... |
Set Postman's base_url to only https://www.preparebuddy.com (Step 4a). |
200, but the assessment list is empty ("count": 0) |
No sitting has an assessment ID yet. | Do Step 1 (Option A or B). The answer itself tells you this. |
404 unknown_assessment |
No sitting has that assessment ID. | Check spelling and capitals; set it on the sitting (Step 1). |
404 unknown_test when creating an assessment |
That test_id is not one your organization can use. |
Run request 2 and copy a test_id from it. |
409 assessment_id_taken |
Another sitting already has that assessment ID. | Choose a different name, or clear it on the other sitting first. |
409 assessment_closed |
The sitting's window has closed. | Extend "Take by" on the sitting, or use a newer sitting. |
409 attempt_open |
You asked for a new attempt while the previous one is unfinished. | Wait for it to finish, or cancel it first. |
400 invalid_student_id |
The student ID has spaces or unusual characters, or is too long. | Use letters, digits and . _ - / : @ # + only (max 64). |
| The student sees "This test opens at…" | The sitting has not opened yet. | Wait, or move "Opens" earlier on the sitting. |
| The student sees "Your testing window has closed" | They tried to start after "Take by". | Extend the window, then they can use the same link. |
| No webhook arrives | Status changes are sent within about 5 minutes; the receiving address must answer quickly. | Check Recent deliveries on the Webhooks page for the reply your system gave. |
