List returns the org's own translation-memory entries, newest first, optionally…
List returns the org's own translation-memory entries, newest first, optionally narrowed to one target language and/or one position on the review ladder.
GET /v1/translate/memory
| Address | https://api.hanzo.ai/v1/translate/memory |
| Method | GET |
| Operation | get_translate_memory |
| Auth | Authorization: Bearer $HANZO_API_KEY |
List returns the org's own translation-memory entries, newest first, optionally narrowed to one target language and/or one position on the review ladder. It is the review lane's read: what a human reviewer works through.
The org is ALWAYS the validated principal's org, never a request field, so one tenant can never read another's memory — the entries hold customer source text.
Request
3 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
target | query | string | — | Target narrows to one target language tag (BCP-47, e.g. |
state | query | string | — | State narrows to one position on the review ladder: machine, suggested, approved or published. |
limit | query | integer | — | Limit caps the rows returned. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | MemoryPage | ok |
200 body — 9 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | MemoryEntry[] | — | Data is the matching memory entries, newest first. |
data[].actor | body | string | — | Actor is the validated user id that last wrote this entry by hand. |
data[].glossary_version | body | string | — | Glossary is the glossary VERSION the entry was translated under — the digest version() derives from the terms, so changing a term changes the key and the stale… |
data[].source | body | string | — | Source is the ORIGINAL string this entry translates. |
data[].state | body | string | — | State is the entry's position on the review ladder: machine, suggested, approved or published. |
data[].target | body | string | — | Target is the target language tag (BCP-47, e.g. |
data[].text | body | string | — | Text is the stored translation. |
data[].tier | body | string | — | Tier is the engine tier the entry belongs to, quality or bulk. |
data[].updated_at | body | integer | — | UpdatedAt is the unix second the entry last changed. |
Failure carries the platform error shape — see Errors.
Examples
hanzo translate memory getimport { Configuration, TranslateApi } from 'hanzoai';
const api = new TranslateApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTranslateMemory();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TranslateApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TranslateApi(client).get_translate_memory()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.TranslateAPI.GetTranslateMemory(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, translate_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = translate_api::get_translate_memory(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TranslateApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new TranslateApi(client).getTranslateMemory();curl https://api.hanzo.ai/v1/translate/memory \
-H "Authorization: Bearer $HANZO_API_KEY"Tool translate, op get_translate_memory — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "translate",
"arguments": {
"op": "get_translate_memory",
"input": {}
}
}
}'How is this guide?