How it works
- Request an API key with the form. We send your
organization_idand key when the account is ready. - Your backend creates a test (assessment + exam URL + proctoring options).
- You share the launch link with students.
- Students install TestWatch, open the link, complete camera/screen setup, and take the exam. A test instance is created when they start.
1. Create the test
Call this from your server after you have credentials. Do not put the API key in a browser page.
POST https://proctoring.wonksknow.com/api/v1/test-instances/test-url/create
Content-Type: application/json
X-API-Key: <your organization API key>
{
"organization_id": "YOUR_ORGANIZATION_ID",
"remote_assessment_id": "exam_101_fall23",
"created_by": "instructor@yourschool.edu",
"test_url": "https://your-lms.example.com/exams/101",
"proctoring_preferences": {
"screen-video-recording": true,
"face-tracking": true,
"browser-visibility": true,
"multiple-display-check": true,
"prevent-copy-paste": true,
"lock-browser": true,
"secondary-camera-check": false,
"disable-devtools": false,
"multiple-voice-detection": false,
"raisehand-integration": false,
"live-proctor-before-after": false,
"live-proctor-join-muted": false,
"adaptive-quality": true,
"ask-user-details-before-start": false,
"show-privacy-policy-before-start": false,
"privacy-policy-url": "",
"2fa": false,
"2fa-privacy-url": "",
"2fa-terms-url": "",
"2fa-additional-url": "",
"360-degree-room-view": false,
"host-test-on-web": false,
"enable-screen-share": false,
"enable-video-recording-only": false
}
}
remote_assessment_id is your exam id (unique per organization). test_url is the page students actually take — TestWatch loads it in an iframe. If you omit test_url, a placeholder launch page is generated.
Proctoring options
| Key | What students get |
|---|---|
screen-video-recording | Screen + webcam recording, uploaded in chunks |
face-tracking | Face / look-away monitoring |
browser-visibility | Tab or window switch alerts |
multiple-display-check | Extra monitors flagged (desktop app) |
lock-browser | Locked / maximized TestWatch window |
prevent-copy-paste | Copy, cut, paste, right-click restricted |
secondary-camera-check | Phone side-camera via QR code |
raisehand-integration | Live proctor meeting in-app |
live-proctor-before-after | With raisehand-integration: join the live meeting right after the camera check (before the start time) and stay in it after Finish Test, which still stops recording and AI monitoring. SDK: liveProctorBeforeAfter: true; call leaveLiveProctoring() to leave. |
live-proctor-join-muted | With raisehand-integration: join the live meeting muted. The video box shows the mic state and a "Talk to proctor" button that raises a hand and shows the queue position; the student is unmuted when the proctor resolves the hand, and muted whenever the proctor mutes them. SDK: liveProctorJoinMuted: true. |
adaptive-quality | Match capture quality to the student PC |
360-degree-room-view | Pre-test 360° room scan before the exam starts |
host-test-on-web | Launch in the browser; skip the TestWatch desktop deeplink |
enable-screen-share | Ask the student to share their screen before the test starts |
enable-video-recording-only | Record the webcam only; skip screen capture |
show-privacy-policy-before-start | Show a mandatory privacy-policy consent checkbox before the test starts |
privacy-policy-url | Required http(s) link opened in a new tab from the consent checkbox |
2fa | Email a parent/guardian a short-lived 6-digit code plus consent links; block launch until verified once |
2fa-privacy-url | Privacy policy link included in the parent-consent email |
2fa-terms-url | Terms of use link included in the parent-consent email |
2fa-additional-url | Optional extra consent link |
2. Add a test taker
After the test exists, add each student from your server. If you omit taker_id, a unique 6-character ID is generated. Send the returned short_url to that student.
POST https://proctoring.wonksknow.com/api/v1/test-instances/takers/create
Content-Type: application/json
X-API-Key: <your organization API key>
{
"organization_id": "YOUR_ORGANIZATION_ID",
"remote_assessment_id": "exam_101_fall23",
"name": "Ada Lovelace",
"email": "ada@example.com",
"taker_id": "student_45821"
}
The response includes taker_id, a unique short_url (also launch_url) such as https://proctoring.wonksknow.com/s/9QDYLF, and a response_url such as https://proctoring.wonksknow.com/r/9QDYLF. Send the launch link to the student. When they finish a remote exam, POST their answers as JSON to the response URL.
2b. Post answers from a remote exam
If the exam lives on your site (not uploaded into TestWatch), POST JSON to the student’s response_url. TestWatch stores it on that sitting and shows it under View answers on the video report.
POST https://proctoring.wonksknow.com/r/9QDYLF
Content-Type: application/json
{
"answers": [
{"id": "q1", "prompt": "What is 2 + 2?", "answer": "4", "expected": "4", "correct": true}
],
"score": 1,
"total": 1
}
You can also POST a plain object of question IDs to answers, or an array of answers. Same payload is accepted at POST https://proctoring.wonksknow.com/api/v1/test-instances/takers/9QDYLF/answers.
3. Send students the launch link
Use the same remote_assessment_id you registered. To identify the student, add user_id (your LMS or app user id):
https://proctoring.wonksknow.com/api/v1/test-instances/launch?assessment_id=exam_101_fall23&user_id=student_45821
Path form (recommended in TestWatch): https://proctoring.wonksknow.com/api/v1/test-instances/launch/exam_101_fall23/user/student_45821
The launch page loads your stored preferences, then starts TestWatch. On the web it prompts them to open or install the desktop app. Inside TestWatch, the same URL starts camera, screen share, and the exam iframe. A test instance is created per student when user_id is present.
4. What happens at exam start
- Student opens the launch link in TestWatch.
- They confirm camera, microphone, and (if enabled) screen share. Optional second camera is a phone QR flow.
- The platform creates a test instance for that sitting and starts recording / monitoring.
- Your exam URL runs in the iframe. Violations post to the assessment report. Video chunks upload during the session and stitch when they finish.
You do not call a separate “create instance” API for each student. Register the test once; instances are created when students launch. Pass user_id on the launch URL (or on POST /api/v1/test-instances/create) so each sitting is tied to that student.
Authentication
Send your organization API key on every management call as X-API-Key: <key> (or Authorization: Bearer <key>). With a key, organization_id can be left out of create calls. Missing or wrong keys get 401. Admins can reveal and regenerate the key under Dashboard → API keys.
Webhooks
Set an HTTPS endpoint under Dashboard → API keys → Webhooks. TestWatch POSTs JSON {id, type, created, data} for:
session.started— recording began for a sittingalert.raised— a scoring alert was recorded (data.message,data.score)video.ready/session.completed— the recording was assembledreview.decided— a reviewer cleared, flagged or reopened a sitting
Verify every request: compute HMAC-SHA256(secret, timestamp + "." + raw_body) and compare it with the X-TestWatch-Signature header (sha256=…); reject timestamps (X-TestWatch-Timestamp) older than five minutes. Failed deliveries retry three times.
import hmac, hashlib, time
def verify(secret, headers, body: bytes):
ts = headers["X-TestWatch-Timestamp"]
if abs(time.time() - int(ts)) > 300: return False
mac = hmac.new(secret.encode(), ts.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest("sha256=" + mac, headers["X-TestWatch-Signature"])
Frequently asked questions
How do I create a TestWatch test instance?
Register the exam once with POST /api/v1/test-instances/test-url/create. Do not create an instance per student. Instances are created when students open the launch link. Include user_id so each sitting is tied to that student.
Do students need the TestWatch desktop app?
Not necessarily. Tests can run in Chrome or Edge (turn on Run in the browser). The desktop app for Windows, Mac and Linux adds stronger lockdown, such as blocking other apps. Candidates can check their computer at /system-check.
How do I get a TestWatch API key?
Create a free account and open Dashboard → API keys to reveal your key right away. For higher volumes or an enterprise agreement, use the form on this page.