Phrase · Capability

Phrase Strings API Reference — Comment Reactions

Phrase Strings API Reference — Comment Reactions. 4 operations. Lead operation: List reactions. Self-contained Naftiko capability covering one Phrase business surface.

Run with Naftiko PhraseComment Reactions

What You Can Do

GET
Reactionslist — List reactions
/v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions
POST
Reactioncreate — Create a reaction
/v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions
GET
Reactionshow — Get a single reaction
/v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions/{id}
DELETE
Reactiondelete — Delete a reaction
/v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions/{id}

MCP Tools

list-reactions

List reactions

read-only idempotent
create-reaction

Create a reaction

get-single-reaction

Get a single reaction

read-only idempotent
delete-reaction

Delete a reaction

idempotent

Capability Spec

strings-comment-reactions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Phrase Strings API Reference — Comment Reactions
  description: 'Phrase Strings API Reference — Comment Reactions. 4 operations. Lead operation: List reactions. Self-contained
    Naftiko capability covering one Phrase business surface.'
  tags:
  - Phrase
  - Comment Reactions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PHRASE_API_KEY: PHRASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: strings-comment-reactions
    baseUri: https://api.phrase.com/v2
    description: Phrase Strings API Reference — Comment Reactions business capability. Self-contained, no shared references.
    resources:
    - name: projects-project_id-keys-key_id-comments-comment_id-reactions
      path: /projects/{project_id}/keys/{key_id}/comments/{comment_id}/reactions
      operations:
      - name: reactionslist
        method: GET
        description: List reactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: specify the branch to use
      - name: reactioncreate
        method: POST
        description: Create a reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: specify the branch to use
        - name: emoji
          in: query
          type: string
          description: specify the emoji for the reaction
    - name: projects-project_id-keys-key_id-comments-comment_id-reactions-id
      path: /projects/{project_id}/keys/{key_id}/comments/{comment_id}/reactions/{id}
      operations:
      - name: reactionshow
        method: GET
        description: Get a single reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: specify the branch to use
      - name: reactiondelete
        method: DELETE
        description: Delete a reaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: specify the branch to use
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.PHRASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: strings-comment-reactions-rest
    port: 8080
    description: REST adapter for Phrase Strings API Reference — Comment Reactions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions
      name: projects-project-id-keys-key-id-comments-comment-id-reactions
      description: REST surface for projects-project_id-keys-key_id-comments-comment_id-reactions.
      operations:
      - method: GET
        name: reactionslist
        description: List reactions
        call: strings-comment-reactions.reactionslist
        with:
          branch: rest.branch
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: reactioncreate
        description: Create a reaction
        call: strings-comment-reactions.reactioncreate
        with:
          branch: rest.branch
          emoji: rest.emoji
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{project-id}/keys/{key-id}/comments/{comment-id}/reactions/{id}
      name: projects-project-id-keys-key-id-comments-comment-id-reactions-id
      description: REST surface for projects-project_id-keys-key_id-comments-comment_id-reactions-id.
      operations:
      - method: GET
        name: reactionshow
        description: Get a single reaction
        call: strings-comment-reactions.reactionshow
        with:
          branch: rest.branch
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: reactiondelete
        description: Delete a reaction
        call: strings-comment-reactions.reactiondelete
        with:
          branch: rest.branch
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strings-comment-reactions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Phrase Strings API Reference — Comment Reactions. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-reactions
      description: List reactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-comment-reactions.reactionslist
      with:
        branch: tools.branch
      outputParameters:
      - type: object
        mapping: $.
    - name: create-reaction
      description: Create a reaction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: strings-comment-reactions.reactioncreate
      with:
        branch: tools.branch
        emoji: tools.emoji
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-reaction
      description: Get a single reaction
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strings-comment-reactions.reactionshow
      with:
        branch: tools.branch
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-reaction
      description: Delete a reaction
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: strings-comment-reactions.reactiondelete
      with:
        branch: tools.branch
      outputParameters:
      - type: object
        mapping: $.