StackHawk · Capability

StackHawk API — Organization Teams

StackHawk API — Organization Teams. 7 operations. Lead operation: Create Team. Self-contained Naftiko capability covering one Stackhawk business surface.

Run with Naftiko StackhawkOrganization Teams

What You Can Do

POST
Createteam — Create Team
/v1/api/v1/org/{orgid}/team
GET
Getteam — Get Team
/v1/api/v1/org/{orgid}/team/{teamid}
PUT
Updateteam — Update Team
/v1/api/v1/org/{orgid}/team/{teamid}
DELETE
Deleteteam — Delete Team
/v1/api/v1/org/{orgid}/team/{teamid}
PUT
Updateteamapplications — Update Team Application
/v1/api/v1/org/{orgid}/team/{teamid}/application
GET
Listteams — Find Teams for Organization
/v1/api/v1/org/{orgid}/teams
GET
Findteamsforuser — Find Teams for User
/v1/api/v1/org/{orgid}/user/{userid}/teams

MCP Tools

create-team

Create Team

get-team

Get Team

read-only idempotent
update-team

Update Team

idempotent
delete-team

Delete Team

idempotent
update-team-application

Update Team Application

idempotent
find-teams-organization

Find Teams for Organization

read-only idempotent
find-teams-user

Find Teams for User

read-only idempotent

Capability Spec

stackhawk-organization-teams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: StackHawk API — Organization Teams
  description: 'StackHawk API — Organization Teams. 7 operations. Lead operation: Create Team. Self-contained Naftiko capability
    covering one Stackhawk business surface.'
  tags:
  - Stackhawk
  - Organization Teams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACKHAWK_API_KEY: STACKHAWK_API_KEY
capability:
  consumes:
  - type: http
    namespace: stackhawk-organization-teams
    baseUri: https://api.stackhawk.com
    description: StackHawk API — Organization Teams business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-org-orgId-team
      path: /api/v1/org/{orgId}/team
      operations:
      - name: createteam
        method: POST
        description: Create Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v1-org-orgId-team-teamId
      path: /api/v1/org/{orgId}/team/{teamId}
      operations:
      - name: getteam
        method: GET
        description: Get Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: teamId
          in: path
          type: string
          required: true
      - name: updateteam
        method: PUT
        description: Update Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: teamId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteteam
        method: DELETE
        description: Delete Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: teamId
          in: path
          type: string
          required: true
    - name: api-v1-org-orgId-team-teamId-application
      path: /api/v1/org/{orgId}/team/{teamId}/application
      operations:
      - name: updateteamapplications
        method: PUT
        description: Update Team Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: teamId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v1-org-orgId-teams
      path: /api/v1/org/{orgId}/teams
      operations:
      - name: listteams
        method: GET
        description: Find Teams for Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
    - name: api-v1-org-orgId-user-userId-teams
      path: /api/v1/org/{orgId}/user/{userId}/teams
      operations:
      - name: findteamsforuser
        method: GET
        description: Find Teams for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          required: true
        - name: userId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.STACKHAWK_API_KEY}}'
  exposes:
  - type: rest
    namespace: stackhawk-organization-teams-rest
    port: 8080
    description: REST adapter for StackHawk API — Organization Teams. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/org/{orgid}/team
      name: api-v1-org-orgid-team
      description: REST surface for api-v1-org-orgId-team.
      operations:
      - method: POST
        name: createteam
        description: Create Team
        call: stackhawk-organization-teams.createteam
        with:
          orgId: rest.orgId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/org/{orgid}/team/{teamid}
      name: api-v1-org-orgid-team-teamid
      description: REST surface for api-v1-org-orgId-team-teamId.
      operations:
      - method: GET
        name: getteam
        description: Get Team
        call: stackhawk-organization-teams.getteam
        with:
          orgId: rest.orgId
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateteam
        description: Update Team
        call: stackhawk-organization-teams.updateteam
        with:
          orgId: rest.orgId
          teamId: rest.teamId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteteam
        description: Delete Team
        call: stackhawk-organization-teams.deleteteam
        with:
          orgId: rest.orgId
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/org/{orgid}/team/{teamid}/application
      name: api-v1-org-orgid-team-teamid-application
      description: REST surface for api-v1-org-orgId-team-teamId-application.
      operations:
      - method: PUT
        name: updateteamapplications
        description: Update Team Application
        call: stackhawk-organization-teams.updateteamapplications
        with:
          orgId: rest.orgId
          teamId: rest.teamId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/org/{orgid}/teams
      name: api-v1-org-orgid-teams
      description: REST surface for api-v1-org-orgId-teams.
      operations:
      - method: GET
        name: listteams
        description: Find Teams for Organization
        call: stackhawk-organization-teams.listteams
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/org/{orgid}/user/{userid}/teams
      name: api-v1-org-orgid-user-userid-teams
      description: REST surface for api-v1-org-orgId-user-userId-teams.
      operations:
      - method: GET
        name: findteamsforuser
        description: Find Teams for User
        call: stackhawk-organization-teams.findteamsforuser
        with:
          orgId: rest.orgId
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stackhawk-organization-teams-mcp
    port: 9090
    transport: http
    description: MCP adapter for StackHawk API — Organization Teams. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-team
      description: Create Team
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackhawk-organization-teams.createteam
      with:
        orgId: tools.orgId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-team
      description: Get Team
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-organization-teams.getteam
      with:
        orgId: tools.orgId
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-team
      description: Update Team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: stackhawk-organization-teams.updateteam
      with:
        orgId: tools.orgId
        teamId: tools.teamId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-team
      description: Delete Team
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: stackhawk-organization-teams.deleteteam
      with:
        orgId: tools.orgId
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-team-application
      description: Update Team Application
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: stackhawk-organization-teams.updateteamapplications
      with:
        orgId: tools.orgId
        teamId: tools.teamId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: find-teams-organization
      description: Find Teams for Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-organization-teams.listteams
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.
    - name: find-teams-user
      description: Find Teams for User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackhawk-organization-teams.findteamsforuser
      with:
        orgId: tools.orgId
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.