Get a test by its external id
const url = 'https://api-language-test.lernexa.com/api/v1/tests/006Qy00000A1b2CIAR-S1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-language-test.lernexa.com/api/v1/tests/006Qy00000A1b2CIAR-S1 \ --header 'Authorization: Bearer <token>'The test with this externalId in your school, with its result once completed. Safe to repeat.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The externalId you gave the test, encoded for a URL.
Example
006Qy00000A1b2CIAR-S1Responses
Section titled “Responses”The test.
A test, with its result once completed.
object
Your own id for the sitting, if you gave one.
The language tested.
The candidate’s own language.
The sections the test covers.
Invited until the candidate starts, in progress until every section is done, then completed.
The test’s page in the staff app.
What a completed test found, and what staff decided.
object
The level to record, at most 20 characters: the placement, else the overall level, else “Not enough evidence”.
Each section the test covered, with its level.
Example
{ "language": "English", "interfaceLanguage": "English", "skills": [ "Use of language" ], "status": "invited", "result": { "overall": { "level": "A1", "band": "Low", "text": "B1 High" }, "placement": { "level": "A1", "band": "Low", "text": "B1 High" }, "levelText": "B1 High", "sections": [ { "skill": "Use of language", "level": { "level": "A1", "band": "Low", "text": "B1 High" } } ] }}No key, an unknown key or a revoked key.
object
What went wrong, in a sentence.
Example generated
{ "error": "example"}No test with this externalId in your school.
object
What went wrong, in a sentence.
Example generated
{ "error": "example"}Too many requests: 600 a minute per key, 1,200 a minute from one address. Wait a minute.
object
What went wrong, in a sentence.
Example generated
{ "error": "example"}