Skip to content
Webfold Docs
Esc
↑↓navigate↵open⌘Jpreview

Verify translations against their sources

Runs Glossa’s integrity gate on each source/translation pair: variable slots must be conserved, markup tags must match, no script or event-handler injection, and any protected glossary terms must be present. Each item is metered, as localization.check.

POST/v1/localization/check
Authorization
AuthorizationBearer token (JWT) · headerrequired

Bearer API key issued for your account. Send Authorization: Bearer <key>.

Request body
requiredapplication/json
itemsobject[]required
min items 1 · max items 500
Show properties
Array of object
keystring
sourcestringrequired
translationstringrequired
glossaryobject

Protected terms: each key must appear in the translation as its value.

Responses
200

One result per item

totalintegerrequired
passedintegerrequired
failedintegerrequired
resultsobject[]required
Show properties
Array of object
keystringrequired
okbooleanrequired
codestring | null
Allowed:missing_slotextraneous_slottag_mismatchsecurity_riskglossary_violationnull
messagestring | null
400

Bad request

string
401

Missing or invalid bearer token

string
403

Billing or plan entitlement blocked the request

string
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.webfold.ai/v1/localization/check' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "key": "string",
      "source": "string",
      "translation": "string"
    }
  ],
  "glossary": {
    "property1": "string",
    "property2": "string"
  }
}'
Response
{
  "total": 0,
  "passed": 0,
  "failed": 0,
  "results": [
    {
      "key": "string",
      "ok": true,
      "code": "missing_slot",
      "message": "string"
    }
  ]
}