Skip to content

Getting started

View as Markdown

You need a staff account on the Language Test. Your school’s admin can add you from the Users page.

In the staff app, open Integrations and press Create a key. Name it after what will use it, such as Zapier or CRM sync, and copy the key the dialog shows. It starts with ltk_ and is shown only once.

Terminal
export LERNEXA_KEY=ltk_…
curl https://api-language-test.lernexa.com/api/v1/organisation \
-H "Authorization: Bearer $LERNEXA_KEY"
200 OK
{ "id": "8d3f1c2e-6b4a-4f0e-9a51-2c7d0e9b1f34", "name": "Your School" }
Terminal
curl https://api-language-test.lernexa.com/api/v1/tests \
-H "Authorization: Bearer $LERNEXA_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Torres",
"email": "ana@example.com",
"language": "French",
"externalId": "booking-1042",
"sendEmail": false
}'

The answer is the test, with the candidate’s link in url:

201 Created
{
"id": "5c0e7a52-0b2f-4a37-9a1e-3b1d7c2f9e10",
"externalId": "booking-1042",
"name": "Ana Torres",
"email": "ana@example.com",
"language": "French",
"interfaceLanguage": "English",
"skills": ["Use of language", "Reading", "Listening"],
"status": "invited",
"url": "https://language-test.lernexa.com/t/La1MQ-W6bBQgwR_PciQXKjv8N4bYGKZk",
"staffUrl": "https://language-test.lernexa.com/tests/5c0e7a52-0b2f-4a37-9a1e-3b1d7c2f9e10",
"createdAt": "2026-10-29T09:00:00.000Z",
"openedAt": null,
"completedAt": null,
"result": null
}

With sendEmail: false nobody is emailed: send the url to the candidate yourself. Leave it out and the candidate gets an invitation from your school.

The test also appears in the staff app’s Tests list, created by your key’s name.

Once the candidate finishes, look the test up by the id you gave it:

Terminal
curl https://api-language-test.lernexa.com/api/v1/tests/booking-1042 \
-H "Authorization: Bearer $LERNEXA_KEY"

status is now completed, and result.levelText holds the level to record, such as B1 High. Rather than asking again and again, set up a webhook and be told.