Phrase · Capability

Phrase Strings API Reference — Automations

Phrase Strings API Reference — Automations. 8 operations. Lead operation: List automations. Self-contained Naftiko capability covering one Phrase business surface.

Run with Naftiko PhraseAutomations

What You Can Do

GET
Automationslist — List automations
/v1/accounts/{account-id}/automations
POST
Automationcreate — Create an automation
/v1/accounts/{account-id}/automations
GET
Automationshow — Get a single automation
/v1/accounts/{account-id}/automations/{automation-id}
PATCH
Automationupdate — Update an automation
/v1/accounts/{account-id}/automations/{automation-id}
DELETE
Automationdelete — Destroy automation
/v1/accounts/{account-id}/automations/{automation-id}
POST
Automationactivate — Activate an automation
/v1/accounts/{account-id}/automations/{automation-id}/activate
POST
Automationdeactivate — Deactivate an automation
/v1/accounts/{account-id}/automations/{automation-id}/deactivate
POST
Automationtrigger — Trigger an automation
/v1/accounts/{account-id}/automations/{automation-id}/trigger

MCP Tools

list-automations

List automations

read-only idempotent
create-automation

Create an automation

get-single-automation

Get a single automation

read-only idempotent
update-automation

Update an automation

idempotent
destroy-automation

Destroy automation

idempotent
activate-automation

Activate an automation

deactivate-automation

Deactivate an automation

trigger-automation

Trigger an automation

Capability Spec

strings-automations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Phrase Strings API Reference — Automations
  description: 'Phrase Strings API Reference — Automations. 8 operations. Lead operation: List automations. Self-contained
    Naftiko capability covering one Phrase business surface.'
  tags:
  - Phrase
  - Automations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PHRASE_API_KEY: PHRASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: strings-automations
    baseUri: https://api.phrase.com/v2
    description: Phrase Strings API Reference — Automations business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-automations
      path: /accounts/{account_id}/automations
      operations:
      - name: automationslist
        method: GET
        description: List automations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: automationcreate
        method: POST
        description: Create an automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-automations-automation_id
      path: /accounts/{account_id}/automations/{automation_id}
      operations:
      - name: automationshow
        method: GET
        description: Get a single automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: automationupdate
        method: PATCH
        description: Update an automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: automationdelete
        method: DELETE
        description: Destroy automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-automations-automation_id-activate
      path: /accounts/{account_id}/automations/{automation_id}/activate
      operations:
      - name: automationactivate
        method: POST
        description: Activate an automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-automations-automation_id-deactivate
      path: /accounts/{account_id}/automations/{automation_id}/deactivate
      operations:
      - name: automationdeactivate
        method: POST
        description: Deactivate an automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-automations-automation_id-trigger
      path: /accounts/{account_id}/automations/{automation_id}/trigger
      operations:
      - name: automationtrigger
        method: POST
        description: Trigger an automation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.PHRASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: strings-automations-rest
    port: 8080
    description: REST adapter for Phrase Strings API Reference — Automations. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/automations
      name: accounts-account-id-automations
      description: REST surface for accounts-account_id-automations.
      operations:
      - method: GET
        name: automationslist
        description: List automations
        call: strings-automations.automationslist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: automationcreate
        description: Create an automation
        call: strings-automations.automationcreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/automations/{automation-id}
      name: accounts-account-id-automations-automation-id
      description: REST surface for accounts-account_id-automations-automation_id.
      operations:
      - method: GET
        name: automationshow
        description: Get a single automation
        call: strings-automations.automationshow
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: automationupdate
        description: Update an automation
        call: strings-automations.automationupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: automationdelete
        description: Destroy automation
        call: strings-automations.automationdelete
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/automations/{automation-id}/activate
      name: accounts-account-id-automations-automation-id-activate
      description: REST surface for accounts-account_id-automations-automation_id-activate.
      operations:
      - method: POST
        name: automationactivate
        description: Activate an automation
        call: strings-automations.automationactivate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/automations/{automation-id}/deactivate
      name: accounts-account-id-automations-automation-id-deactivate
      description: REST surface for accounts-account_id-automations-automation_id-deactivate.
      operations:
      - method: POST
        name: automationdeactivate
        description: Deactivate an automation
        call: strings-automations.automationdeactivate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/automations/{automation-id}/trigger
      name: accounts-account-id-automations-automation-id-trigger
      description: REST surface for accounts-account_id-automations-automation_id-trigger.
      operations:
      - method: POST
        name: automationtrigger
        description: Trigger an automation
        call: strings-automations.automationtrigger
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strings-automations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Phrase Strings API Reference — Automations. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-automations
      description: List automations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-automations.automationslist
      outputParameters:
      - type: object
        mapping: $.
    - name: create-automation
      description: Create an automation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-automations.automationcreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-automation
      description: Get a single automation
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-automations.automationshow
      outputParameters:
      - type: object
        mapping: $.
    - name: update-automation
      description: Update an automation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: strings-automations.automationupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: destroy-automation
      description: Destroy automation
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: strings-automations.automationdelete
      outputParameters:
      - type: object
        mapping: $.
    - name: activate-automation
      description: Activate an automation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-automations.automationactivate
      outputParameters:
      - type: object
        mapping: $.
    - name: deactivate-automation
      description: Deactivate an automation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-automations.automationdeactivate
      outputParameters:
      - type: object
        mapping: $.
    - name: trigger-automation
      description: Trigger an automation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-automations.automationtrigger
      outputParameters:
      - type: object
        mapping: $.