Skip to content

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.

  1. Get a key
  2. Test the connection
  3. Create an exam
  4. Give candidates a link
  5. Follow sessions
  6. Fetch the report
  7. Get notified by webhook
  8. 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"

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", ...}

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}

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"

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_url

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"

8. Go live