Courier · Capability

Courier — Translations

Courier — Translations. 2 operations. Lead operation: Get a translation. Self-contained Naftiko capability covering one Courier business surface.

Run with Naftiko CourierTranslations

What You Can Do

GET
Translationsget — Get a translation
/v1/translations/{domain}/{locale}
PUT
Translationsupdate — Update translations by locale
/v1/translations/{domain}/{locale}

MCP Tools

get-translation

Get a translation

read-only idempotent
update-translations-locale

Update translations by locale

idempotent

Capability Spec

courier-translations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Courier — Translations
  description: 'Courier — Translations. 2 operations. Lead operation: Get a translation. Self-contained Naftiko capability
    covering one Courier business surface.'
  tags:
  - Courier
  - Translations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COURIER_API_KEY: COURIER_API_KEY
capability:
  consumes:
  - type: http
    namespace: courier-translations
    baseUri: https://api.courier.com
    description: Courier — Translations business capability. Self-contained, no shared references.
    resources:
    - name: translations-domain-locale
      path: /translations/{domain}/{locale}
      operations:
      - name: translationsget
        method: GET
        description: Get a translation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: domain
          in: path
          type: string
          description: The domain you want to retrieve translations for. Only `default` is supported at the moment
          required: true
        - name: locale
          in: path
          type: string
          description: The locale you want to retrieve the translations for
          required: true
      - name: translationsupdate
        method: PUT
        description: Update translations by locale
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: domain
          in: path
          type: string
          description: The domain you want to retrieve translations for. Only `default` is supported at the moment
          required: true
        - name: locale
          in: path
          type: string
          description: The locale you want to retrieve the translations for
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.COURIER_API_KEY}}'
  exposes:
  - type: rest
    namespace: courier-translations-rest
    port: 8080
    description: REST adapter for Courier — Translations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/translations/{domain}/{locale}
      name: translations-domain-locale
      description: REST surface for translations-domain-locale.
      operations:
      - method: GET
        name: translationsget
        description: Get a translation
        call: courier-translations.translationsget
        with:
          domain: rest.domain
          locale: rest.locale
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: translationsupdate
        description: Update translations by locale
        call: courier-translations.translationsupdate
        with:
          domain: rest.domain
          locale: rest.locale
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: courier-translations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Courier — Translations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-translation
      description: Get a translation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: courier-translations.translationsget
      with:
        domain: tools.domain
        locale: tools.locale
      outputParameters:
      - type: object
        mapping: $.
    - name: update-translations-locale
      description: Update translations by locale
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: courier-translations.translationsupdate
      with:
        domain: tools.domain
        locale: tools.locale
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.