Rapid7 · Capability

InsightAppSec API — Targets

InsightAppSec API — Targets. 5 operations. Lead operation: Get Targets. Self-contained Naftiko capability covering one business surface.

InsightAppSec API — Targets is a Naftiko capability published by Rapid7, one of 47 capabilities the APIs.io network indexes for this provider. It bundles 5 operations across the GET, POST, PUT, and DELETE methods rooted at /v1/targets.

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

Tagged areas include Rapid7 and Targets.

Run with Naftiko Rapid7Targets

What You Can Do

GET
Gettargets — Get Targets
/v1/targets
POST
Createtarget — Create Target
/v1/targets
GET
Gettarget — Get Target
/v1/targets/{target-id}
PUT
Updatetarget — Update Target
/v1/targets/{target-id}
DELETE
Deletetarget — Delete Target
/v1/targets/{target-id}

MCP Tools

rapid7-gettargets

Get Targets

read-only idempotent
rapid7-createtarget

Create Target

rapid7-gettarget

Get Target

read-only idempotent
rapid7-updatetarget

Update Target

idempotent
rapid7-deletetarget

Delete Target

idempotent

Capability Spec

insightappsec-targets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: InsightAppSec API — Targets
  description: 'InsightAppSec API — Targets. 5 operations. Lead operation: Get Targets. Self-contained Naftiko capability covering one business surface.'
  tags:
  - Rapid7
  - Targets
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    RAPID7_API_KEY: RAPID7_API_KEY
capability:
  consumes:
  - type: http
    namespace: insightappsec-targets
    baseUri: https://[region].api.insight.rapid7.com/ias/v1
    description: InsightAppSec API — Targets business capability. Self-contained, no shared references.
    resources:
    - name: targets
      path: /targets
      operations:
      - name: gettargets
        method: GET
        description: Get Targets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: index
          in: query
          type: integer
          description: query parameter index.
        - name: size
          in: query
          type: integer
          description: query parameter size.
        - name: sort
          in: query
          type: string
          description: query parameter sort.
        - name: page-token
          in: query
          type: string
          description: query parameter page-token.
      - name: createtarget
        method: POST
        description: Create Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: targets-target-id
      path: /targets/{target-id}
      operations:
      - name: gettarget
        method: GET
        description: Get Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: target-id
          in: path
          type: string
          description: path parameter target-id.
          required: true
      - name: updatetarget
        method: PUT
        description: Update Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: target-id
          in: path
          type: string
          description: path parameter target-id.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletetarget
        method: DELETE
        description: Delete Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: target-id
          in: path
          type: string
          description: path parameter target-id.
          required: true
  exposes:
  - type: rest
    namespace: insightappsec-targets-rest
    port: 8080
    description: REST adapter for InsightAppSec API — Targets. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/targets
      name: targets
      description: REST surface for targets.
      operations:
      - method: GET
        name: gettargets
        description: Get Targets
        call: insightappsec-targets.gettargets
        with:
          index: rest.index
          size: rest.size
          sort: rest.sort
          page-token: rest.page-token
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtarget
        description: Create Target
        call: insightappsec-targets.createtarget
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/targets/{target-id}
      name: targets-target-id
      description: REST surface for targets-target-id.
      operations:
      - method: GET
        name: gettarget
        description: Get Target
        call: insightappsec-targets.gettarget
        with:
          target-id: rest.target-id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatetarget
        description: Update Target
        call: insightappsec-targets.updatetarget
        with:
          target-id: rest.target-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletetarget
        description: Delete Target
        call: insightappsec-targets.deletetarget
        with:
          target-id: rest.target-id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: insightappsec-targets-mcp
    port: 9090
    transport: http
    description: MCP adapter for InsightAppSec API — Targets. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: rapid7-gettargets
      description: Get Targets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: insightappsec-targets.gettargets
      with:
        index: tools.index
        size: tools.size
        sort: tools.sort
        page-token: tools.page-token
      outputParameters:
      - type: object
        mapping: $.
    - name: rapid7-createtarget
      description: Create Target
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: insightappsec-targets.createtarget
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: rapid7-gettarget
      description: Get Target
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: insightappsec-targets.gettarget
      with:
        target-id: tools.target-id
      outputParameters:
      - type: object
        mapping: $.
    - name: rapid7-updatetarget
      description: Update Target
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: insightappsec-targets.updatetarget
      with:
        target-id: tools.target-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: rapid7-deletetarget
      description: Delete Target
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: insightappsec-targets.deletetarget
      with:
        target-id: tools.target-id
      outputParameters:
      - type: object
        mapping: $.