Phrase · Capability

Phrase Strings API Reference — Spaces

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

Run with Naftiko PhraseSpaces

What You Can Do

GET
Spaceslist — List Spaces
/v1/accounts/{account-id}/spaces
POST
Spacecreate — Create a Space
/v1/accounts/{account-id}/spaces
GET
Spaceshow — Get Space
/v1/accounts/{account-id}/spaces/{id}
PATCH
Spaceupdate — Update Space
/v1/accounts/{account-id}/spaces/{id}
DELETE
Spacedelete — Delete Space
/v1/accounts/{account-id}/spaces/{id}
GET
Spacesprojectslist — List Projects in Space
/v1/accounts/{account-id}/spaces/{space-id}/projects
POST
Spacesprojectscreate — Add Project to Space
/v1/accounts/{account-id}/spaces/{space-id}/projects
DELETE
Spacesprojectsdelete — Remove Project from Space
/v1/accounts/{account-id}/spaces/{space-id}/projects/{id}

MCP Tools

list-spaces

List Spaces

read-only idempotent
create-space

Create a Space

get-space

Get Space

read-only idempotent
update-space

Update Space

idempotent
delete-space

Delete Space

idempotent
list-projects-space

List Projects in Space

read-only idempotent
add-project-space

Add Project to Space

remove-project-space

Remove Project from Space

idempotent

Capability Spec

strings-spaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Phrase Strings API Reference — Spaces
  description: 'Phrase Strings API Reference — Spaces. 8 operations. Lead operation: List Spaces. Self-contained Naftiko capability
    covering one Phrase business surface.'
  tags:
  - Phrase
  - Spaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PHRASE_API_KEY: PHRASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: strings-spaces
    baseUri: https://api.phrase.com/v2
    description: Phrase Strings API Reference — Spaces business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-spaces
      path: /accounts/{account_id}/spaces
      operations:
      - name: spaceslist
        method: GET
        description: List Spaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: spacecreate
        method: POST
        description: Create a Space
        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-spaces-id
      path: /accounts/{account_id}/spaces/{id}
      operations:
      - name: spaceshow
        method: GET
        description: Get Space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: spaceupdate
        method: PATCH
        description: Update Space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: spacedelete
        method: DELETE
        description: Delete Space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id-spaces-space_id-projects
      path: /accounts/{account_id}/spaces/{space_id}/projects
      operations:
      - name: spacesprojectslist
        method: GET
        description: List Projects in Space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: spacesprojectscreate
        method: POST
        description: Add Project to Space
        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-spaces-space_id-projects-id
      path: /accounts/{account_id}/spaces/{space_id}/projects/{id}
      operations:
      - name: spacesprojectsdelete
        method: DELETE
        description: Remove Project from Space
        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-spaces-rest
    port: 8080
    description: REST adapter for Phrase Strings API Reference — Spaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/spaces
      name: accounts-account-id-spaces
      description: REST surface for accounts-account_id-spaces.
      operations:
      - method: GET
        name: spaceslist
        description: List Spaces
        call: strings-spaces.spaceslist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: spacecreate
        description: Create a Space
        call: strings-spaces.spacecreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/spaces/{id}
      name: accounts-account-id-spaces-id
      description: REST surface for accounts-account_id-spaces-id.
      operations:
      - method: GET
        name: spaceshow
        description: Get Space
        call: strings-spaces.spaceshow
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: spaceupdate
        description: Update Space
        call: strings-spaces.spaceupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: spacedelete
        description: Delete Space
        call: strings-spaces.spacedelete
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/spaces/{space-id}/projects
      name: accounts-account-id-spaces-space-id-projects
      description: REST surface for accounts-account_id-spaces-space_id-projects.
      operations:
      - method: GET
        name: spacesprojectslist
        description: List Projects in Space
        call: strings-spaces.spacesprojectslist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: spacesprojectscreate
        description: Add Project to Space
        call: strings-spaces.spacesprojectscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/spaces/{space-id}/projects/{id}
      name: accounts-account-id-spaces-space-id-projects-id
      description: REST surface for accounts-account_id-spaces-space_id-projects-id.
      operations:
      - method: DELETE
        name: spacesprojectsdelete
        description: Remove Project from Space
        call: strings-spaces.spacesprojectsdelete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strings-spaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Phrase Strings API Reference — Spaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-spaces
      description: List Spaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-spaces.spaceslist
      outputParameters:
      - type: object
        mapping: $.
    - name: create-space
      description: Create a Space
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-spaces.spacecreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-space
      description: Get Space
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-spaces.spaceshow
      outputParameters:
      - type: object
        mapping: $.
    - name: update-space
      description: Update Space
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: strings-spaces.spaceupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-space
      description: Delete Space
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: strings-spaces.spacedelete
      outputParameters:
      - type: object
        mapping: $.
    - name: list-projects-space
      description: List Projects in Space
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-spaces.spacesprojectslist
      outputParameters:
      - type: object
        mapping: $.
    - name: add-project-space
      description: Add Project to Space
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-spaces.spacesprojectscreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-project-space
      description: Remove Project from Space
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: strings-spaces.spacesprojectsdelete
      outputParameters:
      - type: object
        mapping: $.