{"openapi":"3.1.0","info":{"title":"QProctor API","version":"1.1.0","summary":"Proctored exams: exams, candidates, sessions, reports and webhooks","description":"Authentication: `Authorization: Bearer <key>` (or `X-API-Key`). Sandbox keys start with `qp_test_`, live keys with `qp_live_`; a sandbox key never works on live and vice versa.\n\nRate limit: in the sandbox 60 requests per minute per key; beyond that `429` with `Retry-After`.\n\nTime fields are Unix milliseconds. Error bodies are `{\"detail\": \"…\"}`.","contact":{"name":"QProctor","url":"https://developers.qproctor.com"},"termsOfService":"https://developers.qproctor.com/en/kullanim-sartlari"},"servers":[{"url":"https://sandbox.qproctor.com","description":"Sandbox"},{"url":"https://portal.qproctor.com","description":"Live"}],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"tags":[{"name":"Hesap"},{"name":"Sınavlar"},{"name":"Oturumlar"},{"name":"Adaylar"},{"name":"Webhook"},{"name":"Candidate link"},{"name":"LTI 1.3"},{"name":"Platform integration"}],"paths":{"/api/v1/ben":{"get":{"tags":["Hesap"],"summary":"Who am I","description":"Organisation, scopes and expiry of the key. Any key may call it.","operationId":"ben","responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ben"},"example":{"org_id":"a1b2c3d4e5f6","kurum":"Örnek Kurum (sandbox)","anahtar":"CI","olaylar":{"oturum.basladi":"Aday sınava başladı","oturum.bitti":"Oturum bitti (sonuç ve risk)","risk.yuksek":"Oturum yüksek riske çıktı","el.kaldirdi":"Aday el kaldırdı (yardım istiyor)","aktivasyon.bekliyor":"Aday aktivasyonu onay bekliyor","aktivasyon.beyan":"Aday aktivasyonu kendi beyanıyla geçti (gözetmen incelemedi)"},"yetkiler":["aday_davet","kanca","oku","oturum_oku","sinav_yaz"],"son_gecerlilik":1797500000000,"ortam":"test"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"}}}},"/api/v1/sinavlar":{"get":{"tags":["Sınavlar"],"summary":"List exams","description":"Exams that are not archived, newest first.\n\nRequired scope: `oku`","x-qproctor-scope":"oku","operationId":"sinavlar","responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SinavKisa"}}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"}}},"post":{"tags":["Sınavlar"],"summary":"Create an exam","description":"Creates a proctored exam. `exam_url` in the response is the link for candidates.\n\nRequired scope: `sinav_yaz`","x-qproctor-scope":"sinav_yaz","operationId":"sinavOlustur","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SinavOlustur"},"example":{"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}}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sinav"},"example":{"id":"K7Q2MX","code":"K7Q2MX","title":"Matematik vize","type":"external","duration_min":60,"url":"https://lms.example.com/quiz/42","proctoring_mode":"automated","opens_at":null,"closes_at":null,"archived":false,"created_at":1794900000000,"exam_url":"https://sandbox.qproctor.com/e/K7Q2MX"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"400":{"$ref":"#/components/responses/Gecersiz"},"403":{"$ref":"#/components/responses/Yasak"}}}},"/api/v1/sinavlar/{kod}":{"get":{"tags":["Sınavlar"],"summary":"Get an exam","description":"One exam of your organisation.\n\nRequired scope: `oku`","x-qproctor-scope":"oku","operationId":"sinav","parameters":[{"name":"kod","in":"path","required":true,"schema":{"type":"string"},"example":"K7Q2MX"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sinav"},"example":{"id":"K7Q2MX","code":"K7Q2MX","title":"Matematik vize","type":"external","duration_min":60,"url":"https://lms.example.com/quiz/42","proctoring_mode":"automated","opens_at":null,"closes_at":null,"archived":false,"created_at":1794900000000,"exam_url":"https://sandbox.qproctor.com/e/K7Q2MX"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"404":{"$ref":"#/components/responses/Yok"}}}},"/api/v1/oturumlar":{"get":{"tags":["Oturumlar"],"summary":"List sessions","description":"Latest candidate sessions (newest first). Contains personal data.\n\nRequired scope: `oturum_oku`","x-qproctor-scope":"oturum_oku","operationId":"oturumlar","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"durum","in":"query","schema":{"type":"string","enum":["bitti"]},"description":"Only ended sessions"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OturumOzeti"}},"example":[{"id":"126a3d923d492bd5","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"ended","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":1794903600000,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}]}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"}}}},"/api/v1/oturumlar/{oturum_id}":{"get":{"tags":["Oturumlar"],"summary":"Session report","description":"Risk, event counts, event list (with evidence links) and a signed report link that needs no login.\n\nRequired scope: `oturum_oku`","x-qproctor-scope":"oturum_oku","operationId":"oturum","parameters":[{"name":"oturum_id","in":"path","required":true,"schema":{"type":"string"},"example":"126a3d923d492bd5"}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Oturum"},"example":{"id":"126a3d923d492bd5","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"ended","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":1794903600000,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5","signed_report_url":"https://sandbox.qproctor.com/r/126a3d923d492bd5?k=…","events":[{"t":1794900120000,"offset_ms":120000,"type":"tab_hidden","detail":null,"duration_ms":4200,"source":"client"}]}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"404":{"$ref":"#/components/responses/Yok"}}}},"/api/v1/olaylar/{olay}/ornek":{"get":{"tags":["Webhook"],"summary":"Sample event","description":"A sample webhook body (for field mapping).\n\nRequired scope: `oku`","x-qproctor-scope":"oku","operationId":"olayOrnegi","parameters":[{"name":"olay","in":"path","required":true,"schema":{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookOlayi"}},"example":[{"id":"ornek0000000001","event":"oturum.bitti","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"ended","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":1794903600000,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}]}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"404":{"$ref":"#/components/responses/Yok"}}}},"/api/v1/kancalar":{"get":{"tags":["Webhook"],"summary":"List subscriptions","description":"Webhook subscriptions of your organisation.\n\nRequired scope: `kanca`","x-qproctor-scope":"kanca","operationId":"aboneler","responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Abonelik"}}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"}}},"post":{"tags":["Webhook"],"summary":"Subscribe to events","description":"A signed JSON POST is sent to your address when the events happen. Up to 25 subscriptions per organisation.\n\nRequired scope: `kanca`","x-qproctor-scope":"kanca","operationId":"aboneOl","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboneOlustur"},"example":{"url":"https://hooks.example.com/qproctor","event":["oturum.bitti","risk.yuksek"]}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"}}},"example":{"id":7}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"400":{"$ref":"#/components/responses/Gecersiz"}}}},"/api/v1/kancalar/{abonelik_id}":{"delete":{"tags":["Webhook"],"summary":"Delete a subscription","description":"Removes the subscription.\n\nRequired scope: `kanca`","x-qproctor-scope":"kanca","operationId":"aboneSil","parameters":[{"name":"abonelik_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}},"example":{"ok":true}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"404":{"$ref":"#/components/responses/Yok"}}}},"/api/v1/kancalar/{abonelik_id}/test":{"post":{"tags":["Webhook"],"summary":"Send a test event","description":"Sends a sample event (`test: true`) to the subscription; single attempt, at most 10 per minute.\n\nRequired scope: `kanca`","x-qproctor-scope":"kanca","operationId":"aboneTest","parameters":[{"name":"abonelik_id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]}}},"example":{"event":"oturum.bitti"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboneTestSonucu"},"example":{"durum":200,"basarili":true,"event":"oturum.bitti","delivery_id":"9f2c1a7b3e4d5c6a"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"400":{"$ref":"#/components/responses/Gecersiz"},"404":{"$ref":"#/components/responses/Yok"}}}},"/api/v1/adaylar":{"post":{"tags":["Adaylar"],"summary":"Invite a candidate","description":"Invites a candidate to activation: they upload identity and photos once, then enter with the exam link.\n\nRequired scope: `aday_davet`","x-qproctor-scope":"aday_davet","operationId":"adayDavet","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdayDavet"},"example":{"email":"ayse@example.com","name":"Ayşe Yılmaz","student_no":"20231234"}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key"},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdayDavetSonucu"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"},"429":{"$ref":"#/components/responses/CokFazla"},"400":{"$ref":"#/components/responses/Gecersiz"}}}},"/e/{kod}":{"get":{"tags":["Candidate link"],"operationId":"adaySayfasi","security":[],"summary":"Candidate exam page","description":"Exam entry opened in the browser (system check, identity, proctoring). Not an API; give this link to the candidate.","parameters":[{"name":"kod","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/entegrasyon/qproctor/sonuc/{dis_kimlik}":{"get":{"tags":["Platform integration"],"operationId":"platformSonucu","security":[{"platformImza":[],"platformZaman":[]}],"summary":"Poll a platform result","description":"Fallback polling for exam platforms connected over LTI. Primary path: the result is POSTed to the callback URL in the platform settings. Signature: `x-ai-imza` = hex HMAC-SHA256(callback secret, `x-ai-zaman` + \".\" + path); clock ±5 min.","parameters":[{"name":"dis_kimlik","in":"path","required":true,"schema":{"type":"string","maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformSonucu"}}}},"401":{"$ref":"#/components/responses/Yetkisiz"}}}},"/lti/jwks":{"get":{"tags":["LTI 1.3"],"operationId":"ltiJwks","security":[],"summary":"Tool public keys (JWKS)","responses":{"200":{"description":"JWKS","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/lti/config/canvas.json":{"get":{"tags":["LTI 1.3"],"operationId":"ltiCanvas","security":[],"summary":"Canvas tool configuration","responses":{"200":{"description":"JSON","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/lti/kayit":{"get":{"tags":["LTI 1.3"],"operationId":"ltiDinamikKayit","security":[],"summary":"Dynamic registration (LTI Dynamic Registration)","description":"Paste the registration URL from the panel into your LMS; the LMS calls this with openid_configuration.","parameters":[{"name":"t","in":"query","required":true,"schema":{"type":"string"}},{"name":"openid_configuration","in":"query","schema":{"type":"string","format":"uri"}},{"name":"registration_token","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"HTML","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/lti/login":{"post":{"tags":["LTI 1.3"],"operationId":"ltiGiris","security":[],"summary":"OIDC login initiation","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"iss":{"type":"string"},"login_hint":{"type":"string"},"target_link_uri":{"type":"string"},"lti_message_hint":{"type":"string"},"client_id":{"type":"string"}}}}}},"responses":{"302":{"description":"Redirect to the platform authorisation endpoint"}}}},"/lti/launch":{"post":{"tags":["LTI 1.3"],"operationId":"ltiBaslat","security":[],"summary":"Launch (id_token)","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"id_token":{"type":"string"},"state":{"type":"string"}}}}}},"responses":{"200":{"description":"HTML"},"302":{"description":"Redirect to the exam or the panel"}}}}},"webhooks":{"aktivasyon_bekliyor":{"post":{"summary":"aktivasyon.bekliyor","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"aktivasyon.bekliyor","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","candidate_id":"c0ffee12ab34cd56","name":"Ayşe Yılmaz","email":"ayse@example.com","student_no":"20231234","status":"pending_review","org_name":"Örnek Kurum","review_url":"https://sandbox.qproctor.com/app#aktivasyon"}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"aktivasyon_beyan":{"post":{"summary":"aktivasyon.beyan","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"aktivasyon.beyan","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","candidate_id":"c0ffee12ab34cd56","name":"Ayşe Yılmaz","email":"ayse@example.com","student_no":"20231234","status":"active","org_name":"Örnek Kurum","review_url":"https://sandbox.qproctor.com/app#aktivasyon","ai_uyumsuz":true,"nedenler":["yüz, karttaki fotoğrafla eşleşmedi"]}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"el_kaldirdi":{"post":{"summary":"el.kaldirdi","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"el.kaldirdi","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"active","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":null,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5","hand_raised_at":1794901800000,"hand_reason":"teknik","hand_note":"Kamera donuyor"}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"oturum_basladi":{"post":{"summary":"oturum.basladi","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"oturum.basladi","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"active","risk":0,"risk_level":"low","counts":{},"started_at":1794900000000,"ended_at":null,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"oturum_bitti":{"post":{"summary":"oturum.bitti","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"oturum.bitti","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"ended","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":1794903600000,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"risk_yuksek":{"post":{"summary":"risk.yuksek","description":"Sent to your subscription URL. Non-2xx is retried after 5 s and 30 s; 410 deletes the subscription; 20 consecutive failures disable it.","parameters":[{"name":"X-QProctor-Event","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Delivery","in":"header","schema":{"type":"string"},"required":true},{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOlayi"},"example":{"id":"ornek0000000001","event":"risk.yuksek","created_at":1794903600000,"org_id":"a1b2c3d4e5f6","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"active","risk":31,"risk_level":"high","counts":{"phone_detected":3,"tab_hidden":4},"started_at":1794900000000,"ended_at":null,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}}}},"responses":{"2XX":{"description":"Received"},"410":{"description":"Delete the subscription"}}}},"examResult":{"post":{"summary":"Exam result webhook (settings.result_webhook)","description":"When a session ends, its summary is sent to the address in the exam settings (same signature headers).","parameters":[{"name":"X-QProctor-Timestamp","in":"header","schema":{"type":"string"},"required":true,"description":"Unix seconds"},{"name":"X-QProctor-Signature","in":"header","schema":{"type":"string"},"required":true,"description":"`t=<timestamp>,v1=<hex HMAC-SHA256(webhook secret, \"<timestamp>.\" + raw body)>` — reject timestamps older than 5 min"},{"name":"X-Proctor-Signature","in":"header","schema":{"type":"string"},"description":"Legacy `sha256=<hex HMAC(secret, body)>` (backwards compatible; no timestamp)"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OturumOzeti"},"example":{"id":"126a3d923d492bd5","session_id":"126a3d923d492bd5","exam_code":"DEMO101","external_user_id":"lms-kullanici-42","identity_source":"form","name":"Ayşe Yılmaz","student_no":"20231234","email":"ayse@example.com","status":"ended","risk":12,"risk_level":"medium","counts":{"tab_hidden":2},"started_at":1794900000000,"ended_at":1794903600000,"report_url":"https://sandbox.qproctor.com/app/session/126a3d923d492bd5"}}}},"responses":{"2XX":{"description":"OK"}}}}},"components":{"schemas":{"Hata":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"]},"Ben":{"type":"object","properties":{"org_id":{"type":"string"},"kurum":{"type":"string","description":"Organisation name"},"anahtar":{"type":"string","description":"Key label"},"olaylar":{"type":"object","additionalProperties":{"type":"string"}},"yetkiler":{"type":"array","items":{"type":"string","enum":["aday_davet","kanca","oku","oturum_oku","sinav_yaz"]}},"son_gecerlilik":{"type":["integer","null"],"description":"Expiry (epoch ms)"},"ortam":{"type":"string","enum":["canli","test"]}}},"SinavKisa":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"title":{"type":"string"},"exam_url":{"type":"string","format":"uri"}}},"Sinav":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["external","native"]},"duration_min":{"type":"integer"},"url":{"type":["string","null"],"format":"uri"},"proctoring_mode":{"type":"string","enum":["automated","live","live_ai","record"]},"opens_at":{"type":["string","null"]},"closes_at":{"type":["string","null"]},"archived":{"type":"boolean"},"created_at":{"type":"integer"},"exam_url":{"type":"string","format":"uri","description":"Link you give to the candidate"}}},"SinavAyarlari":{"type":"object","additionalProperties":true,"description":"Proctoring settings. Omitted fields keep their defaults; features outside your plan stay off.","properties":{"ai_proctoring":{"type":"boolean","default":true},"live_proctoring":{"type":"boolean","default":false},"require_camera":{"type":"boolean","default":true},"require_microphone":{"type":"boolean","default":true},"require_screen":{"type":"boolean","default":true},"require_fullscreen":{"type":"boolean","default":true},"require_selfie":{"type":"boolean","default":true},"require_id_photo":{"type":"boolean","default":false},"require_room_scan":{"type":"boolean","default":false},"require_second_camera":{"type":"boolean","default":false},"detect_tab_switch":{"type":"boolean","default":true},"max_attempts":{"type":"integer","minimum":0,"maximum":20,"default":1},"opens_at":{"type":"string","description":"ISO 8601"},"closes_at":{"type":"string","description":"ISO 8601"},"identity_fields":{"type":"array","items":{"type":"string","enum":["name","student_no","email"]}},"delivery":{"type":"string","enum":["web","extension","desktop"],"default":"web"},"result_webhook":{"type":"string","format":"uri","description":"HTTPS address that receives the result when a session ends (see webhooks › examResult)"},"retention_days":{"type":"integer","minimum":1}}},"SinavOlustur":{"type":"object","required":["title"],"properties":{"title":{"type":"string","maxLength":200},"duration_min":{"type":"integer","minimum":1,"default":60},"type":{"type":"string","enum":["external","native"],"default":"external","description":"external: the exam lives in your system (url required); native: questions hosted by QProctor"},"url":{"type":"string","format":"uri","description":"Address of the external exam"},"description":{"type":"string","maxLength":2000},"rules":{"type":"array","items":{"type":"string"},"maxItems":20},"settings":{"$ref":"#/components/schemas/SinavAyarlari"}}},"OturumOzeti":{"type":"object","properties":{"id":{"type":"string"},"session_id":{"type":"string"},"exam_code":{"type":"string"},"external_user_id":{"type":["string","null"],"description":"User id in your system (LTI / platform)"},"identity_source":{"type":"string"},"name":{"type":["string","null"]},"student_no":{"type":["string","null"]},"email":{"type":["string","null"]},"status":{"type":"string","enum":["waiting","active","ended","terminated"]},"risk":{"type":"integer"},"risk_level":{"type":"string","enum":["low","medium","high"]},"counts":{"type":"object","additionalProperties":{"type":"integer"}},"started_at":{"type":["integer","null"]},"ended_at":{"type":["integer","null"]},"report_url":{"type":"string","format":"uri","description":"Report in the panel (login required)"},"note":{"type":"string"}}},"OturumOlayi":{"type":"object","properties":{"t":{"type":"integer"},"offset_ms":{"type":"integer"},"type":{"type":"string"},"detail":{"type":["string","null"]},"duration_ms":{"type":["integer","null"]},"source":{"type":["string","null"]},"evidence_url":{"type":"string","format":"uri"}}},"Oturum":{"allOf":[{"$ref":"#/components/schemas/OturumOzeti"},{"type":"object","properties":{"signed_report_url":{"type":"string","format":"uri","description":"Signed report link that needs no login; share only with authorised people"},"events":{"type":"array","items":{"$ref":"#/components/schemas/OturumOlayi"}}}}]},"Abonelik":{"type":"object","properties":{"id":{"type":"integer"},"url":{"type":"string","format":"uri"},"olaylar":{"type":"array","items":{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]}},"kaynak":{"type":"string","enum":["panel","api"]},"aciklama":{"type":"string"},"aktif":{"type":"boolean"},"created_at":{"type":"integer"},"son_at":{"type":["integer","null"]},"son_durum":{"type":["integer","null"],"description":"HTTP status of the last delivery (0 = no connection)"}}},"AboneOlustur":{"type":"object","required":["url","event"],"properties":{"url":{"type":"string","format":"uri","description":"HTTPS on port 443/8443, publicly reachable. Private networks, localhost and cloud metadata addresses are rejected."},"event":{"oneOf":[{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]},{"type":"array","items":{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]}}]},"aciklama":{"type":"string","maxLength":200}},"description":"Zapier REST Hooks names are accepted too: hookUrl / target_url, olay."},"AboneTestSonucu":{"type":"object","properties":{"durum":{"type":"integer"},"basarili":{"type":"boolean"},"event":{"type":"string"},"delivery_id":{"type":"string"}}},"AdayDavet":{"type":"object","required":["email","name"],"properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"},"student_no":{"type":"string"},"phone":{"type":"string"},"gonder":{"type":"boolean","default":true,"description":"Send the invitation e-mail (never sent in the sandbox; shows in the console instead)"}}},"AdayDavetSonucu":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"yeni":{"type":"boolean"},"davet_linki":{"type":"string","format":"uri"},"davet_gonderildi":{"type":"boolean"}}},"WebhookOlayi":{"type":"object","required":["id","event","created_at","org_id"],"properties":{"id":{"type":"string","description":"Delivery id (same as X-QProctor-Delivery); use it to de-duplicate"},"event":{"type":"string","enum":["aktivasyon.bekliyor","aktivasyon.beyan","el.kaldirdi","oturum.basladi","oturum.bitti","risk.yuksek"]},"created_at":{"type":"integer"},"org_id":{"type":"string"},"test":{"type":"boolean"}},"additionalProperties":true},"PlatformSonucu":{"type":"object","properties":{"durum":{"type":"string","enum":["isleniyor","tamam"]},"sonuc":{"type":"object","properties":{"riskSkoru":{"type":"integer"},"ozet":{"type":"string"},"olaylar":{"type":"array","items":{"type":"object","properties":{"zamanMs":{"type":"integer"},"tur":{"type":"string"},"guven":{"type":"number"},"kanitUrl":{"type":"string","format":"uri"}}}},"kimlik":{"type":"object","properties":{"yontem":{"type":"string","enum":["ai","gozetmen","beyan"]},"not":{"type":"string"}}}}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"qp_test_… / qp_live_…"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"platformImza":{"type":"apiKey","in":"header","name":"x-ai-imza"},"platformZaman":{"type":"apiKey","in":"header","name":"x-ai-zaman"}},"responses":{"Yetkisiz":{"description":"Missing, invalid, revoked or wrong-environment key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hata"},"example":{"detail":"Geçersiz ya da iptal edilmiş API anahtarı"}}}},"Yasak":{"description":"The key lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hata"}}}},"Yok":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hata"}}}},"Gecersiz":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hata"}}}},"CokFazla":{"description":"Rate limit exceeded","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hata"}}}}}}}