# Language Test API

> Create placement tests from your own systems, read the results and hear when tests are completed.

Source: https://lernexa.com/docs/developers/language-test

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](https://language-test.lernexa.com). For what the test covers and how
schools use it, see the [Language Test page](https://lernexa.com/language-test).

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.

```text
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
```

## The basics

- **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](https://lernexa.com/docs/developers/language-test/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`](https://api-language-test.lernexa.com/api/v1/openapi.json),
  no key needed. It is made from the same schemas the API validates with.

## Next

- [Getting started](https://lernexa.com/docs/developers/language-test/getting-started)
- [Creating tests](https://lernexa.com/docs/developers/language-test/creating-tests)
- [Reading results](https://lernexa.com/docs/developers/language-test/results)
- [Webhooks](https://lernexa.com/docs/developers/language-test/webhooks)
