Exam Room Allocation (VN) API

Allocate candidates to exam rooms: candidate numbers in Vietnamese alphabetical order by given name, seats, mixed classes, posted lists as XLSX.

POSThttps://apibox.io.vn/v1/vn-exam-rooms

Send the candidate list as students (JSON array, CSV text or an uploaded CSV / XLSX file; Vietnamese headers such as ho_ten, lop, ngay_sinh are recognised) and the rooms (rooms as a number or [{ name, capacity }], or just capacity, default 24). Candidates are ordered like Vietnamese class lists – by given name, then family and middle names, with the Vietnamese collation of /v1/vn-sort (An < Anh < Ánh < Bình, đ after d) – or by order=class, random (reproducible with seed) or given.

Candidate numbers (sbd_prefix, sbd_start, sbd_digits) follow that order; rooms are filled to capacity (fill=sequential) or evenly (balanced), and interleave_classes=true seats neighbours from different classes. Extra columns (subject, exam code…) are kept on each candidate.

format=xlsx gives the master list plus one sheet per room to post on the door and use as the signature sheet (sheets, exam code, signature, invigilators). Nothing is stored.

Markdown · OpenAPI · Postman · llms.txt

Parameters

NameInTypeRequiredDefault
studentsbodyarrayyesCandidates: JSON [{ ho_ten, lop, ngay_sinh, … }], CSV text, or file (CSV / XLSX).
filebodyfilenoCSV or XLSX list (multipart).
roomsbodyarraynoNumber of rooms or [{ name, capacity }].
capacitybodynumberno24Seats per room.
orderbodystringnonamename, class, random (+ seed) or given.
sbd_prefixbodystringnoCandidate-number prefix; sbd_start (1), sbd_digits.
fillbodystringnosequentialsequential or balanced; interleave_classes=true to mix classes.
formatbodystringnojsonjson or xlsx (with exam, school).

Example

curl -X POST "https://apibox.io.vn/v1/vn-exam-rooms" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"students":[{"ho_ten":"Nguyễn Văn Bình","lop":"9A"},{"ho_ten":"Trần Thị An","lop":"9B"},{"ho_ten":"Lê Văn Đức","lop":"9A"}],"capacity":2,"sbd_prefix":"HK1-"}'

Response

{
  "count": 3,
  "rooms": [
    {
      "room": "Phòng 01",
      "capacity": 2,
      "candidates": 2,
      "sbd_from": "HK1-001",
      "sbd_to": "HK1-002"
    },
    {
      "room": "Phòng 02",
      "capacity": 2,
      "candidates": 1,
      "sbd_from": "HK1-003",
      "sbd_to": "HK1-003"
    }
  ],
  "order": "name",
  "fill": "sequential",
  "interleave_classes": false,
  "candidates": [
    {
      "sbd": "HK1-001",
      "name": "Trần Thị An",
      "class": "9B",
      "dob": null,
      "room": "Phòng 01",
      "seat": 1
    },
    {
      "sbd": "HK1-002",
      "name": "Nguyễn Văn Bình",
      "class": "9A",
      "dob": null,
      "room": "Phòng 01",
      "seat": 2
    },
    {
      "sbd": "HK1-003",
      "name": "Lê Văn Đức",
      "class": "9A",
      "dob": null,
      "room": "Phòng 02",
      "seat": 1
    }
  ],
  "privacy": "Nothing you send is stored."
}

Use cases

  • Prepare rooms and candidate numbers for the term exams
  • Run internal company tests with mixed departments per room
  • Generate the door lists and signature sheets as Excel
  • Number candidates of a mock exam at a tutoring centre

FAQ

How are Vietnamese names sorted?

By given name first (the last word), then family and middle names, letter by letter in the Vietnamese alphabet with tone order ngang, huyền, hỏi, ngã, sắc, nặng.

Can I keep the same random order next time?

Yes: order=random with the same seed always gives the same order.

Is there a PDF admission card?

Not yet: use the XLSX sheets, or fill a card template with /v1/docx-template.

Related APIs

Start with 1,000 free requests every month. Get free API key →