Knock · Capability

Knock API — Slack

Knock API — Slack. 3 operations. Lead operation: Check auth. Self-contained Naftiko capability covering one Knock business surface.

Run with Naftiko KnockSlack

What You Can Do

GET
Slackproviderauthcheck — Check auth
/v1/v1/providers/slack/{channel-id}/auth-check
GET
Listchannelsforslackprovider — List channels
/v1/v1/providers/slack/{channel-id}/channels
PUT
Slackproviderrevokeaccess — Revoke access
/v1/v1/providers/slack/{channel-id}/revoke-access

MCP Tools

check-auth

Check auth

read-only idempotent
list-channels

List channels

read-only idempotent
revoke-access

Revoke access

idempotent

Capability Spec

knock-slack.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Knock API — Slack
  description: 'Knock API — Slack. 3 operations. Lead operation: Check auth. Self-contained Naftiko capability covering one
    Knock business surface.'
  tags:
  - Knock
  - Slack
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KNOCK_API_KEY: KNOCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: knock-slack
    baseUri: https://api.knock.app
    description: Knock API — Slack business capability. Self-contained, no shared references.
    resources:
    - name: v1-providers-slack-channel_id-auth_check
      path: /v1/providers/slack/{channel_id}/auth_check
      operations:
      - name: slackproviderauthcheck
        method: GET
        description: Check auth
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: channel_id
          in: path
          type: string
          description: The ID of the Knock Slack channel to check.
          required: true
        - name: access_token_object
          in: query
          type: string
          description: A JSON encoded string containing the access token object reference.
          required: true
    - name: v1-providers-slack-channel_id-channels
      path: /v1/providers/slack/{channel_id}/channels
      operations:
      - name: listchannelsforslackprovider
        method: GET
        description: List channels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: channel_id
          in: path
          type: string
          description: The ID of the Knock Slack channel to get channels for.
          required: true
        - name: access_token_object
          in: query
          type: string
          description: A JSON encoded string containing the access token object reference.
          required: true
        - name: query_options.cursor
          in: query
          type: string
          description: Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned
            by a previous request's response_metadata. Default valu
        - name: query_options.limit
          in: query
          type: integer
          description: The maximum number of channels to return. Defaults to 200.
        - name: query_options.exclude_archived
          in: query
          type: boolean
          description: Set to true to exclude archived channels from the list. Defaults to `true` when not explicitly provided.
        - name: query_options.types
          in: query
          type: string
          description: Mix and match channel types by providing a comma-separated list of any combination of public_channel,
            private_channel, mpim, im. Defaults to `"public_channel,pr
        - name: query_options.team_id
          in: query
          type: string
          description: Encoded team ID (T1234) to list channels in, required if org token is used.
    - name: v1-providers-slack-channel_id-revoke_access
      path: /v1/providers/slack/{channel_id}/revoke_access
      operations:
      - name: slackproviderrevokeaccess
        method: PUT
        description: Revoke access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: channel_id
          in: path
          type: string
          description: The ID of the Knock Slack channel to revoke access for.
          required: true
        - name: access_token_object
          in: query
          type: string
          description: A JSON encoded string containing the access token object reference.
          required: true
    authentication:
      type: bearer
      token: '{{env.KNOCK_API_KEY}}'
  exposes:
  - type: rest
    namespace: knock-slack-rest
    port: 8080
    description: REST adapter for Knock API — Slack. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/v1/providers/slack/{channel-id}/auth-check
      name: v1-providers-slack-channel-id-auth-check
      description: REST surface for v1-providers-slack-channel_id-auth_check.
      operations:
      - method: GET
        name: slackproviderauthcheck
        description: Check auth
        call: knock-slack.slackproviderauthcheck
        with:
          channel_id: rest.channel_id
          access_token_object: rest.access_token_object
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/providers/slack/{channel-id}/channels
      name: v1-providers-slack-channel-id-channels
      description: REST surface for v1-providers-slack-channel_id-channels.
      operations:
      - method: GET
        name: listchannelsforslackprovider
        description: List channels
        call: knock-slack.listchannelsforslackprovider
        with:
          channel_id: rest.channel_id
          access_token_object: rest.access_token_object
          query_options.cursor: rest.query_options.cursor
          query_options.limit: rest.query_options.limit
          query_options.exclude_archived: rest.query_options.exclude_archived
          query_options.types: rest.query_options.types
          query_options.team_id: rest.query_options.team_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/providers/slack/{channel-id}/revoke-access
      name: v1-providers-slack-channel-id-revoke-access
      description: REST surface for v1-providers-slack-channel_id-revoke_access.
      operations:
      - method: PUT
        name: slackproviderrevokeaccess
        description: Revoke access
        call: knock-slack.slackproviderrevokeaccess
        with:
          channel_id: rest.channel_id
          access_token_object: rest.access_token_object
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: knock-slack-mcp
    port: 9090
    transport: http
    description: MCP adapter for Knock API — Slack. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: check-auth
      description: Check auth
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: knock-slack.slackproviderauthcheck
      with:
        channel_id: tools.channel_id
        access_token_object: tools.access_token_object
      outputParameters:
      - type: object
        mapping: $.
    - name: list-channels
      description: List channels
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: knock-slack.listchannelsforslackprovider
      with:
        channel_id: tools.channel_id
        access_token_object: tools.access_token_object
        query_options.cursor: tools.query_options.cursor
        query_options.limit: tools.query_options.limit
        query_options.exclude_archived: tools.query_options.exclude_archived
        query_options.types: tools.query_options.types
        query_options.team_id: tools.query_options.team_id
      outputParameters:
      - type: object
        mapping: $.
    - name: revoke-access
      description: Revoke access
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: knock-slack.slackproviderrevokeaccess
      with:
        channel_id: tools.channel_id
        access_token_object: tools.access_token_object
      outputParameters:
      - type: object
        mapping: $.