Snyk Container · Capability
Snyk Container API — Targets
Snyk Container API — Targets. 4 operations. Lead operation: List Targets. Self-contained Naftiko capability covering one Snyk Container business surface.
What You Can Do
GET
Listtargets
— List Targets
/v1/orgs/{org-id}/targets
POST
Createtarget
— Create Target
/v1/orgs/{org-id}/targets
GET
Gettarget
— Get Target
/v1/orgs/{org-id}/targets/{target-id}
DELETE
Deletetarget
— Delete Target
/v1/orgs/{org-id}/targets/{target-id}
MCP Tools
list-targets
List Targets
read-only
idempotent
create-target
Create Target
get-target
Get Target
read-only
idempotent
delete-target
Delete Target
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Snyk Container API — Targets
description: 'Snyk Container API — Targets. 4 operations. Lead operation: List Targets. Self-contained Naftiko capability
covering one Snyk Container business surface.'
tags:
- Snyk Container
- Targets
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
SNYK_CONTAINER_API_KEY: SNYK_CONTAINER_API_KEY
capability:
consumes:
- type: http
namespace: snyk-container-targets
baseUri: https://api.snyk.io/rest
description: Snyk Container API — Targets business capability. Self-contained, no shared references.
resources:
- name: orgs-org_id-targets
path: /orgs/{org_id}/targets
operations:
- name: listtargets
method: GET
description: List Targets
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: org_id
in: path
type: string
required: true
- name: version
in: query
type: string
required: true
- name: limit
in: query
type: integer
- name: createtarget
method: POST
description: Create Target
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: org_id
in: path
type: string
required: true
- name: version
in: query
type: string
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: orgs-org_id-targets-target_id
path: /orgs/{org_id}/targets/{target_id}
operations:
- name: gettarget
method: GET
description: Get Target
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: org_id
in: path
type: string
required: true
- name: target_id
in: path
type: string
required: true
- name: version
in: query
type: string
required: true
- name: deletetarget
method: DELETE
description: Delete Target
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: org_id
in: path
type: string
required: true
- name: target_id
in: path
type: string
required: true
- name: version
in: query
type: string
required: true
authentication:
type: bearer
token: '{{env.SNYK_CONTAINER_API_KEY}}'
exposes:
- type: rest
namespace: snyk-container-targets-rest
port: 8080
description: REST adapter for Snyk Container API — Targets. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/orgs/{org-id}/targets
name: orgs-org-id-targets
description: REST surface for orgs-org_id-targets.
operations:
- method: GET
name: listtargets
description: List Targets
call: snyk-container-targets.listtargets
with:
org_id: rest.org_id
version: rest.version
limit: rest.limit
outputParameters:
- type: object
mapping: $.
- method: POST
name: createtarget
description: Create Target
call: snyk-container-targets.createtarget
with:
org_id: rest.org_id
version: rest.version
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/orgs/{org-id}/targets/{target-id}
name: orgs-org-id-targets-target-id
description: REST surface for orgs-org_id-targets-target_id.
operations:
- method: GET
name: gettarget
description: Get Target
call: snyk-container-targets.gettarget
with:
org_id: rest.org_id
target_id: rest.target_id
version: rest.version
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deletetarget
description: Delete Target
call: snyk-container-targets.deletetarget
with:
org_id: rest.org_id
target_id: rest.target_id
version: rest.version
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: snyk-container-targets-mcp
port: 9090
transport: http
description: MCP adapter for Snyk Container API — Targets. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-targets
description: List Targets
hints:
readOnly: true
destructive: false
idempotent: true
call: snyk-container-targets.listtargets
with:
org_id: tools.org_id
version: tools.version
limit: tools.limit
outputParameters:
- type: object
mapping: $.
- name: create-target
description: Create Target
hints:
readOnly: false
destructive: false
idempotent: false
call: snyk-container-targets.createtarget
with:
org_id: tools.org_id
version: tools.version
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-target
description: Get Target
hints:
readOnly: true
destructive: false
idempotent: true
call: snyk-container-targets.gettarget
with:
org_id: tools.org_id
target_id: tools.target_id
version: tools.version
outputParameters:
- type: object
mapping: $.
- name: delete-target
description: Delete Target
hints:
readOnly: false
destructive: true
idempotent: true
call: snyk-container-targets.deletetarget
with:
org_id: tools.org_id
target_id: tools.target_id
version: tools.version
outputParameters:
- type: object
mapping: $.