REST API reference

Every op, its input schema and a curl example, generated from the ops registry.

Every action in Glossa is an op. Call one with POST https://getglossa.dev/api/v1/{op} and its input as a JSON body. Read-only ops also answer GET with the input as URL-encoded JSON in ?input=. This page is generated from the same registry that serves the API, so it lists exactly what the API accepts.

  • Auth: Authorization: Bearer gls_… (or X-Api-Key). With an OAuth token, pick a workspace with X-Glossa-Workspace: <slug>.
  • Errors are RFC 9457 application/problem+json with a code and request_id: see Errors.
  • Machine-readable: OpenAPI 3.1, the op catalog and llms-full.txt.
Your first call
curl -X POST https://getglossa.dev/api/v1/get_stats \  -H "Authorization: Bearer gls_…"

All ops

Workspace

Settings, stats and the activity log.

Get workspace · POST /api/v1/get_workspace or GET …?input=

The workspace this credential belongs to: name, source locale, the product context every AI prompt starts with, and merge_policy (how strings shared by several keys are reviewed). Call first to orient yourself.

curl -X POST https://getglossa.dev/api/v1/get_workspace \  -H "Authorization: Bearer gls_…"

update_workspace

writeowner or admin

Update workspace · POST /api/v1/update_workspace

Change the workspace name, source locale, product context or merge_policy. The product context (what the app is, who uses it, tone) is prepended to every translation and audit prompt, so a good one improves every translation. merge_policy decides what happens when a pushed key has the same English as strings elsewhere: exceptions (default) accepts clearly safe merges (format-only strings, never-translated terms, full sentences, keys whose code context shows the same UI role) and opens a merge_review only for suspected conflicts (different comments, different UI roles, an ambiguous short label like "Charge" or "Pending"), naming the keys that conflict; review_all asks about every shared string whose comments differ or short label is shared across projects; context_required keeps a key on its own string unless the merge is clearly safe or set_key_context shows the same UI role on both sides. Run recheck_merge_reviews after changing it.

curl -X POST https://getglossa.dev/api/v1/update_workspace \  -H "Authorization: Bearer gls_…"

Get stats · POST /api/v1/get_stats or GET …?input=

Counts across the workspace (projects, units, keys, open tasks) and per-locale translation coverage per project.

curl -X POST https://getglossa.dev/api/v1/get_stats \  -H "Authorization: Bearer gls_…"

List activity · POST /api/v1/list_activity or GET …?input=

Who changed what, from which surface (dashboard, api, mcp, cli, ai), newest first.

curl -X POST https://getglossa.dev/api/v1/list_activity \  -H "Authorization: Bearer gls_…"

Acquisition by channel (staff) · POST /api/v1/get_referral_stats or GET …?input=

Glossa team only. Signups (personal workspaces) and paying people by first-touch channel (docs/attribution.md): `ref:<slug>` for our own tagged links and `ref:translated-by` for "Translated by Glossa" badges, `utm:<source>/<medium>`, `ai`, `search`, `social`, `referral:<host>`, `direct` (arrived with no referrer, ref or utm) or `unknown` (DNT/GPC, sign-in finished on another device, or before attribution). Returns `channels` (signups, signups_since within the last `days`, paying now, ever_paid), `kinds` (the same summed per bucket), `projects` (signups per badge project) and `sources` (the older per ref/utm rows). Reads every workspace (the only cross-workspace read besides the feedback board), returns counts only, never workspace names.

curl -X POST https://getglossa.dev/api/v1/get_referral_stats \  -H "Authorization: Bearer gls_…"

Get my profile · POST /api/v1/get_profile or GET …?input=

Your own settings, the same in every workspace: `locale`, the language the dashboard and every email to you are written in (one of en, es, de, fr, ja, pt-BR), or null when you never chose one (the dashboard then follows the browser, emails are English). With an API key, the key creator's profile.

curl -X POST https://getglossa.dev/api/v1/get_profile \  -H "Authorization: Bearer gls_…"

Update my profile · POST /api/v1/update_profile

Changes your own settings: `locale` (en, es, de, fr, ja, pt-BR) is the language of the dashboard and of every email Glossa sends you; null forgets it. The dashboard's language picker calls this. Returns the profile.

curl -X POST https://getglossa.dev/api/v1/update_profile \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locale":"en"}'

Projects

Apps or repos, each with its source and target locales.

List projects · POST /api/v1/list_projects or GET …?input=

Every project (app) in the workspace you can see, with its target locales, translation_mode (ai or agent), visibility (org or restricted) and your access (read, write or admin). Strings are shared across projects; files belong to one.

curl -X POST https://getglossa.dev/api/v1/list_projects \  -H "Authorization: Bearer gls_…"

Create project · POST /api/v1/create_project

Add a project (one app, site or service) with the locales it ships in and who translates it (translation_mode: ai by default, or agent to have an agent fill translations from the codebase). A project that is a different product from the rest of the workspace sets its own product_context (and inherit_glossary / inherit_rules false to leave the workspace's vocabulary out). Push files to it with push_file.

curl -X POST https://getglossa.dev/api/v1/create_project \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"name":"CI"}'

Update project · POST /api/v1/update_project

Change a project's name, description, product_context (replaces the workspace's context for its strings; null goes back to the workspace's), inherit_glossary, inherit_rules, unit_pool (which projects share its strings and translations), target locales, locale aliases, translation_mode or retranslate_stale. Context changes apply to translations made from then on; retranslate existing ones with translate. In ai mode, adding a locale (or switching from agent to ai) queues AI translation of every missing string; in agent mode nothing is queued and list_missing_translations shows the work. locale_aliases replaces the whole map; push files again for it to apply to them.

curl -X POST https://getglossa.dev/api/v1/update_project \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Files

Push translation files in, pull any locale back out.

List files · POST /api/v1/list_files or GET …?input=

Files of a project. `path` is a pattern: `{locale}` (or `{android_locale}`) stands for each locale's copy, so one row covers en.json, es.json, …; a gettext template (po/messages.pot) is the source and each locale's copy is a .po beside it (po/de.po, po/pt_BR.po). `localization` is translate (strings shared and retranslated when the source changes) or adapt (each locale written for its market; see set_file_localization). `source_edited_at` is set when set_source_text changed the source in Glossa and the repo's copy has not been pushed since: pull the file in `source_locale` too.

curl -X POST https://getglossa.dev/api/v1/list_files \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Push file · POST /api/v1/push_file

Upload a translation file in any format (JSON, YAML, xcstrings, .strings, stringsdict, strings.xml, PO, XLIFF, ARB, properties, RESX, CSV, plain text or Markdown read as one string per file, or one Glossa learned). A source-locale file creates or updates keys and dedupes their strings into shared units across every project; another locale's file imports its translations. A key missing from a pushed source file is removed (removed_keys lists them, keys.removed counts them): pull_file no longer writes it to any locale file, its unit and translations stay (a key renamed to the same text keeps them), and a target file that still holds it never brings it back (keys_ignored). New strings are queued for AI translation when the project's translation_mode is ai (unless translate is false: then they wait for a translate call, so code context can be recorded first); in agent mode they wait for list_missing_translations. A source string whose text changed meaning is stale: it is translated again (or, with the project's retranslate_stale off, keeps its old translation as needs_review), and a target file still holding the old translation is not imported onto the new text; `stale` in the result counts both. A format nobody can read yet starts a learn_format job instead. A file its format recognizes but finds syntax errors in (broken JSON, an unclosed XML tag, an unterminated string) is rejected whole with 422 unreadable_file, `errors` listing each problem by line: nothing is imported or removed. Files with localization adapt (fastlane store listings by default, or `localization: "adapt"`) keep every locale's own text when the source changes: `adapted` in the result counts the translations now behind the source (get_file_strings, propagate_source_change). A store URL or category file is skipped (status skipped).

curl -X POST https://getglossa.dev/api/v1/push_file \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","path":"locales/en.json"}'

Pull file · POST /api/v1/pull_file or GET …?input=

Render one locale of a file in its own format, ready to write to disk. Returns {path, content}, or {path, content_brotli} (base64 brotli) with compress: true, for files over the 4.5 MB response cap. With validate: true each translation is checked before it is written (placeholders and ICU plurals against the source, max_length, characters and escaping the format can hold, numbers, prices and URLs the source states); a failing one is left out, so one bad string never breaks the file. Its key keeps its value in `current` (send the locale file as it is on disk) when that passes or fails only max_length (a limit set after it shipped never turns a locale's text into the source), else it is written as `missing` says. The result lists rejected [{key, locale, unit_id, reasons [{code, message}], fallback}], and each rejected string files or refreshes a translation_review task (member role or higher) so the fix comes back through the review queue. Approving that task's text waives the numbers, URL and max_length checks.

curl -X POST https://getglossa.dev/api/v1/pull_file \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","path":"locales/en.json","locale":"es"}'

Check release · POST /api/v1/check_sync or GET …?input=

The release gate: is this commit fully translated, and are its locale files what pull writes now? Send the commit's source files (`sources`, as push would; a file's `sha256` in place of its content stands for Glossa's last push when it matches, so large projects upload nothing for files already pushed, and a mismatch lists the path in `content_required` with failure source_content_required: send those files' content and check again) and the check counts, for exactly the strings in them, how many lack a translation in each target locale (strings marked translatable="false" never count) — strings pushed later from other commits never block it, and strings never pushed fail as unpushed_strings. Without `sources` it checks the source Glossa has. It also renders every locale file pull would write and returns its sha256 (UTF-8, CRLF read as LF) and one `digest` over all of them; send `hashes` (path → sha256 of your copies) and stale or missing files fail the gate. When the commit's source differs from Glossa's last push (another branch pushed later), the files are rendered from the commit's own strings (outputs_from `commit`), so CI can check a pull request without pushing to the shared project. Returns ok, failures [{code, message}], warnings, per-locale counts (strings, translated, reviewed, missing, coverage %), totals, pending translate jobs and every file. Thresholds: max_missing (default 0), min_coverage, require_reviewed, stale (fail|warn|ignore), allow_pending. Read-only; `glossa check` runs it in CI and exits 1 when ok is false.

curl -X POST https://getglossa.dev/api/v1/check_sync \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Set file localization · POST /api/v1/set_file_localization

Choose how a project's files are localized. translate (the default): strings are shared by source text across the workspace and translated again when the source changes. adapt: each locale is written for its own market, like App Store listings, search keywords or marketing pages; every key gets a string of its own, a source change never replaces a locale's text (the locale is marked behind the source instead, see get_file_strings and propagate_source_change), AI only fills locales that have nothing yet, and a target file pushed with a hand edit is imported even over reviewed text. fastlane metadata is adapted by default. Returns each matched file and how many keys moved onto strings of their own.

curl -X POST https://getglossa.dev/api/v1/set_file_localization \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","paths":["locales/en.json"],"localization":"translate"}'

Get file strings · POST /api/v1/get_file_strings or GET …?input=

Every string of one or more files with all its locales side by side: the source text and its length, the store limit (max_length), what the source said before it last changed, and per locale the text, length, status, over_limit and, for adapted files, behind (the locale still holds text written for an older source; written_for is that source). Without paths: every adapted file of the project, e.g. the whole App Store listing. Use it before editing listings or keywords, to work on all locales with the full picture; then set_source_text, submit_translations (overwrite all) or propagate_source_change. only_behind narrows to strings with a locale behind.

curl -X POST https://getglossa.dev/api/v1/get_file_strings \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Formats

Detect, list and teach file formats.

Detect format · POST /api/v1/detect_format or GET …?input=

Which format Glossa would read a file as, with confidence and the runner-up candidates. Doesn't store anything.

curl -X POST https://getglossa.dev/api/v1/detect_format \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"filename":"en.json","content":"{\"home.title\": \"Welcome back\"}"}'

List formats · POST /api/v1/list_formats or GET …?input=

Built-in formats and the templates this workspace has learned, with their status.

curl -X POST https://getglossa.dev/api/v1/list_formats \  -H "Authorization: Bearer gls_…"

Learn format · POST /api/v1/learn_format

Ask the AI to write a template for a file format Glossa can't read yet, from a sample. Runs as a job (see get_job); the learned format is stored and reads every similar file from then on.

curl -X POST https://getglossa.dev/api/v1/learn_format \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","path":"locales/en.json","content":"{\"home.title\": \"Welcome back\"}"}'

Save or retire a format · POST /api/v1/approve_format

Set a learned format's status (active reads files, retired stops). Optionally replace its template; the new template is validated against the stored sample first.

curl -X POST https://getglossa.dev/api/v1/approve_format \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"format":"format"}'

Strings

Deduplicated units, translations, merges and splits.

Set source text · POST /api/v1/set_source_text

Edit source-locale strings in Glossa, as if the edited file had been pushed: e.g. rewrite the English App Store description or keywords from a chat. Each edit names a file (path pattern or the source file's path) and a key. In adapted files every locale keeps its text and is marked behind the new source (then keep, edit or propagate_source_change); in translated files the strings are translated again as on any push. Store limits are enforced (too_long). The repo is not changed: pull the file in the source locale afterwards (`glossa pull` does it for files with source_edited_at), and a push of the old copy fails with source_edited_in_glossa until then. Single-locale formats only.

curl -X POST https://getglossa.dev/api/v1/set_source_text \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","edits":[{"path":"locales/en.json","key":"key","text":"Bienvenido de nuevo"}]}'

Propagate source change · POST /api/v1/propagate_source_change

Settle adapted translations that are behind their source (after a push or set_source_text changed it). action keep: the locale's text stays as it is and counts as up to date (the change doesn't matter for that market). action ai: Claude makes the smallest edit to each locale's text that carries the source change over, keeping the market's own wording and keywords, within max_length; it runs as a job (get_job), uses AI translation credits, writes status machine (needs_review with a task when unsure or over the limit), and never touches a text someone changed meanwhile. To write the new texts yourself, use submit_translations with overwrite all: a new text is up to date by itself. Scope with paths, keys and locales; by default every behind locale of every adapted file. Returns how many translations were kept or queued.

curl -X POST https://getglossa.dev/api/v1/propagate_source_change \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","action":"keep"}'

Preview translation replacements · POST /api/v1/preview_translation_replacements or GET …?input=

Preview a literal, case-sensitive replacement in up to 100 selected units for one locale. Changes message text and plural forms while preserving runtime tokens, ICU branches, and tags. Returns affected keys, before and after values, and validation failures. Save proposals without problems with submit_translations, using updated_at as expected_updated_at and before as expected_before.

curl -X POST https://getglossa.dev/api/v1/preview_translation_replacements \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"units":["6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"],"locale":"es","find":"find","replace":"replace"}'

Search strings · POST /api/v1/search_units or GET …?input=

Full-text and fuzzy search across every source string, key name and translation in the workspace. Use it to find how a term is translated everywhere, spot inconsistencies, or find the unit behind a key.

curl -X POST https://getglossa.dev/api/v1/search_units \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"query":"checkout"}'

List strings · POST /api/v1/list_units or GET …?input=

Page through units (deduplicated source strings) with their translation in one locale. Filter by project and by translation status, e.g. status=missing to find what still needs translating or status=machine to review AI output. To translate missing strings yourself, list_missing_translations returns them with their keys, file paths and glossary.

curl -X POST https://getglossa.dev/api/v1/list_units \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locale":"es"}'

Get string · POST /api/v1/get_unit or GET …?input=

One unit with every key that uses it (across projects and files, each with its code_context and context_quality from set_key_context), all its translations (AI ones with the model's confidence, context_quality and context_note) and their history.

curl -X POST https://getglossa.dev/api/v1/get_unit \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"unit":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Update string context · POST /api/v1/update_unit

Set a unit's description (context for translators and the AI), max length or tags. A good description fixes ambiguous strings in every locale at once; pass retranslate=true to redo its machine translations with the new context.

curl -X POST https://getglossa.dev/api/v1/update_unit \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"unit":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Set translation · POST /api/v1/set_translation

Write or correct a unit's translation in one locale. Every key sharing the unit gets it. Defaults to status reviewed; use approved for final copy. Placeholders must match the source and the text must fit the unit's max_length (too_long). For a plural string (the unit has plural forms) pass plural with every CLDR category the locale needs (es: one, other; ru: one, few, many, other) and text as the other form; without plural it is accepted only in locales with just other (ja, ko, zh…), else 422 plural_required names the categories. For many at once use submit_translations.

curl -X POST https://getglossa.dev/api/v1/set_translation \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"unit":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","locale":"es","text":"Bienvenido de nuevo"}'

List missing translations · POST /api/v1/list_missing_translations or GET …?input=

The worklist for an agent that translates with the codebase in view instead of (or before) AI auto-translation: units still missing a translation in a project's target locales (or the `locales` you pass), each with the locales it lacks, icu_plural_categories for ICU messages (locale → argument → the CLDR categories its plural branches must have there; translate only branch text and keep arguments, # and tags), every key that uses it (key_id, key name, project, file path, file comment, the code_context already recorded with set_key_context, and previous_source_text when the key's source changed and its old translation went stale) so you can find where it appears in the code, its description, placeholders, max length, matching glossary terms and existing translations in other locales. Strings used only by keys marked translatable="false" (Android strings.xml) are never listed: no locale file carries them. The first page also returns the product context, prompt rules and, for a project with stored App Store or Google Play reviews, their count per locale (read them with list_app_reviews when writing store or marketing copy); pass project for one with its own product_context, and the context, glossary and rules are that project's. Translate, then write with submit_translations and call again until total_units is 0. Projects in translation_mode agent rely on this; it works for ai projects too.

curl -X POST https://getglossa.dev/api/v1/list_missing_translations \  -H "Authorization: Bearer gls_…"

List stale translations · POST /api/v1/list_stale_translations or GET …?input=

Keys whose source text changed meaning on a push (a case or placeholder rename does not count), newest first: the key, its file path, the previous and current source text, when it changed, and for each target locale the state of the new text's translation — missing (being translated again, or waiting in list_missing_translations in agent mode), needs_review (the old translation kept for review when the project's retranslate_stale is off) or its status once settled. Keys of adapted files keep their translations when the source changes: a locale still written for the old text has behind: true (settle it with propagate_source_change). pending is true while any locale is missing, needs_review or behind. Use it to check that changed strings are re-translated before a release.

curl -X POST https://getglossa.dev/api/v1/list_stale_translations \  -H "Authorization: Bearer gls_…"

List translations for audit · POST /api/v1/list_translations_for_audit or GET …?input=

The worklist for an agent that audits a locale inline with the codebase in view, instead of run_audit filing queue tasks: existing translations in one locale, most recently changed first, each with its source text, status, origin, every key that uses it (key name, project, file path, file comment) so you can read the call site, its description, placeholders, max length, matching glossary terms and flags for what deserves a look first (placeholder_mismatch, glossary_miss, same_as_source, short_label, fragment, no_context). The first page also returns the product context, the glossary for the locale and the rules that apply (the project's own context, glossary and rules when you pass a project that has them). Fix what is wrong with submit_translations or set_translation; files no tasks. Page with offset until it passes total.

curl -X POST https://getglossa.dev/api/v1/list_translations_for_audit \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locale":"es"}'

Submit translations · POST /api/v1/submit_translations

Write up to 200 translations at once (unit, locale, text), typically the ones list_missing_translations asked for, written by an agent that read the code where each key is used. Each unit's translation is shared by every key that points at it. By default fills missing locales and replaces AI drafts (machine, needs_review) but never reviewed, approved or imported work (overwrite=missing|machine|all). Placeholders must match the source and texts must fit the unit's max_length; items that fail are reported, the rest are written. A new text for an adapted string (store listing, keywords) is up to date with the current source. Items sent with status needs_review also open a translation_review task for a person. Does not use AI translation credits. Returns written, skipped and rejected items.

curl -X POST https://getglossa.dev/api/v1/submit_translations \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"translations":[{"unit":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","locale":"es","text":"Bienvenido de nuevo"}]}'

Review translations · POST /api/v1/review_translations

Mark many translations reviewed, approved or needs_review at once, by unit and locale.

curl -X POST https://getglossa.dev/api/v1/review_translations \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locale":"es","units":["6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"],"status":"reviewed"}'

Translate · POST /api/v1/translate

Queue AI translation. Without units: fills every missing translation of a project (or the whole workspace) in the given locales. With units: (re)translates exactly those, replacing machine output but never reviewed, approved, imported or human translations. Strings used only by keys marked translatable="false" (Android strings.xml) are never translated. Works in either translation_mode; in agent mode prefer translating yourself (list_missing_translations). Bills AI-translated words for strings translated into a locale for the first time: estimate_translation gives the number first. Returns {job_id, held}: held is null, or why the job waits (the workspace's AI budget queues work past its cap; it runs next month or when set_ai_budget makes room).

curl -X POST https://getglossa.dev/api/v1/translate \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locales":["es"]}'

Merge strings · POST /api/v1/merge_units

Point every key of the `merge` units at the `into` unit, so they share one translation per locale. The kept unit's translations win; a merged unit's translation fills a locale the kept unit lacks. The merged units are deleted.

curl -X POST https://getglossa.dev/api/v1/merge_units \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"into":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","merge":["6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"]}'

Split key · POST /api/v1/split_key

Give one key its own unit using that key's source text and placeholder names (copied translations are remapped to match) so it can be translated differently from the other keys that shared the string. Use when the same English means different things in different places. Every translation is copied to the new unit. AI drafts (machine, needs_review from the model) are translated again with the key's own context: a translate job in ai projects (AI translation credits), or retranslate_units in agent projects to translate yourself with submit_translations. Protected copies (imported, reviewed, approved, or written by a person or an agent) are never overwritten by AI, so each gets a translation_review task (reason split) to approve or edit, since its text was written for the other keys. With retranslate: false the AI drafts are kept as copied and get the same review. Returns key, from_unit, new_unit, translations_copied, translate_job_id, retranslate_units (agent projects) and review_tasks (tasks filed now; a copy already in review is not counted twice).

curl -X POST https://getglossa.dev/api/v1/split_key \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"key_id":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Set key context · POST /api/v1/set_key_context

Record where up to 200 keys of one project are used in the source code, written by an agent that read the call sites: usages (path, line and a few lines of code around each), the UI role (button, status, label, title…), the screen and a note on what it means there. Name each key by key_id, or by key (plus path when the name exists in several files). Replaces each key's previous context. The translate prompt reads it from then on, so ambiguous strings ("Charge" the button vs. the fee) are translated for what they are. Each key gets a context_quality: strong (a call site with code plus a role, screen or note), weak (one of the two) or missing. retranslate=true redoes the AI translations (machine, needs_review) of the keys' strings with the new context in ai projects; in agent projects it returns the units for you to translate again with submit_translations. max_length on an item sets a length limit from the code (a meta title, a meta description, a narrow button): the string's unit takes it when it is lower than its limit now. A unit is shared by every key with the same source text, so the tightest limit wins, and a limit is never loosened (a store listing keeps its store limit). Translations then must fit it, like store listings: AI drafts already over it are translated again within it (a translate job in ai projects, using AI translation credits; retranslate_units in agent projects), and reviewed, approved, imported or human translations over it are kept and get a translation_review task. Returns updated and rejected items, and max_length {tightened, retranslate, review_tasks}.

curl -X POST https://getglossa.dev/api/v1/set_key_context \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","keys":[{}]}'

List keys · POST /api/v1/list_keys or GET …?input=

Page through one project's live keys in key order: key_id, key, the translation file path (pattern) and the key's context_quality from set_key_context (null when no code context was recorded). without_context=true lists only keys with no recorded context (null or missing), the worklist for a tool or agent that scans the codebase for call sites and writes them with set_key_context (`glossa context` does). Returns total (all matching keys) and keys; page with offset until it passes total.

curl -X POST https://getglossa.dev/api/v1/list_keys \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

List weak-context translations · POST /api/v1/list_weak_context or GET …?input=

AI translations the model rated as written without enough context to know what the string means (context_quality weak or missing), one entry per string: its source text, description, each key that uses it (key_id, key, project, file path, comment and the code_context already recorded, with its rating) and, per locale, the translation, its status, the model's confidence and context_needed (the question that would settle it, e.g. "Is 'Charge' a button or the fee on the receipt?"). By default only drafts (machine, needs_review); reviewed and approved copy is left out. Find the call sites in the code, then write them with set_key_context (retranslate=true to redo the drafts). Page with offset until it passes total_units.

curl -X POST https://getglossa.dev/api/v1/list_weak_context \  -H "Authorization: Bearer gls_…"

Scan for near-duplicates · POST /api/v1/scan_duplicates

Queue a scan for near-duplicate strings (same meaning, slightly different text) and file merge_suggestion tasks for them.

curl -X POST https://getglossa.dev/api/v1/scan_duplicates \  -H "Authorization: Bearer gls_…"

Review queue

Claim and resolve review tasks.

List review tasks · POST /api/v1/list_tasks or GET …?input=

The review queue, highest priority first. Each task has a kind, a title, a payload with everything needed to decide, and the actions it accepts (merge_review: keep_merged | split; merge_suggestion: merge_into_a | merge_into_b | keep_separate; learn_format: keep | retire | retry_with_hint | dismiss; translation_review: approve | edit | retranslate; audit_finding: apply | edit | dismiss; rule_suggestion: add | edit | dismiss; glossary_suggestion: add | dismiss). A task about one string (payload.unit_id) also lists where it is used: keys [{ project, key, path }] (up to 10) and keys_total. A task about a translation of a plural string has plural { categories, forms, missing }: the CLDR categories its locale needs, the forms stored now and the ones it lacks. A claim expires after 30 minutes: status open includes tasks whose claim expired (claim_tasks hands them out again), and status claimed lists only live claims. locale filters translation_review and audit_finding tasks to one locale; reason filters on payload.reason (translation_review: split, draft_check, pull_validation).

curl -X POST https://getglossa.dev/api/v1/list_tasks \  -H "Authorization: Bearer gls_…"

Claim review tasks · POST /api/v1/claim_tasks

Claim up to `limit` open tasks so parallel agents don't work the same ones. Claims expire after 30 minutes. Agents splitting the queue claim their own slice: `locale` claims only tasks about that locale (translation_review, audit_finding), `reason` only tasks whose payload.reason matches (translation_review: split, draft_check, pull_validation), `ids` only the named tasks (up to 50, e.g. from list_tasks); filters combine with `kind`, and a task someone else holds is never returned. Then decide each and call resolve_task, or resolve_tasks for the whole batch in one call; release_tasks hands back the ones you will not decide. audit_finding and translation_review tasks whose translation or source changed since they were filed, or whose string no locale file carries (its keys are marked translatable="false") or no live key uses any more, are closed as stale instead of returned (counted in stale_closed); a translation that still needs review gets a new open task about its current text. Each task comes with the actions it accepts and, for a translation of a plural string, plural { categories, forms, missing } as list_tasks gives it.

curl -X POST https://getglossa.dev/api/v1/claim_tasks \  -H "Authorization: Bearer gls_…"

Release claimed tasks · POST /api/v1/release_tasks

Hand tasks you claimed with claim_tasks back to the queue now instead of letting the claim expire after 30 minutes, e.g. the ones you could not decide. Only your own live claims are released; tasks claimed by someone else, already open or closed are skipped. Returns { released: [task ids], skipped }.

curl -X POST https://getglossa.dev/api/v1/release_tasks \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"ids":["6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"]}'

Resolve review task · POST /api/v1/resolve_task

Decide a task by naming one of its actions (merge_review: keep_merged | split; merge_suggestion: merge_into_a | merge_into_b | keep_separate; learn_format: keep | retire | retry_with_hint | dismiss; translation_review: approve | edit | retranslate; audit_finding: apply | edit | dismiss; rule_suggestion: add | edit | dismiss; glossary_suggestion: add | dismiss). The action is applied (split, merge, set translation, add rule, …) and the task is closed with your note. Pass text for edit actions (and plural when the unit is plural: the forms you pass replace the stored ones and the other categories the locale needs keep theirs, so the task's plural.missing forms are enough; the result must cover every category the locale needs, else 422 plural_required or plural_incomplete), body for a rule edit, key_ids to choose which keys to split (together: true to give them one shared unit, retranslate: false to split without AI translation), hint for retry_with_hint. apply and approve check the translation first: if it or its source changed since the task was filed, or no locale file carries the string (translatable="false"), nothing is written and the task is closed with action "stale" and the reason in result.stale. A decision that cannot fix the translation is refused and leaves the task open: approve when pull_file keeps the text out of its file for a placeholder, ICU, tag or format problem (409 not_waivable), retranslate when the translation is not an AI draft (409 translation_protected: imported, reviewed, approved and human translations are never overwritten by AI); edit both.

curl -X POST https://getglossa.dev/api/v1/resolve_task \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"task":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","action":"approve"}'

Resolve review tasks in a batch · POST /api/v1/resolve_tasks

Decide 1–50 tasks in one call, e.g. the batch you just claimed with claim_tasks. Each decision takes the same fields as resolve_task (task, action, note, text, body, key_ids, together, retranslate, hint; actions per kind: merge_review: keep_merged | split; merge_suggestion: merge_into_a | merge_into_b | keep_separate; learn_format: keep | retire | retry_with_hint | dismiss; translation_review: approve | edit | retranslate; audit_finding: apply | edit | dismiss; rule_suggestion: add | edit | dismiss; glossary_suggestion: add | dismiss) and is applied exactly as resolve_task applies it, in order. Use it instead of resolve_task whenever you have more than one decision. One failing decision does not stop the others: returns { results: [{ task, ok, action, result } or { task, ok: false, error: { code, message } }], resolved, failed }. Error codes are those of resolve_task (not_found, task_closed, invalid_action, text_required, …); retry only the failed ones.

curl -X POST https://getglossa.dev/api/v1/resolve_tasks \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"decisions":[{"task":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10","action":"approve"}]}'

Recheck merge reviews · POST /api/v1/recheck_merge_reviews

Re-apply the workspace's merge_policy (get_workspace) to every open merge_review. Reviews the policy would not file today are closed as keep_merged with the reason: a format-only string, a never-translated glossary term, a full sentence, keys whose code context (set_key_context) shows the same UI role, or no sign of a conflict under exceptions. Reviews that stay open get conflicting_key_ids (resolve_task split with no key_ids splits only those, leaving the other keys merged), a reason and a priority (3: code context shows different UI roles, 2: comments that describe different things or placeholders with different names, 1: an ambiguous short label). Reviews whose string is no longer shared are closed. dry_run (default true) reports what would happen without writing. Use after changing merge_policy or recording code context.

curl -X POST https://getglossa.dev/api/v1/recheck_merge_reviews \  -H "Authorization: Bearer gls_…"

Glossary

Brand names and fixed terms.

List glossary · POST /api/v1/list_glossary or GET …?input=

Glossary terms: brand and product names that are never translated, and terms with a fixed translation per locale. Every translation prompt includes them.

curl -X POST https://getglossa.dev/api/v1/list_glossary \  -H "Authorization: Bearer gls_…"

Add or update glossary term · POST /api/v1/upsert_glossary_term

Add a term or change it. do_not_translate=true for brand names; translations maps locale → required translation (merged into the existing map).

curl -X POST https://getglossa.dev/api/v1/upsert_glossary_term \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"term":"Glossa"}'

Delete glossary term · POST /api/v1/delete_glossary_term

Remove a glossary term; future translations no longer enforce it. Existing translations are unchanged.

curl -X POST https://getglossa.dev/api/v1/delete_glossary_term \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"term":"Glossa"}'

Rules

Standing instructions for every translation.

List translation rules · POST /api/v1/list_rules or GET …?input=

Standing instructions appended to every translation prompt, globally or for one locale, for the whole workspace or one project (project is null on workspace rules). Without project: the workspace rules. With project: the rules its strings are translated with (the workspace rules unless the project has inherit_rules false, plus its own). Audits propose new ones as rule_suggestion tasks.

curl -X POST https://getglossa.dev/api/v1/list_rules \  -H "Authorization: Bearer gls_…"

Add translation rule · POST /api/v1/add_rule

Add a standing instruction for future translations, e.g. "Spanish: use tú, never usted" or "Keep button labels under 20 characters". locale null applies to every language. project limits it to that project's strings (for a project with its own product_context); without project it applies to every project that inherits the workspace rules.

curl -X POST https://getglossa.dev/api/v1/add_rule \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"body":"Use tú, never usted."}'

Update translation rule · POST /api/v1/update_rule

Edit a translation rule's text, or set active=false to stop adding it to translation prompts.

curl -X POST https://getglossa.dev/api/v1/update_rule \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"rule":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Audits

Per-language quality reviews.

Run audit · POST /api/v1/run_audit

Ask the AI to review one locale holistically ("How is our Spanish? Are brand names consistent?"). It answers the question, scores the locale, and files audit_finding, glossary_suggestion and rule_suggestion tasks. Runs as a job; read the result with get_audit. The AI sees strings, not the code that uses them: an agent with the codebase in view should audit inline instead (list_translations_for_audit, then fix with submit_translations), which files no tasks, uses no AI credits and has no limit. Each plan includes a number of AI audits a calendar month (UTC; get_pricing, usage.ai_audits in get_account); past it this fails with 402 audit_limit. Returns {audit_id, job_id, ai_audits: {used, included}}.

curl -X POST https://getglossa.dev/api/v1/run_audit \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"locale":"es"}'

Get audit · POST /api/v1/get_audit or GET …?input=

An audit's answer, score and findings (empty while its job runs; see job_status).

curl -X POST https://getglossa.dev/api/v1/get_audit \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"audit":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

List audits · POST /api/v1/list_audits or GET …?input=

Past locale audits with their summary and score, newest first. Filter by locale.

curl -X POST https://getglossa.dev/api/v1/list_audits \  -H "Authorization: Bearer gls_…"

App reviews

App Store and Google Play reviews per language, read as context for store listings and marketing copy.

Import app reviews · POST /api/v1/import_app_reviews

Store App Store and Google Play reviews of a project's app, each with the language it is written in, so agents writing or translating store listings and marketing copy can read how users talk about the app in each language (list_app_reviews). Pass up to 500 reviews per call, as fetched from App Store Connect (customerReviews) or the Google Play Developer API (reviews.list) or a store export. Importing the same store review id again updates it (an edited review or a new developer reply). Reviews are context only: they are never translated or sent to the AI translator automatically. Returns how many were stored and the counts per locale.

curl -X POST https://getglossa.dev/api/v1/import_app_reviews \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","reviews":[{"store":"app_store","rating":1,"reviewed_at":"reviewed_at"}]}'

List app reviews · POST /api/v1/list_app_reviews or GET …?input=

Read a project's App Store and Google Play reviews, newest first, to learn how users describe the app in a language before writing or translating store listings, release notes or marketing copy: the words they use for features, what they praise (rating 4–5) and what they complain about (rating 1–2). Filter by locales (pt also matches pt-BR), store, rating range, a text query or a start date. Returns the reviews and `total` matching; the first page also returns `stats`, the review count and average rating per locale and store. Quote reviews only as context; never copy a user's words into published copy without a person's approval.

curl -X POST https://getglossa.dev/api/v1/list_app_reviews \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

App review stats · POST /api/v1/get_app_review_stats or GET …?input=

How many App Store and Google Play reviews a project has per language and store, their average rating, how many are 1–2 stars and the newest review's date. Read it to see which languages have enough reviews to learn from before calling list_app_reviews.

curl -X POST https://getglossa.dev/api/v1/get_app_review_stats \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Delete app reviews · POST /api/v1/delete_app_reviews

Remove stored app reviews from a project: the given review ids, every review from one store, or (all=true) every review of the project. Use when a review was removed from the store or imported into the wrong project. Returns how many were deleted.

curl -X POST https://getglossa.dev/api/v1/delete_app_reviews \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Jobs

Background AI work and its status.

Get job · POST /api/v1/get_job or GET …?input=

Status and output of a background job (translate, learn_format, audit, dedupe_scan, propagate).

curl -X POST https://getglossa.dev/api/v1/get_job \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"job":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Cancel job · POST /api/v1/cancel_job

Cancel a queued or running background job. Returns its id and final status; already finished or cancelled jobs are unchanged. Completed work is kept. An in-flight model request may finish, but translation workers check cancellation before storing results and starting another batch; a Message Batch the job waits on is cancelled too.

curl -X POST https://getglossa.dev/api/v1/cancel_job \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"job":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

List jobs · POST /api/v1/list_jobs or GET …?input=

Recent background jobs (translate, learn_format, audit, dedupe_scan, propagate) with status and errors, newest first.

curl -X POST https://getglossa.dev/api/v1/list_jobs \  -H "Authorization: Bearer gls_…"

Webhooks

Tell a repository when translations are ready: signed HTTPS events, GitHub repository_dispatch included.

create_webhook

writeowner or admin

Create a webhook · POST /api/v1/create_webhook

Subscribe an HTTPS endpoint to a project's events, so a repository syncs when translations are ready instead of on a schedule. Events: translations.ready (translate jobs of the project finished, none is queued or running any more, and the queue has been quiet for a minute: a burst of pushes sends one event; payload: project, locales, counts {translated, needs_review, jobs, failed_jobs}, per_locale, job_ids, checked_at) and job.failed (a translate job of the project failed). For GitHub, pass url https://api.github.com/repos/OWNER/REPO/dispatches and headers {"Authorization": "Bearer <token with contents:write>"}: the body becomes {event_type: "glossa.translations.ready", client_payload} and a workflow `on: repository_dispatch` runs. Every request is signed: X-Glossa-Signature: sha256=HMAC-SHA256(secret, raw body). Failed deliveries are retried with backoff for about 4 hours; list_webhook_deliveries shows each attempt. Admin only. Returns the webhook and its signing `secret`, shown only this once.

curl -X POST https://getglossa.dev/api/v1/create_webhook \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","url":"url"}'

list_webhooks

readowner or admin

List webhooks · POST /api/v1/list_webhooks or GET …?input=

The webhooks of one project, or of every project you can see: URL, events, format, the names of their custom headers (never the values, never the secret) and the last delivery's status. Admin only. Use list_webhook_deliveries for the full delivery log.

curl -X POST https://getglossa.dev/api/v1/list_webhooks \  -H "Authorization: Bearer gls_…"

delete_webhook

writeowner or admin

Delete a webhook · POST /api/v1/delete_webhook

Stop sending a project's events to an endpoint. Its pending deliveries and delivery log are deleted with it. Admin only. Returns the id.

curl -X POST https://getglossa.dev/api/v1/delete_webhook \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"webhook":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

test_webhook

writeowner or admin

Test a webhook · POST /api/v1/test_webhook

Send a signed `ping` event to a webhook now and wait for the answer (at most 10 s), to check the URL, token and signature verification before a real event. Not retried. For a GitHub repository_dispatch endpoint a 204 means the token works; the event_type is glossa.ping, so a workflow listening only to glossa.translations.ready does not run. Admin only. Returns ok, the HTTP status, the error if any and the delivery id (list_webhook_deliveries).

curl -X POST https://getglossa.dev/api/v1/test_webhook \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"webhook":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

list_webhook_deliveries

readowner or admin

List webhook deliveries · POST /api/v1/list_webhook_deliveries or GET …?input=

The delivery log of a project's webhooks, newest first: each event (translations.ready, job.failed, ping), its payload, status (pending, sending, delivered, failed), attempts, the endpoint's last HTTP status and error, and when it was delivered. A pending row with attempts > 0 is waiting for its next retry (next_attempt_at). Admin only.

curl -X POST https://getglossa.dev/api/v1/list_webhook_deliveries \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Members and sharing

Members, teams, project sharing and the audit log.

List members · POST /api/v1/list_members or GET …?input=

Everyone in this workspace with their email, role (owner, admin, member, viewer) and teams. Read-only: inviting, removing people and changing roles are done by a person in the dashboard (Settings → Members).

curl -X POST https://getglossa.dev/api/v1/list_members \  -H "Authorization: Bearer gls_…"

list_invites

readowner or admin

List invites · POST /api/v1/list_invites or GET …?input=

Pending invitations to this workspace (email, role, teams, who invited, when it expires). Owners and admins.

curl -X POST https://getglossa.dev/api/v1/list_invites \  -H "Authorization: Bearer gls_…"

List teams · POST /api/v1/list_teams or GET …?input=

Teams in this workspace with their members (maintainer or member) and the projects shared with each team.

curl -X POST https://getglossa.dev/api/v1/list_teams \  -H "Authorization: Bearer gls_…"

Create team · POST /api/v1/create_team

Create a team (a group of members to share projects with). You become its maintainer. Members and above.

curl -X POST https://getglossa.dev/api/v1/create_team \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"name":"CI"}'

Update team · POST /api/v1/update_team

Rename a team or change its description. Its maintainers, owners and admins.

curl -X POST https://getglossa.dev/api/v1/update_team \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"team":"team"}'

Delete team · POST /api/v1/delete_team

Delete a team. Its members stay in the workspace but lose what was shared with the team.

curl -X POST https://getglossa.dev/api/v1/delete_team \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"team":"team"}'

Add to team · POST /api/v1/set_team_member

Add a workspace member to a team, or change their team role (maintainer manages the team; member is in it). Its maintainers, owners and admins.

curl -X POST https://getglossa.dev/api/v1/set_team_member \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"team":"team","user":"user"}'

Remove from team · POST /api/v1/remove_team_member

Take someone out of a team (they stay in the workspace). Its maintainers, owners and admins; anyone can leave a team themselves.

curl -X POST https://getglossa.dev/api/v1/remove_team_member \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"team":"team","user":"user"}'

List project access · POST /api/v1/list_project_access or GET …?input=

Who can see a project: its visibility (org or restricted), its creator, and every grant to a team or person with its access (read, write, admin). Owners and admins always have admin.

curl -X POST https://getglossa.dev/api/v1/list_project_access \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

Set project visibility · POST /api/v1/set_project_visibility

org: every workspace member sees the project (viewers read, members write). restricted: only its creator, owners and admins, and the teams and people it is shared with (share_project). Needs admin access to the project.

curl -X POST https://getglossa.dev/api/v1/set_project_visibility \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","visibility":"org"}'

Share project · POST /api/v1/share_project

Give a team or a person read, write or admin access to a project (replacing what that team or person had). read: see it and pull files; write: push, translate, review; admin: also change its settings and who it is shared with. Viewers never get past read. Needs admin access to the project.

curl -X POST https://getglossa.dev/api/v1/share_project \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web","access":"read"}'

Unshare project · POST /api/v1/unshare_project

Remove a team's or person's grant on a project. They keep whatever their workspace role gives them (nothing, on a restricted project). Needs admin access to the project.

curl -X POST https://getglossa.dev/api/v1/unshare_project \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"project":"web"}'

list_audit_log

readowner or admin

List audit log · POST /api/v1/list_audit_log or GET …?input=

Membership, role, team, invite, API key, billing, settings and sharing changes in this workspace, newest first: who (a person, an API key, an OAuth client or the system), what, to what, and when. Owners and admins. The activity log (list_activity) has content changes.

curl -X POST https://getglossa.dev/api/v1/list_audit_log \  -H "Authorization: Bearer gls_…"

API keys

Workspace keys for CLI, MCP and CI.

List API keys · POST /api/v1/list_api_keys or GET …?input=

API keys of this workspace (prefix only; the full key is shown once at creation), each with the role it acts with and who created it. Owners and admins see every key; members see their own.

curl -X POST https://getglossa.dev/api/v1/list_api_keys \  -H "Authorization: Bearer gls_…"

Create API key · POST /api/v1/create_api_key

Create a workspace API key for the CLI, MCP or CI. It acts with your role (an owner's key acts as admin) and keeps working if you leave the workspace; admins can revoke it. The full key (gls_…) is returned only once; store it as a secret.

curl -X POST https://getglossa.dev/api/v1/create_api_key \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"name":"CI"}'

Revoke API key · POST /api/v1/revoke_api_key

Revoke an API key immediately; every CLI, CI job or MCP host using it stops working. Owners and admins revoke any key; members their own.

curl -X POST https://getglossa.dev/api/v1/revoke_api_key \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"key":"6f1c2e0a-4b7d-4c2e-9a51-0d3b8e7f9a10"}'

Billing

Plans, prices, checkout links and the subscription.

Get pricing · POST /api/v1/get_pricing or GET …?input=

The plans (Free, Cloud, Enterprise): price {monthly, yearly} in USD, included AI-translated words a month (source words × locales, counted once per string and locale; hosting, edits, reviews, retries and reuse are free), limits (members, projects, ai_audits_per_month: run_audit calls a calendar month; null is unlimited; agent audits through list_translations_for_audit are free and unlimited), features, overage, a checkout_url per paid plan, and how_to_buy. The same document as GET /api/v1/pricing; needs no credential (REST, the catalog MCP server at /api/mcp/catalog, `glossa pricing`). Call before recommending or buying a plan.

curl -X POST https://getglossa.dev/api/v1/get_pricing \  -H "Authorization: Bearer gls_…"

Get account · POST /api/v1/get_account or GET …?input=

Who this credential acts for and what it may use: the workspace, your role in it (viewer, member, admin, owner) and whether you are a person, an OAuth client or an API key (acting_as), the plan in force (status, interval, renewal or end date), usage this calendar month (AI-translated words against the allowance, first-time string translations, reused strings that cost nothing, members, projects, ai_audits: run_audit calls against the plan's limit with resets_at) with what remains, ai_budget (the monthly AI-word budget: cap, percent used, the alert threshold crossed (50/80/100), at_limit and a message to relay; set_ai_budget changes it), and next_tier: what the next plan adds, its price and a checkout_url. Same data as GET /api/v1/account and `glossa account`. Call before a large push (estimate_translation gives its exact words) or when a human asks about plan or usage.

curl -X POST https://getglossa.dev/api/v1/get_account \  -H "Authorization: Bearer gls_…"

Get billing · POST /api/v1/get_billing or GET …?input=

This workspace's plan, subscription status, renewal or end date, whether a card is saved (so subscribe can charge it), and usage this month against the plan (AI-translated words, first-time string translations, reused strings, members, projects, AI audits) and ai_budget (get_ai_budget). Pass refresh: true right after a human finished a checkout to pull the latest state from Stripe.

curl -X POST https://getglossa.dev/api/v1/get_billing \  -H "Authorization: Bearer gls_…"

subscribe

writeowner or admin

Subscribe · POST /api/v1/subscribe

Start or change this workspace's paid plan in one call, charging the card already saved for the workspace. Only after a human approved this plan and price: confirm must be true. Without a saved card (or if the card needs the human, e.g. 3-D Secure) nothing is charged and it returns status checkout_required with a checkout_url for a human to finish. A plan change is prorated and invoiced immediately. Returns {status: subscribed | changed | unchanged | checkout_required, billing}.

curl -X POST https://getglossa.dev/api/v1/subscribe \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"confirm":false}'

cancel_subscription

writeowner or admin

Cancel subscription · POST /api/v1/cancel_subscription

Cancel the paid plan at the end of the current period (no refund; the plan stays until then, then the workspace is on Free). Only when a human asked: confirm must be true. resume_subscription undoes it before the period ends.

curl -X POST https://getglossa.dev/api/v1/cancel_subscription \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"confirm":false}'

resume_subscription

writeowner or admin

Resume subscription · POST /api/v1/resume_subscription

Undo a cancellation that has not taken effect yet, so the plan renews as before. Nothing is charged until the normal renewal date.

curl -X POST https://getglossa.dev/api/v1/resume_subscription \  -H "Authorization: Bearer gls_…"

claim_checkout

writeowner or admin

Claim checkout · POST /api/v1/claim_checkout

Attach a checkout paid before signup (create_checkout_link without a credential) to this workspace, by its session_id (cs_…). Usually automatic: returning from Stripe, or signing up with the email used at checkout, claims it. Call it when a human paid first and the plan has not appeared. Returns {outcome: claimed | already_yours, billing}.

curl -X POST https://getglossa.dev/api/v1/claim_checkout \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"session_id":"session_id"}'

Estimate translation · POST /api/v1/estimate_translation or GET …?input=

What a translate call would bill, before you make it: for a project (or the whole workspace) and locales (default: the project's target locales, or every project's), optionally only some units, the (string, locale) pairs that have no translation yet and their source words — the AI-translated words translate would add to this month's usage. Existing AI drafts, reviewed, imported and human translations cost nothing. Returns {locales: [{locale, translations, words}], translations, words, usage: {used, included, remaining}, budget (the cap, at_limit, alert), after: {used, percent_of_cap, over_cap}, would_hold (true when translation would stop at the cap before this is done: it translates what fits, the rest waits for next month, an upgrade or a higher budget)}. Call before a large translate or push, and tell the human the number.

curl -X POST https://getglossa.dev/api/v1/estimate_translation \  -H "Authorization: Bearer gls_…"

Get AI budget · POST /api/v1/get_ai_budget or GET …?input=

The workspace's monthly AI-word budget and where this month stands: cap (the lower of the budget's monthly_words and the plan's included words; null is none), cap_source (budget or plan), used, remaining, percent, the alert thresholds and the highest one crossed (alert: 50, 80, 100 or null), at_limit (keep, queue or agent), at_cap, enforced (true when AI translation stops at the cap: always under a plan's allowance), held_jobs (translate jobs waiting for the budget) and a message to relay to the human. get_account and get_billing carry the same object as ai_budget.

curl -X POST https://getglossa.dev/api/v1/get_ai_budget \  -H "Authorization: Bearer gls_…"

set_ai_budget

writeowner or admin

Set AI budget · POST /api/v1/set_ai_budget

Set the workspace's monthly budget of AI-translated words, the usage alerts and what happens at the cap. Fields you omit keep their value. monthly_words: the cap, at most the plan's included words (above them fails with 402 ai_budget_over_plan: upgrade instead; null: the plan's included words). A plan's allowance always stops AI translation: a job translates what fits and the rest waits until next month, an upgrade or a higher budget. alerts: percentages of the cap at which get_account, get_ai_budget and the dashboard banner warn (default 50, 80, 100; no email is sent). at_limit: queue (stop at the cap and wait, as above), agent (also ask an admin to switch AI projects to agent mode, where an agent translates with list_missing_translations) or keep (only on a plan with no allowance: usage is reported, nothing stops). Raising the cap releases held jobs, oldest first. Only when a human asked for these numbers. Returns get_ai_budget's object plus released_jobs.

curl -X POST https://getglossa.dev/api/v1/set_ai_budget \  -H "Authorization: Bearer gls_…"

Feedback

Request features, report issues and upvote what matters to you.

List feature requests and issues · POST /api/v1/list_feedback or GET …?input=

The Glossa feedback board: feature requests every customer can see, plus your own issue reports (and ones the team published), with status and upvotes, most upvoted first. Each item says whether your workspace voted for it or filed it. Call it before request_feature or report_issue to find an existing item to upvote instead of filing a duplicate, or when the human asks what is planned. Works without a credential (public items only).

curl -X POST https://getglossa.dev/api/v1/list_feedback \  -H "Authorization: Bearer gls_…"

Get a feature request or issue · POST /api/v1/get_feedback or GET …?input=

One feedback item with its status, upvotes, comments (oldest first; official answers from the Glossa team are marked `official`) and its timeline of status changes with the team's notes. Your own issues include the context you attached.

curl -X POST https://getglossa.dev/api/v1/get_feedback \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1}'

List my feedback and subscriptions · POST /api/v1/list_my_feedback or GET …?input=

What your workspace filed (every status), the items you get email about (filed, upvoted, commented, followed) with whether you muted them, your workspace's review, and whether feedback email reaches you. Use it to follow up on earlier reports.

curl -X POST https://getglossa.dev/api/v1/list_my_feedback \  -H "Authorization: Bearer gls_…"

Request a feature · POST /api/v1/request_feature

Files a feature request on the Glossa board and upvotes it for your workspace. Use it when the human wishes Glossa did something it cannot do yet (a file format, an op, an integration, a dashboard view). It checks for duplicates first: an identical request gets your vote instead, and when likely matches exist nothing is filed and `similar` lists them (filed: false): upvote_feedback the match, or call again with force: true if yours is different. 10 new items per workspace a day. The person behind the call gets a thank-you email and one at every status change. Feature requests and comments are public (never who wrote them beyond a first name): no API keys, source strings, translations or customer data.

curl -X POST https://getglossa.dev/api/v1/request_feature \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"title":"title"}'

Report an issue · POST /api/v1/report_issue

Reports a problem with Glossa itself: a failing or wrong call (pass the request_id from the error or the X-Request-Id header, and the op), a file that does not round-trip, a translation the pipeline mangled, a docs error. Attach context (project, key, locale, file, the error) so the team can reproduce it; projects, files and keys are checked against your workspace. Issues are private: only your workspace and the Glossa team see them, and the team may publish a sanitized title so others can upvote it. Upvote a matching report from list_feedback (kind issue) instead of filing again; likely duplicates are returned in `similar` with filed: false unless force: true. 10 new items per workspace a day. The reporter gets an email with what was captured and one at every status change.

curl -X POST https://getglossa.dev/api/v1/report_issue \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"title":"title"}'

Upvote a feature request or issue · POST /api/v1/upvote_feedback

Adds your workspace's upvote to a feature request or issue ("me too"); votes decide what gets built and fixed first, and you get an email when its status changes. Idempotent: one vote per workspace. A vote on a duplicate goes to the original. Returns the item with its new vote count.

curl -X POST https://getglossa.dev/api/v1/upvote_feedback \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1}'

Remove an upvote · POST /api/v1/remove_feedback_vote

Takes back your workspace's upvote on a feature request or issue, and stops its emails unless you filed or commented on it. Returns the item with its new vote count.

curl -X POST https://getglossa.dev/api/v1/remove_feedback_vote \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1}'

Comment on a feature request or issue · POST /api/v1/comment_on_feedback

Adds context to an existing feature request or issue: your use case, another failing request, a workaround. Prefer it (with upvote_feedback) over filing a near-duplicate. You then get emails about the item; its author gets a daily digest of new comments. 50 comments per workspace a day. Feature requests and comments are public (never who wrote them beyond a first name): no API keys, source strings, translations or customer data.

curl -X POST https://getglossa.dev/api/v1/comment_on_feedback \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1,"body":"Use tú, never usted."}'

Start or stop feedback emails · POST /api/v1/set_feedback_subscription

With id: start or stop emails about one feature request or issue. Without id: turn every feedback email (thank-yous, status changes, replies) on or off for the person behind this credential. Lifecycle and product emails are separate.

curl -X POST https://getglossa.dev/api/v1/set_feedback_subscription \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"subscribed":false}'

Post or edit a review · POST /api/v1/submit_review

Posts your workspace's public review of Glossa (1–5 stars, what you like, what you don't, what you use it for), or edits it (once an hour; earlier versions are kept). Ask the human for the rating and words; never invent a review or post one they did not approve. It publishes on /reviews right away unless an automated check holds it for a quick look (new accounts, links, profanity). marketing_consent: true lets Meter quote it. The reviewer gets a thank-you email and one when the team replies.

curl -X POST https://getglossa.dev/api/v1/submit_review \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"rating":1}'

List reviews · POST /api/v1/list_reviews or GET …?input=

Published reviews of Glossa with the aggregate (average rating, count and distribution) and the team's responses. Works without a credential.

curl -X POST https://getglossa.dev/api/v1/list_reviews \  -H "Authorization: Bearer gls_…"

Update feedback (staff) · POST /api/v1/update_feedback

Glossa team only. Moves an item through open → planned → in_progress → done, or declined, or duplicate (with duplicate_of: votes and subscribers move to the original), with a note every subscriber gets by email. Also publishes or hides an issue (visibility, with a sanitized public_title) and links the GitHub issue or PR (external_ref).

curl -X POST https://getglossa.dev/api/v1/update_feedback \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1}'

Respond officially (staff) · POST /api/v1/respond_to_feedback

Glossa team only. Posts an official response on an item (emailed to every subscriber), optionally changing its status in the same call.

curl -X POST https://getglossa.dev/api/v1/respond_to_feedback \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1,"body":"Use tú, never usted."}'

Respond to or moderate a review (staff) · POST /api/v1/respond_to_review

Glossa team only. Replies publicly under a review (the reviewer gets an email), and/or hides or publishes it with a reason. Never hide a review for being negative.

curl -X POST https://getglossa.dev/api/v1/respond_to_review \  -H "Authorization: Bearer gls_…" \  -H "Content-Type: application/json" \  -d '{"id":1}'