Skip to content
HALOWERK

Agent Interfaces

document segment translation

Document translation: return translated segments with their identifiers. Use it when an agent needs segment translation. Text is processed by Groq in the United States.

POST https://agent.halowerk.com/v1/document-segment-translation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
segmentsarrayYes
target_languageSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 30,
            "minLength": 1
          },
          "text": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1
          }
        },
        "required": [
          "id",
          "text"
        ],
        "additionalProperties": false
      },
      "maxItems": 8,
      "minItems": 1
    },
    "target_language": {
      "enum": [
        "English",
        "German",
        "French",
        "Spanish",
        "Italian",
        "Chinese"
      ]
    }
  },
  "required": [
    "segments",
    "target_language"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "segments": [
    {
      "id": "p1",
      "text": "这是一份技术说明。"
    }
  ],
  "target_language": "English"
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →