Skip to content
HALOWERK

Textwerk

l10n branch placeholder reachability

Return branch selection and missing variables.

POST https://text.halowerk.com/v1/l10n-branch-placeholder-reachability

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
branchesarrayYes
selectorsobjectYes
availablearrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "branches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "when": {
            "anyOf": [
              {
                "type": "object",
                "maxProperties": 10,
                "additionalProperties": {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "required": [
          "when",
          "text"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    },
    "selectors": {
      "type": "object",
      "maxProperties": 10,
      "additionalProperties": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1
      }
    },
    "available": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 256,
        "minLength": 1
      },
      "maxItems": 30,
      "minItems": 0
    }
  },
  "required": [
    "branches",
    "selectors",
    "available"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "branches": [
    {
      "when": {
        "count": "one"
      },
      "text": "One item for {{name}}"
    },
    {
      "when": null,
      "text": "{{count}} items for {{name}}"
    }
  ],
  "selectors": {
    "count": "one"
  },
  "available": [
    "name"
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →