StackHawk · Capability

StackHawk API — Applications

StackHawk API — Applications. 11 operations. Lead operation: Get Application. Self-contained Naftiko capability covering one Stackhawk business surface.

Run with Naftiko StackhawkApplications

What You Can Do

GET
Getapplication — Get Application
/v1/api/v1/app/{appid}
POST
Updateapplication — Update Application
/v1/api/v1/app/{appid}
DELETE
Deleteapplication — Delete Application
/v1/api/v1/app/{appid}
POST
Createenvironment — Create Environment
/v1/api/v1/app/{appid}/env
GET
Listenvironments — List Environments
/v1/api/v1/app/{appid}/env/list
POST
Updateenvironment — Update Environment
/v1/api/v1/app/{appid}/env/{envid}
DELETE
Deleteenvironment — Delete Environment
/v1/api/v1/app/{appid}/env/{envid}
GET
Listapplications — List Applications
/v1/api/v1/app/{orgid}/list
POST
Createapplication — Create Application
/v1/api/v1/org/{orgid}/app
GET
Listapplicationsv2 — List Applications V2
/v1/api/v2/org/{orgid}/apps
GET
Listenvironmentsv2 — List Environments V2
/v1/api/v2/org/{orgid}/envs

MCP Tools

get-application

Get Application

read-only idempotent
update-application

Update Application

delete-application

Delete Application

idempotent
create-environment

Create Environment

list-environments

List Environments

read-only idempotent
update-environment

Update Environment

delete-environment

Delete Environment

idempotent
list-applications

List Applications

read-only idempotent
create-application

Create Application

list-applications-v2

List Applications V2

read-only idempotent
list-environments-v2

List Environments V2

read-only idempotent

Capability Spec

stackhawk-applications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: StackHawk API — Applications
  description: 'StackHawk API — Applications. 11 operations. Lead operation: Get Application. Self-contained Naftiko capability
    covering one Stackhawk business surface.'
  tags:
  - Stackhawk
  - Applications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACKHAWK_API_KEY: STACKHAWK_API_KEY
capability:
  consumes:
  - type: http
    namespace: stackhawk-applications
    baseUri: https://api.stackhawk.com
    description: StackHawk API — Applications business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-app-appId
      path: /api/v1/app/{appId}
      operations:
      - name: getapplication
        method: GET
        description: Get Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
      - name: updateapplication
        method: POST
        description: Update Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteapplication
        method: DELETE
        description: Delete Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
    - name: api-v1-app-appId-env
      path: /api/v1/app/{appId}/env
      operations:
      - name: createenvironment
        method: POST
        description: Create Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v1-app-appId-env-list
      path: /api/v1/app/{appId}/env/list
      operations:
      - name: listenvironments
        method: GET
        description: List Environments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
    - name: api-v1-app-appId-env-envId
      path: /api/v1/app/{appId}/env/{envId}
      operations:
      - name: updateenvironment
        method: POST
        description: Update Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
        - name: envId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteenvironment
        method: DELETE
        description: Delete Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appId
          in: path
          type: string
          required: true
        - name: envId
          in: path
          type: string
          required: true
    - name: api-v1-app-orgId-list
      path: /api/v1/app/{orgId}/list
      operations:
      - name: listapplications
        method: GET
        description: List Applications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
    - name: api-v1-org-orgId-app
      path: /api/v1/org/{orgId}/app
      operations:
      - name: createapplication
        method: POST
        description: Create Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: Organization ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-org-orgId-apps
      path: /api/v2/org/{orgId}/apps
      operations:
      - name: listapplicationsv2
        method: GET
        description: List Applications V2
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: pageToken
          in: query
          type: string
        - name: pageSize
          in: query
          type: integer
    - name: api-v2-org-orgId-envs
      path: /api/v2/org/{orgId}/envs
      operations:
      - name: listenvironmentsv2
        method: GET
        description: List Environments V2
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: pageToken
          in: query
          type: string
        - name: pageSize
          in: query
          type: integer
    authentication:
      type: bearer
      token: '{{env.STACKHAWK_API_KEY}}'
  exposes:
  - type: rest
    namespace: stackhawk-applications-rest
    port: 8080
    description: REST adapter for StackHawk API — Applications. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/app/{appid}
      name: api-v1-app-appid
      description: REST surface for api-v1-app-appId.
      operations:
      - method: GET
        name: getapplication
        description: Get Application
        call: stackhawk-applications.getapplication
        with:
          appId: rest.appId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updateapplication
        description: Update Application
        call: stackhawk-applications.updateapplication
        with:
          appId: rest.appId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapplication
        description: Delete Application
        call: stackhawk-applications.deleteapplication
        with:
          appId: rest.appId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/app/{appid}/env
      name: api-v1-app-appid-env
      description: REST surface for api-v1-app-appId-env.
      operations:
      - method: POST
        name: createenvironment
        description: Create Environment
        call: stackhawk-applications.createenvironment
        with:
          appId: rest.appId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/app/{appid}/env/list
      name: api-v1-app-appid-env-list
      description: REST surface for api-v1-app-appId-env-list.
      operations:
      - method: GET
        name: listenvironments
        description: List Environments
        call: stackhawk-applications.listenvironments
        with:
          appId: rest.appId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/app/{appid}/env/{envid}
      name: api-v1-app-appid-env-envid
      description: REST surface for api-v1-app-appId-env-envId.
      operations:
      - method: POST
        name: updateenvironment
        description: Update Environment
        call: stackhawk-applications.updateenvironment
        with:
          appId: rest.appId
          envId: rest.envId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteenvironment
        description: Delete Environment
        call: stackhawk-applications.deleteenvironment
        with:
          appId: rest.appId
          envId: rest.envId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/app/{orgid}/list
      name: api-v1-app-orgid-list
      description: REST surface for api-v1-app-orgId-list.
      operations:
      - method: GET
        name: listapplications
        description: List Applications
        call: stackhawk-applications.listapplications
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/org/{orgid}/app
      name: api-v1-org-orgid-app
      description: REST surface for api-v1-org-orgId-app.
      operations:
      - method: POST
        name: createapplication
        description: Create Application
        call: stackhawk-applications.createapplication
        with:
          orgId: rest.orgId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/org/{orgid}/apps
      name: api-v2-org-orgid-apps
      description: REST surface for api-v2-org-orgId-apps.
      operations:
      - method: GET
        name: listapplicationsv2
        description: List Applications V2
        call: stackhawk-applications.listapplicationsv2
        with:
          orgId: rest.orgId
          pageToken: rest.pageToken
          pageSize: rest.pageSize
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/org/{orgid}/envs
      name: api-v2-org-orgid-envs
      description: REST surface for api-v2-org-orgId-envs.
      operations:
      - method: GET
        name: listenvironmentsv2
        description: List Environments V2
        call: stackhawk-applications.listenvironmentsv2
        with:
          orgId: rest.orgId
          pageToken: rest.pageToken
          pageSize: rest.pageSize
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stackhawk-applications-mcp
    port: 9090
    transport: http
    description: MCP adapter for StackHawk API — Applications. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-application
      description: Get Application
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-applications.getapplication
      with:
        appId: tools.appId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-application
      description: Update Application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackhawk-applications.updateapplication
      with:
        appId: tools.appId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-application
      description: Delete Application
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: stackhawk-applications.deleteapplication
      with:
        appId: tools.appId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-environment
      description: Create Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackhawk-applications.createenvironment
      with:
        appId: tools.appId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-environments
      description: List Environments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-applications.listenvironments
      with:
        appId: tools.appId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-environment
      description: Update Environment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackhawk-applications.updateenvironment
      with:
        appId: tools.appId
        envId: tools.envId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-environment
      description: Delete Environment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: stackhawk-applications.deleteenvironment
      with:
        appId: tools.appId
        envId: tools.envId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-applications
      description: List Applications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-applications.listapplications
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-application
      description: Create Application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackhawk-applications.createapplication
      with:
        orgId: tools.orgId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-applications-v2
      description: List Applications V2
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-applications.listapplicationsv2
      with:
        orgId: tools.orgId
        pageToken: tools.pageToken
        pageSize: tools.pageSize
      outputParameters:
      - type: object
        mapping: $.
    - name: list-environments-v2
      description: List Environments V2
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-applications.listenvironmentsv2
      with:
        orgId: tools.orgId
        pageToken: tools.pageToken
        pageSize: tools.pageSize
      outputParameters:
      - type: object
        mapping: $.