Skip to content

Language Test API

View as Markdown

The Lernexa Language Test is an adaptive placement test. A candidate takes it from a link in about 20 minutes and gets a CEFR level with a sub-band, such as B1 High, overall and for each section. Your staff see every result in the staff app at language-test.lernexa.com. For what the test covers and how schools use it, see the Language Test page.

The API lets your own systems do what your staff do by hand:

  1. Create a test for a candidate when your CRM says they need one, and get the link to send them, or let the Language Test email it.
  2. Hear when it is completed through a webhook, with the level ready to store.
  3. Look a test up at any time by your own id for it.
Your system Language Test
─────────── ─────────────
POST /tests {name, email, …} ───▶ creates the test
◀─────────────────── 201 {url, status: "invited", …}
send the url to the candidate
the candidate takes the test
◀─────────────────── webhook {event: "test.completed", test: {result: …}}
store result.levelText
  • Base URL: https://api-language-test.lernexa.com/api/v1
  • Authentication: an API key from the staff app, sent as Authorization: Bearer <key>. See Authentication.
  • Format: JSON in and out. Times are ISO 8601 in UTC.
  • Versioning: a change that would break your integration comes as /api/v2, beside /api/v1.
  • OpenAPI 3.1: /api/v1/openapi.json, no key needed. It is made from the same schemas the API validates with.