Skip to content
Developers & integrations

Create sessions from your backend

Map assignment, student and attempt identifiers before passing a session token to the SDK.

Guide reviewed:

Prepare stable identifiers

The backend guide requires assignment and student objects. Use stable external_id values for the exam and participant. The guide states that reusing the same assignment.external_id and student.external_id updates the existing record rather than creating another one.

Assemble the request

  1. Set assignment.external_id, assignment.name and assignment.settings.

  2. Set student.external_id and student.name; student.email is recommended where appropriate.

  3. Specify application as browser, desktop or tray for the required delivery mode.

  4. Use session_data.external_id when you need your own identifier for the specific attempt.

  5. Include the agreed proctoring_settings and optional webhook settings under assignment.settings.

Handle the response

Pass external_session.token to the frontend SDK. Keep report_url for authorised access from your manager or instructor interface. Match responses to the correct assignment and participant before continuing.

Before production use

Confirm the authenticated endpoint and credential scope for your deployment with the technical team. Keep API credentials out of client code and public logs. Test repeated requests and the mapping of attempt identifiers; do not assume assignment-level reuse means an attempt has already been completed.

Official instructions

YOUR NEXT STEP

Still need help?

Reach the right team for your question.

A technical problem

For the camera, microphone, app or equipment check, open support chat inside TrustExam when available in your session. If you cannot sign in, use the contact in your invitation.

Open TrustExam

Access, schedule or results

Contact your exam organiser using the details in your invitation. They handle assignment access and timing, grades, retakes, appeals and individual arrangements.

What to check before contacting them
What to include in a support message
  • Exam name and the step where the problem occurred.
  • The time and your time zone.
  • Exact error text, operating system, and browser or app version.
  • Checks already tried; an error screenshot without exam questions or unnecessary personal data.

Do not include passwords, sign-in codes or identity documents in an ordinary message. Use the exam’s designated identity-check step for documents.