Slack · Capability

Slack Views API — Publish

Slack Views API — Publish. 1 operations. Lead operation: Slack Get Views Publish. Self-contained Naftiko capability covering one Slack business surface.

Run with Naftiko SlackPublish

What You Can Do

GET
Getviewspublish — Slack Get Views Publish
/v1/views-publish

MCP Tools

slack-get-views-publish

Slack Get Views Publish

read-only idempotent

Capability Spec

views-publish.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Slack Views API — Publish
  description: 'Slack Views API — Publish. 1 operations. Lead operation: Slack Get Views Publish. Self-contained Naftiko capability
    covering one Slack business surface.'
  tags:
  - Slack
  - Publish
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SLACK_API_KEY: SLACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: views-publish
    baseUri: ''
    description: Slack Views API — Publish business capability. Self-contained, no shared references.
    resources:
    - name: views.publish
      path: /views.publish
      operations:
      - name: getviewspublish
        method: GET
        description: Slack Get Views Publish
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: token
          in: header
          type: string
          description: 'Authentication token. Requires scope: `none`'
          required: true
        - name: user_id
          in: query
          type: string
          description: '`id` of the user you want publish a view to.'
          required: true
        - name: view
          in: query
          type: string
          description: A [view payload](/reference/surfaces/views). This must be a JSON-encoded string.
          required: true
        - name: hash
          in: query
          type: string
          description: A string that represents view state to protect against possible race conditions.
  exposes:
  - type: rest
    namespace: views-publish-rest
    port: 8080
    description: REST adapter for Slack Views API — Publish. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/views-publish
      name: views-publish
      description: REST surface for views.publish.
      operations:
      - method: GET
        name: getviewspublish
        description: Slack Get Views Publish
        call: views-publish.getviewspublish
        with:
          token: rest.token
          user_id: rest.user_id
          view: rest.view
          hash: rest.hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: views-publish-mcp
    port: 9090
    transport: http
    description: MCP adapter for Slack Views API — Publish. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: slack-get-views-publish
      description: Slack Get Views Publish
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: views-publish.getviewspublish
      with:
        token: tools.token
        user_id: tools.user_id
        view: tools.view
        hash: tools.hash
      outputParameters:
      - type: object
        mapping: $.