Skip to the page

Reference

API reference

Every route the Lymi API serves, one page per resource. The pages render the OpenAPI document from the running server, so they never fall behind the code.

Base URL
https://my.lymi.app

Send your key in an x-api-key header; Authentication covers scopes and errors. Each route’s request assumes LYMI_KEY is set in your shell; replace anything in braces with a real id.

Resources

Content

Review

Sharing and publishing

Moving cards

Account

Conventions

Ids
A 19-character string that sorts by the time it was made.
Timestamps
ISO 8601 strings in UTC.
Duplicates
Adding a term that already exists in the same language is skipped and reported, never rejected, so re-running a call is safe.
Removal
Cards, decks and sections are archived and can be restored. Only deleting a series cannot be undone.

Errors

A failed call answers with a status and an Error body. Three statuses can come from any route, so the resource pages list only the ones a route adds.

401
No session, API key or token, or one that is not valid.
403
A read key on a write, or a key or token on a route only the learner's own session may call.
429
The key is over its rate limit. Retry-After gives the seconds to wait.
Esc