Phrase · Capability

Phrase Strings API Reference — Repo Syncs

Phrase Strings API Reference — Repo Syncs. 7 operations. Lead operation: Get Repo Syncs. Self-contained Naftiko capability covering one Phrase business surface.

Run with Naftiko PhraseRepo Syncs

What You Can Do

GET
Reposynclist — Get Repo Syncs
/v1/accounts/{account-id}/repo-syncs
POST
Reposynccreate — Create a Repo Sync
/v1/accounts/{account-id}/repo-syncs
GET
Reposyncshow — Get a single Repo Sync
/v1/accounts/{account-id}/repo-syncs/{id}
POST
Reposyncactivate — Activate a Repo Sync
/v1/accounts/{account-id}/repo-syncs/{id}/activate
POST
Reposyncdeactivate — Deactivate a Repo Sync
/v1/accounts/{account-id}/repo-syncs/{id}/deactivate
POST
Reposyncexport — Export to code repository
/v1/accounts/{account-id}/repo-syncs/{id}/export
POST
Reposyncimport — Import from code repository
/v1/accounts/{account-id}/repo-syncs/{id}/import

MCP Tools

get-repo-syncs

Get Repo Syncs

read-only idempotent
create-repo-sync

Create a Repo Sync

get-single-repo-sync

Get a single Repo Sync

read-only idempotent
activate-repo-sync

Activate a Repo Sync

deactivate-repo-sync

Deactivate a Repo Sync

export-code-repository

Export to code repository

import-code-repository

Import from code repository

Capability Spec

strings-repo-syncs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Phrase Strings API Reference — Repo Syncs
  description: 'Phrase Strings API Reference — Repo Syncs. 7 operations. Lead operation: Get Repo Syncs. Self-contained Naftiko
    capability covering one Phrase business surface.'
  tags:
  - Phrase
  - Repo Syncs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PHRASE_API_KEY: PHRASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: strings-repo-syncs
    baseUri: https://api.phrase.com/v2
    description: Phrase Strings API Reference — Repo Syncs business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-repo_syncs
      path: /accounts/{account_id}/repo_syncs
      operations:
      - name: reposynclist
        method: GET
        description: Get Repo Syncs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: reposynccreate
        method: POST
        description: Create a Repo Sync
        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-repo_syncs-id
      path: /accounts/{account_id}/repo_syncs/{id}
      operations:
      - name: reposyncshow
        method: GET
        description: Get a single Repo Sync
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-repo_syncs-id-activate
      path: /accounts/{account_id}/repo_syncs/{id}/activate
      operations:
      - name: reposyncactivate
        method: POST
        description: Activate a Repo Sync
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-repo_syncs-id-deactivate
      path: /accounts/{account_id}/repo_syncs/{id}/deactivate
      operations:
      - name: reposyncdeactivate
        method: POST
        description: Deactivate a Repo Sync
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-repo_syncs-id-export
      path: /accounts/{account_id}/repo_syncs/{id}/export
      operations:
      - name: reposyncexport
        method: POST
        description: Export to code repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: accounts-account_id-repo_syncs-id-import
      path: /accounts/{account_id}/repo_syncs/{id}/import
      operations:
      - name: reposyncimport
        method: POST
        description: Import from code repository
        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.PHRASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: strings-repo-syncs-rest
    port: 8080
    description: REST adapter for Phrase Strings API Reference — Repo Syncs. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/repo-syncs
      name: accounts-account-id-repo-syncs
      description: REST surface for accounts-account_id-repo_syncs.
      operations:
      - method: GET
        name: reposynclist
        description: Get Repo Syncs
        call: strings-repo-syncs.reposynclist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: reposynccreate
        description: Create a Repo Sync
        call: strings-repo-syncs.reposynccreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/repo-syncs/{id}
      name: accounts-account-id-repo-syncs-id
      description: REST surface for accounts-account_id-repo_syncs-id.
      operations:
      - method: GET
        name: reposyncshow
        description: Get a single Repo Sync
        call: strings-repo-syncs.reposyncshow
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/repo-syncs/{id}/activate
      name: accounts-account-id-repo-syncs-id-activate
      description: REST surface for accounts-account_id-repo_syncs-id-activate.
      operations:
      - method: POST
        name: reposyncactivate
        description: Activate a Repo Sync
        call: strings-repo-syncs.reposyncactivate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/repo-syncs/{id}/deactivate
      name: accounts-account-id-repo-syncs-id-deactivate
      description: REST surface for accounts-account_id-repo_syncs-id-deactivate.
      operations:
      - method: POST
        name: reposyncdeactivate
        description: Deactivate a Repo Sync
        call: strings-repo-syncs.reposyncdeactivate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/repo-syncs/{id}/export
      name: accounts-account-id-repo-syncs-id-export
      description: REST surface for accounts-account_id-repo_syncs-id-export.
      operations:
      - method: POST
        name: reposyncexport
        description: Export to code repository
        call: strings-repo-syncs.reposyncexport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/repo-syncs/{id}/import
      name: accounts-account-id-repo-syncs-id-import
      description: REST surface for accounts-account_id-repo_syncs-id-import.
      operations:
      - method: POST
        name: reposyncimport
        description: Import from code repository
        call: strings-repo-syncs.reposyncimport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strings-repo-syncs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Phrase Strings API Reference — Repo Syncs. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-repo-syncs
      description: Get Repo Syncs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-repo-syncs.reposynclist
      outputParameters:
      - type: object
        mapping: $.
    - name: create-repo-sync
      description: Create a Repo Sync
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-repo-syncs.reposynccreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-repo-sync
      description: Get a single Repo Sync
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-repo-syncs.reposyncshow
      outputParameters:
      - type: object
        mapping: $.
    - name: activate-repo-sync
      description: Activate a Repo Sync
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-repo-syncs.reposyncactivate
      outputParameters:
      - type: object
        mapping: $.
    - name: deactivate-repo-sync
      description: Deactivate a Repo Sync
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-repo-syncs.reposyncdeactivate
      outputParameters:
      - type: object
        mapping: $.
    - name: export-code-repository
      description: Export to code repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-repo-syncs.reposyncexport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: import-code-repository
      description: Import from code repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-repo-syncs.reposyncimport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.