Humanitec · Capability

Humanitec API — Event

Humanitec API — Event. 7 operations. Lead operation: Deletes all Jobs for the Application. Self-contained Naftiko capability covering one Humanitec business surface.

Run with Naftiko HumanitecEvent

What You Can Do

DELETE
Delete — Deletes all Jobs for the Application
/v1/orgs/{orgid}/apps/{appid}/jobs
GET
Get — List Webhooks
/v1/orgs/{orgid}/apps/{appid}/webhooks
POST
Post — Create a new Webhook
/v1/orgs/{orgid}/apps/{appid}/webhooks
GET
Get — Get a Webhook
/v1/orgs/{orgid}/apps/{appid}/webhooks/{jobid}
DELETE
Delete — Delete a Webhook
/v1/orgs/{orgid}/apps/{appid}/webhooks/{jobid}
PATCH
Patch — Update a Webhook
/v1/orgs/{orgid}/apps/{appid}/webhooks/{jobid}
GET
Get — List Events
/v1/orgs/{orgid}/events

MCP Tools

deletes-all-jobs-application

Deletes all Jobs for the Application

idempotent
list-webhooks

List Webhooks

read-only idempotent
create-new-webhook

Create a new Webhook

get-webhook

Get a Webhook

read-only idempotent
delete-webhook

Delete a Webhook

idempotent
update-webhook

Update a Webhook

idempotent
list-events

List Events

read-only idempotent

Capability Spec

humanitec-event.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Humanitec API — Event
  description: 'Humanitec API — Event. 7 operations. Lead operation: Deletes all Jobs for the Application. Self-contained
    Naftiko capability covering one Humanitec business surface.'
  tags:
  - Humanitec
  - Event
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUMANITEC_API_KEY: HUMANITEC_API_KEY
capability:
  consumes:
  - type: http
    namespace: humanitec-event
    baseUri: https://api.humanitec.io
    description: Humanitec API — Event business capability. Self-contained, no shared references.
    resources:
    - name: orgs-orgId-apps-appId-jobs
      path: /orgs/{orgId}/apps/{appId}/jobs
      operations:
      - name: delete
        method: DELETE
        description: Deletes all Jobs for the Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
    - name: orgs-orgId-apps-appId-webhooks
      path: /orgs/{orgId}/apps/{appId}/webhooks
      operations:
      - name: get
        method: GET
        description: List Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
      - name: post
        method: POST
        description: Create a new Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-orgId-apps-appId-webhooks-jobId
      path: /orgs/{orgId}/apps/{appId}/webhooks/{jobId}
      operations:
      - name: get
        method: GET
        description: Get a Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
        - name: jobId
          in: path
          type: string
          description: The Webhook ID.
          required: true
      - name: delete
        method: DELETE
        description: Delete a Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
        - name: jobId
          in: path
          type: string
          description: The Webhook ID.
          required: true
      - name: patch
        method: PATCH
        description: Update a Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: appId
          in: path
          type: string
          description: The Application ID.
          required: true
        - name: jobId
          in: path
          type: string
          description: The Webhook ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-orgId-events
      path: /orgs/{orgId}/events
      operations:
      - name: get
        method: GET
        description: List Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
  exposes:
  - type: rest
    namespace: humanitec-event-rest
    port: 8080
    description: REST adapter for Humanitec API — Event. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{orgid}/apps/{appid}/jobs
      name: orgs-orgid-apps-appid-jobs
      description: REST surface for orgs-orgId-apps-appId-jobs.
      operations:
      - method: DELETE
        name: delete
        description: Deletes all Jobs for the Application
        call: humanitec-event.delete
        with:
          orgId: rest.orgId
          appId: rest.appId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/apps/{appid}/webhooks
      name: orgs-orgid-apps-appid-webhooks
      description: REST surface for orgs-orgId-apps-appId-webhooks.
      operations:
      - method: GET
        name: get
        description: List Webhooks
        call: humanitec-event.get
        with:
          orgId: rest.orgId
          appId: rest.appId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a new Webhook
        call: humanitec-event.post
        with:
          orgId: rest.orgId
          appId: rest.appId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/apps/{appid}/webhooks/{jobid}
      name: orgs-orgid-apps-appid-webhooks-jobid
      description: REST surface for orgs-orgId-apps-appId-webhooks-jobId.
      operations:
      - method: GET
        name: get
        description: Get a Webhook
        call: humanitec-event.get
        with:
          orgId: rest.orgId
          appId: rest.appId
          jobId: rest.jobId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Webhook
        call: humanitec-event.delete
        with:
          orgId: rest.orgId
          appId: rest.appId
          jobId: rest.jobId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Update a Webhook
        call: humanitec-event.patch
        with:
          orgId: rest.orgId
          appId: rest.appId
          jobId: rest.jobId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/events
      name: orgs-orgid-events
      description: REST surface for orgs-orgId-events.
      operations:
      - method: GET
        name: get
        description: List Events
        call: humanitec-event.get
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: humanitec-event-mcp
    port: 9090
    transport: http
    description: MCP adapter for Humanitec API — Event. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: deletes-all-jobs-application
      description: Deletes all Jobs for the Application
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: humanitec-event.delete
      with:
        orgId: tools.orgId
        appId: tools.appId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-webhooks
      description: List Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-event.get
      with:
        orgId: tools.orgId
        appId: tools.appId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-webhook
      description: Create a new Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: humanitec-event.post
      with:
        orgId: tools.orgId
        appId: tools.appId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-webhook
      description: Get a Webhook
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-event.get
      with:
        orgId: tools.orgId
        appId: tools.appId
        jobId: tools.jobId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-webhook
      description: Delete a Webhook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: humanitec-event.delete
      with:
        orgId: tools.orgId
        appId: tools.appId
        jobId: tools.jobId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-webhook
      description: Update a Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: humanitec-event.patch
      with:
        orgId: tools.orgId
        appId: tools.appId
        jobId: tools.jobId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-events
      description: List Events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-event.get
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.