Logto · Capability

Logto API references — Custom phrases

Logto API references — Custom phrases. 4 operations. Lead operation: Get all custom phrases. Self-contained Naftiko capability covering one Logto business surface.

Run with Naftiko LogtoCustom phrases

What You Can Do

GET
Listcustomphrases — Get all custom phrases
/v1/api/custom-phrases
GET
Getcustomphrase — Get custom phrases
/v1/api/custom-phrases/{languagetag}
PUT
Replacecustomphrase — Upsert custom phrases
/v1/api/custom-phrases/{languagetag}
DELETE
Deletecustomphrase — Delete custom phrase
/v1/api/custom-phrases/{languagetag}

MCP Tools

get-all-custom-phrases

Get all custom phrases

read-only idempotent
get-custom-phrases

Get custom phrases

read-only idempotent
upsert-custom-phrases

Upsert custom phrases

idempotent
delete-custom-phrase

Delete custom phrase

idempotent

Capability Spec

logto-custom-phrases.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Logto API references — Custom phrases
  description: 'Logto API references — Custom phrases. 4 operations. Lead operation: Get all custom phrases. Self-contained
    Naftiko capability covering one Logto business surface.'
  tags:
  - Logto
  - Custom phrases
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LOGTO_API_KEY: LOGTO_API_KEY
capability:
  consumes:
  - type: http
    namespace: logto-custom-phrases
    baseUri: https://[tenant_id].logto.app
    description: Logto API references — Custom phrases business capability. Self-contained, no shared references.
    resources:
    - name: api-custom-phrases
      path: /api/custom-phrases
      operations:
      - name: listcustomphrases
        method: GET
        description: Get all custom phrases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-custom-phrases-languageTag
      path: /api/custom-phrases/{languageTag}
      operations:
      - name: getcustomphrase
        method: GET
        description: Get custom phrases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: languageTag
          in: path
          type: string
          required: true
      - name: replacecustomphrase
        method: PUT
        description: Upsert custom phrases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: languageTag
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecustomphrase
        method: DELETE
        description: Delete custom phrase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: languageTag
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.LOGTO_API_KEY}}'
  exposes:
  - type: rest
    namespace: logto-custom-phrases-rest
    port: 8080
    description: REST adapter for Logto API references — Custom phrases. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/custom-phrases
      name: api-custom-phrases
      description: REST surface for api-custom-phrases.
      operations:
      - method: GET
        name: listcustomphrases
        description: Get all custom phrases
        call: logto-custom-phrases.listcustomphrases
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/custom-phrases/{languagetag}
      name: api-custom-phrases-languagetag
      description: REST surface for api-custom-phrases-languageTag.
      operations:
      - method: GET
        name: getcustomphrase
        description: Get custom phrases
        call: logto-custom-phrases.getcustomphrase
        with:
          languageTag: rest.languageTag
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: replacecustomphrase
        description: Upsert custom phrases
        call: logto-custom-phrases.replacecustomphrase
        with:
          languageTag: rest.languageTag
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomphrase
        description: Delete custom phrase
        call: logto-custom-phrases.deletecustomphrase
        with:
          languageTag: rest.languageTag
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: logto-custom-phrases-mcp
    port: 9090
    transport: http
    description: MCP adapter for Logto API references — Custom phrases. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-all-custom-phrases
      description: Get all custom phrases
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: logto-custom-phrases.listcustomphrases
      outputParameters:
      - type: object
        mapping: $.
    - name: get-custom-phrases
      description: Get custom phrases
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: logto-custom-phrases.getcustomphrase
      with:
        languageTag: tools.languageTag
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-custom-phrases
      description: Upsert custom phrases
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: logto-custom-phrases.replacecustomphrase
      with:
        languageTag: tools.languageTag
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-custom-phrase
      description: Delete custom phrase
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: logto-custom-phrases.deletecustomphrase
      with:
        languageTag: tools.languageTag
      outputParameters:
      - type: object
        mapping: $.