API reference
Search
Search across items, people and transcripts; type-ahead suggestions.
Paths are relative to /api/v1 on your server.
/search#Search items, people and transcripts
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
q required | query | string | |
types | query | string | |
limit | query | integer | |
include | query | string |
- 200Success.
application/json·SearchResponse - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:view, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
/search/concepts#Search transcripts by meaning
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
q required | query | string | |
courseId | query | string (uuid) | |
limit | query | integer |
- 200Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:view, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
/search/suggest#Type-ahead suggestions
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
q required | query | string | |
limit | query | integer |
- 200Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:view, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
/search/transcripts#Search transcripts
- Authorisation
- Bearer token or API key · Session cookie
| Parameter | In | Type | Description |
|---|---|---|---|
q required | query | string | |
courseId | query | string (uuid) | |
limit | query | integer | |
offset | query | integer |
- 200Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.application/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:view, or the library, label, age or schedule scope refuses it.application/json·ErrorEnvelope
/voice/transcribe#What was said, heard on this server
The body is a recording (audio/webm or audio/ogg with Opus, audio/mp4, audio/wav; 2 MB at most, the first 15 seconds heard), as a browser makes it. It is heard by a local speech model (Whisper base, fetched from the Hugging Face Hub the first time and kept under the metadata folder), in language when given (ISO 639-1), else whichever it hears. Nothing said leaves the server. text is empty when nothing was heard. One recording is heard at a time, a few waiting; more is RATE_LIMITED.
- Authorisation
- Bearer token or API key · Session cookie
- Body
audio/*·
| Parameter | In | Type | Description |
|---|---|---|---|
language | query | string |
- 200Success.
application/json·object - 400
VALIDATION_FAILED: the request did not match the schema;details.issueslists what.VALIDATION_FAILED: the body is empty or isn’t a recording FFmpeg can readapplication/json·ErrorEnvelope - 401
UNAUTHENTICATED: no session, or the access token expired.application/json·ErrorEnvelope - 403
FORBIDDEN: the account lackslibrary:view, or the library, label, age or schedule scope refuses it.FORBIDDEN:search.voiceis offapplication/json·ErrorEnvelope - 413
PAYLOAD_TOO_LARGE: it is over 2 MBapplication/json·ErrorEnvelope - 429
RATE_LIMITED: more than four recordings are waitingapplication/json·ErrorEnvelope - 502
PROVIDER_UNAVAILABLE: the speech model isn’t here and couldn’t be fetchedapplication/json·ErrorEnvelope
No endpoint here matches. Try another word, or look in another area.