Getting started
You can finish this guide in the sandbox in about 15 minutes, with a real candidate session. The examples use the sandbox address (https://sandbox.qproctor.com). On live, only the address and the key change.
- Get a key
- Test the connection
- Create an exam
- Give candidates a link
- Follow sessions
- Fetch the report
- Get notified by webhook
- Go live
1. Get a key
Sign up for the sandbox. When you open the link from your e-mail, a sandbox organisation is created for you and your first qp_test_ key is shown once. Keep it in a secret store or an environment variable. Never put it in source code or in a browser.
Send Authorization: Bearer qp_test_… with every request (or X-API-Key). You choose the key's scopes in the console: oku (read), sinav_yaz (create exams), oturum_oku (read sessions), kanca (webhooks), aday_davet (invite candidates).
2. Test the connection
export QP_KEY="qp_test_..." # konsoldaki anahtar / key from the console
curl -s https://sandbox.qproctor.com/api/v1/ben \
-H "Authorization: Bearer $QP_KEY"// Node 18+ (fetch yerleşik / built in)
const QP = "https://sandbox.qproctor.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.QP_KEY}` };
const ben = await fetch(`${QP}/ben`, { headers }).then(r => r.json());
console.log(ben.kurum, ben.ortam, ben.yetkiler);import os, requests
QP = "https://sandbox.qproctor.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['QP_KEY']}"}
ben = requests.get(f"{QP}/ben", headers=H, timeout=10).json()
print(ben["kurum"], ben["ortam"], ben["yetkiler"])
3. Create an exam
If the exam itself lives in your system, pass type: "external" and its url. QProctor opens that address once the candidate is under proctoring. Use settings to choose AI, screen and camera recording, ID photo, room scan, opening and closing times. All fields are in the API reference.
curl -s -X POST https://sandbox.qproctor.com/api/v1/sinavlar \
-H "Authorization: Bearer $QP_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Matematik vize",
"duration_min": 60,
"type": "external",
"url": "https://lms.example.com/quiz/42",
"settings": {"ai_proctoring": true, "require_screen": true, "require_id_photo": true}
}'
# → {"code": "K7Q2MX", "exam_url": "https://sandbox.qproctor.com/e/K7Q2MX", ...}const sinav = await fetch(`${QP}/sinavlar`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify({
title: "Matematik vize",
duration_min: 60,
type: "external",
url: "https://lms.example.com/quiz/42",
settings: { ai_proctoring: true, require_screen: true, require_id_photo: true },
}),
}).then(r => r.json());
console.log(sinav.code, sinav.exam_url);sinav = requests.post(f"{QP}/sinavlar", headers=H, timeout=10, json={
"title": "Matematik vize",
"duration_min": 60,
"type": "external",
"url": "https://lms.example.com/quiz/42",
"settings": {"ai_proctoring": True, "require_screen": True, "require_id_photo": True},
}).json()
print(sinav["code"], sinav["exam_url"])
4. Give candidates a link
Simplest: give the exam_url from the response to the candidate. In the browser they pass a system check, an identity step and the proctoring permissions, then start the exam. To verify candidates in advance, send an activation invitation: they upload their ID and photos once. No e-mail is sent in the sandbox. The invitation link and candidate sign-in codes appear under "Unsent messages" in the console.
# Sınav bağlantısı adaya doğrudan verilir: https://sandbox.qproctor.com/e/K7Q2MX
# İsteğe bağlı: aday aktivasyonu (kimlik + fotoğraf bir kez) için davet
curl -s -X POST https://sandbox.qproctor.com/api/v1/adaylar \
-H "Authorization: Bearer $QP_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "ayse@example.com", "name": "Ayşe Yılmaz", "student_no": "20231234"}'
# → {"id": "...", "status": "invited", "davet_linki": "...", "davet_gonderildi": true}const aday = await fetch(`${QP}/adaylar`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify({ email: "ayse@example.com", name: "Ayşe Yılmaz", student_no: "20231234" }),
}).then(r => r.json());
// Sandbox: e-posta gitmez, konsoldaki "Gönderilmeyen iletiler"de görünür
console.log(aday.davet_linki);aday = requests.post(f"{QP}/adaylar", headers=H, timeout=10, json={
"email": "ayse@example.com", "name": "Ayşe Yılmaz", "student_no": "20231234",
}).json()
print(aday["davet_linki"]) # sandbox: e-posta gitmez, konsolda görünür
On an LMS, connect over LTI 1.3 instead of sharing links. Students launch from the LMS, their identity comes from the LMS, and the result is written to the gradebook.
5. Follow sessions
A session opens as soon as the candidate enters (status: active). It closes when they finish or time runs out (ended). You can poll for ended sessions. Better: get notified by webhook (step 7).
curl -s "https://sandbox.qproctor.com/api/v1/oturumlar?durum=bitti&limit=10" \
-H "Authorization: Bearer https://sandbox.qproctor.com/api/v1_KEY"const oturumlar = await fetch(`${QP}/oturumlar?durum=bitti&limit=10`, { headers }).then(r => r.json());
for (const o of oturumlar) console.log(o.session_id, o.name, o.risk_level);oturumlar = requests.get(f"{QP}/oturumlar", headers=H, timeout=10,
params={"durum": "bitti", "limit": 10}).json()
for o in oturumlar:
print(o["session_id"], o["name"], o["risk_level"])
6. Fetch the report
The session report gives you the risk score and level, event counts, the timeline of events (with evidence image links) and a signed report link that needs no login (signed_report_url). Share that link only with authorised people. The report contains personal data.
curl -s https://sandbox.qproctor.com/api/v1/oturumlar/126a3d923d492bd5 \
-H "Authorization: Bearer $QP_KEY"
# → risk, risk_level, counts, events[] (evidence_url), signed_report_urlconst rapor = await fetch(`${QP}/oturumlar/${sessionId}`, { headers }).then(r => r.json());
console.log(rapor.risk_level, rapor.counts);
console.log(rapor.signed_report_url); // hesap gerektirmez; yalnız yetkili kişilerle paylaşınrapor = requests.get(f"{QP}/oturumlar/{session_id}", headers=H, timeout=10).json()
print(rapor["risk_level"], rapor["counts"])
print(rapor["signed_report_url"]) # hesap gerektirmez; yalnız yetkili kişilerle paylaşın
7. Get notified by webhook
Events: oturum.basladi (session started), oturum.bitti (session ended), risk.yuksek (high risk), el.kaldirdi (hand raised), aktivasyon.bekliyor, aktivasyon.beyan. The URL must be HTTPS and publicly reachable. Private networks, localhost and cloud metadata addresses are rejected. Verify the signature of every request: signature verification guide.
curl -s -X POST https://sandbox.qproctor.com/api/v1/kancalar \
-H "Authorization: Bearer $QP_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://hooks.example.com/qproctor", "event": ["oturum.bitti", "risk.yuksek"]}'
# → {"id": 7}
# Deneme olayı gönder / send a test event
curl -s -X POST https://sandbox.qproctor.com/api/v1/kancalar/7/test -H "Authorization: Bearer $QP_KEY"const { id } = await fetch(`${QP}/kancalar`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify({ url: "https://hooks.example.com/qproctor", event: ["oturum.bitti", "risk.yuksek"] }),
}).then(r => r.json());
const test = await fetch(`${QP}/kancalar/${id}/test`, { method: "POST", headers }).then(r => r.json());
console.log(test.durum); // alıcınızın HTTP koduabone = requests.post(f"{QP}/kancalar", headers=H, timeout=10, json={
"url": "https://hooks.example.com/qproctor", "event": ["oturum.bitti", "risk.yuksek"],
}).json()
test = requests.post(f"{QP}/kancalar/{abone['id']}/test", headers=H, timeout=15).json()
print(test["durum"]) # alıcınızın HTTP kodu
8. Go live
- In your live account, create a
qp_live_key under Panel › API & integrations. Sandbox keys do not work on live. - Base URL:
https://portal.qproctor.com/api/v1. Your webhook secret is different on live. - On live, each candidate session uses credits. See pricing on qproctor.com.