Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Knative Triggers API

Knative Trigger resources define filtered delivery options for events arriving at a Broker. A Trigger selects events by attribute filters and routes matching events to a destination such as a Knative Service.

Knative Triggers API is one of 13 APIs that Knative publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Triggers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a GitHub repository, an AsyncAPI specification, and 2 JSON Schemas.

This API exposes 4 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against a single base URL, https://kubernetes.default.svc.

4 operations 2 paths 8 schemas 1 DELETE2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Server
https://kubernetes.default.svc
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Knative Triggers API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Kubernetes service account token or user bearer token. RBAC policies control access to Knative Eventing resources.

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 1 DELETE, 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Triggers 4

Knative Trigger resources define filtered delivery options for events arriving at a Broker. A Trigger selects events by attribute filters and routes matching events to a destinati…

GET
/apis/eventing.knative.dev/v1/namespaces/{namespace}/triggers
Knative List Triggers
listTriggers 4 params → 200401
POST
/apis/eventing.knative.dev/v1/namespaces/{namespace}/triggers
Knative Create a Trigger
createTrigger 1 param body → 201400401409
GET
/apis/eventing.knative.dev/v1/namespaces/{namespace}/triggers/{name}
Knative Get a Trigger
getTrigger 2 params → 200401404
DELETE
/apis/eventing.knative.dev/v1/namespaces/{namespace}/triggers/{name}
Knative Delete a Trigger
deleteTrigger 2 params → 200401404

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are ObjectMeta (8 properties), Status (6 properties), DeliverySpec (5 properties), Trigger (5 properties). Each schema is shown below with its type and property counts.

Destination
object
A destination for delivering CloudEvents. Can reference a Kubernetes service, a Knative Service, a Broker, or a Channel via ref, or specify a direct URI.
2 properties
ObjectMeta
object
Standard Kubernetes object metadata.
8 properties 1 required
TriggerList
object
A list of Trigger resources.
4 properties 3 required
Condition
object
A status condition on a Knative resource.
5 properties 2 required
TriggerFilter
object
A filter for selecting CloudEvents based on CloudEvent attributes. Only events matching all specified attribute values will be delivered.
1 property
Trigger
object
A Knative Trigger that subscribes to events from a Broker and routes matching events to a subscriber destination. Triggers support filtering by CloudEvent attr…
5 properties 4 required
Status
object
Kubernetes API Status response.
6 properties
DeliverySpec
object
Delivery configuration for event sources and Brokers.
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

knative-triggers-api-openapi.yml Raw ↑

Other APIs Knative publishes across the network.

Knative Functions
Knative CLI (kn)
Knative Apis API
Knative Brokers API
Knative Channels API
Knative Configurations API
Knative DomainMappings API
Knative EventSources API
Knative EventTypes API
Knative Revisions API
Knative Routes API
Knative Subscriptions API