Skip to content

Check a key

GET
/organisation
curl --request GET \
--url https://api-language-test.lernexa.com/api/v1/organisation \
--header 'Authorization: Bearer <token>'

Whose key this is. A first call to check a key works. Safe to repeat.

The key’s school.

Media typeapplication/json

The school a key belongs to.

object
id
required

Your school’s id.

string format: uuid
name
required

Your school’s name.

string

Example

{
"name": "Your School"
}

No key, an unknown key or a revoked key.

Media typeapplication/json
object
error
required

What went wrong, in a sentence.

string

Example generated

{
"error": "example"
}

Too many requests: 600 a minute per key, 1,200 a minute from one address. Wait a minute.

Media typeapplication/json
object
error
required

What went wrong, in a sentence.

string

Example generated

{
"error": "example"
}