---
updatedAt: 2026-08-06T09:23:13.000Z
agentTools:
  projectIndex: https://developers.alcmeon.com/llms.txt
---

# Ask for a translation of a text to a language for a support agent.

Translates the provided text from source language to target language Once your AI API has been associated with a webhook, this endpoint can be invoked to generate translations.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AI Webhooks",
    "version": "1.0"
  },
  "x-readme": {
    "explorer-enabled": false
  },
  "components": {
    "schemas": {
      "HTTPError": {
        "properties": {
          "detail": {
            "type": "object"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "detail": {
            "type": "object",
            "properties": {
              "<location>": {
                "type": "object",
                "properties": {
                  "<field_name>": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ResponseOk": {
        "type": "string",
        "enum": [
          "ok"
        ]
      },
      "RateLimitResponseError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Rate limit reached"
          },
          "details": {
            "type": "string",
            "description": "A string showing the time when the rate limit will be reset. Example: {'rate_limited_until': '2024-01-22T13:05:41Z'}\n"
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/translate": {
      "post": {
        "tags": [
          "Translation"
        ],
        "summary": "Ask for a translation of a text to a language for a support agent.",
        "description": "Translates the provided text from source language to target language Once your AI API has been associated with a webhook, this endpoint can be invoked to generate translations.\n",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version",
                  "language",
                  "webhook_token"
                ],
                "properties": {
                  "version": {
                    "type": "string",
                    "enum": [
                      "1.0"
                    ],
                    "description": "Version of the API"
                  },
                  "text": {
                    "type": "string",
                    "description": "Text to be translated"
                  },
                  "language": {
                    "type": "string",
                    "description": "The target language code (e.g., 'en', 'es', 'fr')"
                  },
                  "webhook_token": {
                    "type": "string"
                  },
                  "conversation": {
                    "type": "array",
                    "description": "Conversation to be translated"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseOk"
                }
              }
            },
            "description": "Successful response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPError"
                }
              }
            },
            "description": "Authentication error"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            },
            "description": "Validation error"
          },
          "429": {
            "description": "Rate limit reached. Default limit is set to 15 requests per minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitResponseError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  }
}
```