Knock · Capability

Knock Tenants API — Tenants

Knock Tenants API — Tenants. 6 operations. Lead operation: settenant. Self-contained Naftiko capability covering one Knock business surface.

Knock Tenants API — Tenants is a Naftiko capability published by Knock, one of 13 capabilities the APIs.io network indexes for this provider. It bundles 6 operations across the GET, POST, DELETE, and PUT methods rooted at /v1/v1/tenants.

The capability includes 2 read-only operations and 4 state-changing operations. Lead operation: Delete a tenant. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Knock and Tenants.

Run with Naftiko KnockTenants

What You Can Do

DELETE
Deletetenant — Delete a tenant
/v1/v1/tenants/{id}
GET
Gettenant — Get a tenant
/v1/v1/tenants/{id}
PUT
Settenant — Set a tenant
/v1/v1/tenants/{id}
GET
Listtenants — List tenants
/v1/v1/tenants
POST
Bulkdeletetenants — Bulk delete tenants
/v1/v1/tenants/bulk/delete
POST
Bulksettenants — Bulk set tenants
/v1/v1/tenants/bulk/set

MCP Tools

knock-deletetenant

Delete a tenant

idempotent
knock-gettenant

Get a tenant

read-only idempotent
knock-settenant

Set a tenant

idempotent
knock-listtenants

List tenants

read-only idempotent
knock-bulkdeletetenants

Bulk delete tenants

knock-bulksettenants

Bulk set tenants

Capability Spec

tenants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Knock Tenants API — Tenants
  description: 'Knock Tenants API — Tenants. 6 operations. Lead operation: settenant. Self-contained Naftiko capability covering one Knock business surface.'
  tags:
  - Knock
  - Tenants
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    KNOCK_API_KEY: KNOCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: tenants
    baseUri: https://api.knock.app
    description: Knock Knock Tenants API business capability. Self-contained, no shared references.
    resources:
    - name: v1-tenants-id
      path: /v1/tenants/{id}
      operations:
      - name: deletetenant
        method: DELETE
        description: Delete a tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: gettenant
        method: GET
        description: Get a tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: settenant
        method: PUT
        description: Set a tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          required: true
    - name: v1-tenants
      path: /v1/tenants
      operations:
      - name: listtenants
        method: GET
        description: List tenants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-tenants-bulk-delete
      path: /v1/tenants/bulk/delete
      operations:
      - name: bulkdeletetenants
        method: POST
        description: Bulk delete tenants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: v1-tenants-bulk-set
      path: /v1/tenants/bulk/set
      operations:
      - name: bulksettenants
        method: POST
        description: Bulk set tenants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    authentication:
      type: bearer
      value: '{{env.KNOCK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: tenants-rest
    port: 8080
    description: REST adapter for Knock Knock Tenants API.
    resources:
    - path: /v1/v1/tenants/{id}
      name: v1-tenants-id
      description: REST surface for v1-tenants-id.
      operations:
      - method: DELETE
        name: deletetenant
        description: Delete a tenant
        call: tenants.deletetenant
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: gettenant
        description: Get a tenant
        call: tenants.gettenant
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: settenant
        description: Set a tenant
        call: tenants.settenant
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/tenants
      name: v1-tenants
      description: REST surface for v1-tenants.
      operations:
      - method: GET
        name: listtenants
        description: List tenants
        call: tenants.listtenants
        with: {}
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/tenants/bulk/delete
      name: v1-tenants-bulk-delete
      description: REST surface for v1-tenants-bulk-delete.
      operations:
      - method: POST
        name: bulkdeletetenants
        description: Bulk delete tenants
        call: tenants.bulkdeletetenants
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/tenants/bulk/set
      name: v1-tenants-bulk-set
      description: REST surface for v1-tenants-bulk-set.
      operations:
      - method: POST
        name: bulksettenants
        description: Bulk set tenants
        call: tenants.bulksettenants
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tenants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Knock Knock Tenants API. One tool per consumed operation.
    tools:
    - name: knock-deletetenant
      description: Delete a tenant
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: tenants.deletetenant
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: knock-gettenant
      description: Get a tenant
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tenants.gettenant
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: knock-settenant
      description: Set a tenant
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tenants.settenant
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: knock-listtenants
      description: List tenants
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tenants.listtenants
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: knock-bulkdeletetenants
      description: Bulk delete tenants
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tenants.bulkdeletetenants
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: knock-bulksettenants
      description: Bulk set tenants
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tenants.bulksettenants
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.