DeepL · Capability

DeepL Translation API — Translate

DeepL Translation API — Translate. 1 operations. Lead operation: Translate text. Self-contained Naftiko capability covering one Deepl business surface.

Run with Naftiko DeeplTranslate

What You Can Do

POST
Translatetext — Translate text
/v1/translate

MCP Tools

translate-text

Translate text

Capability Spec

translation-translate.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DeepL Translation API — Translate
  description: 'DeepL Translation API — Translate. 1 operations. Lead operation: Translate text. Self-contained Naftiko capability
    covering one Deepl business surface.'
  tags:
  - Deepl
  - Translate
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DEEPL_API_KEY: DEEPL_API_KEY
capability:
  consumes:
  - type: http
    namespace: translation-translate
    baseUri: https://api.deepl.com/v2
    description: DeepL Translation API — Translate business capability. Self-contained, no shared references.
    resources:
    - name: translate
      path: /translate
      operations:
      - name: translatetext
        method: POST
        description: Translate text
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.DEEPL_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: translation-translate-rest
    port: 8080
    description: REST adapter for DeepL Translation API — Translate. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/translate
      name: translate
      description: REST surface for translate.
      operations:
      - method: POST
        name: translatetext
        description: Translate text
        call: translation-translate.translatetext
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: translation-translate-mcp
    port: 9090
    transport: http
    description: MCP adapter for DeepL Translation API — Translate. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: translate-text
      description: Translate text
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: translation-translate.translatetext
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.