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 EventSources API

Knative event source resources connect external event producers to the eventing mesh. Built-in sources include ApiServerSource for Kubernetes API events, PingSource for scheduled events, and SinkBinding for injecting sink URIs into workloads.

Knative EventSources 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 EventSources. 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 6 operations across 3 paths, and defines 10 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.

6 operations 3 paths 10 schemas 3 GET3 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 EventSources 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 6

Across 3 paths, the API surfaces 6 operations — 3 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

EventSources 6

Knative event source resources connect external event producers to the eventing mesh. Built-in sources include ApiServerSource for Kubernetes API events, PingSource for scheduled…

GET
/apis/sources.knative.dev/v1/namespaces/{namespace}/apiserversources
Knative List ApiServerSources
listApiServerSources 4 params → 200401
POST
/apis/sources.knative.dev/v1/namespaces/{namespace}/apiserversources
Knative Create an ApiServerSource
createApiServerSource 1 param body → 201400401
GET
/apis/sources.knative.dev/v1/namespaces/{namespace}/pingsources
Knative List PingSources
listPingSources 4 params → 200401
POST
/apis/sources.knative.dev/v1/namespaces/{namespace}/pingsources
Knative Create a PingSource
createPingSource 1 param body → 201400401
GET
/apis/sources.knative.dev/v1/namespaces/{namespace}/sinkbindings
Knative List SinkBindings
listSinkBindings 4 params → 200401
POST
/apis/sources.knative.dev/v1/namespaces/{namespace}/sinkbindings
Knative Create a SinkBinding
createSinkBinding 1 param body → 201400401

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are ObjectMeta (8 properties), Status (6 properties), ApiServerSource (5 properties), Condition (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
PingSourceList
object
A list of PingSource resources.
4 properties 3 required
SinkBinding
object
A Knative SinkBinding that augments a PodSpecable workload by injecting the sink's URI as the KSINK environment variable. This enables existing workloads to se…
5 properties 4 required
Condition
object
A status condition on a Knative resource.
5 properties 2 required
PingSource
object
A Knative PingSource that fires CloudEvents on a cron-based schedule. PingSources are used for periodic triggering of event-driven workflows and scheduled task…
5 properties 4 required
ApiServerSource
object
A Knative ApiServerSource that watches Kubernetes API server events for specified resource types and forwards them as CloudEvents to a sink. Requires a service…
5 properties 4 required
ApiServerSourceList
object
A list of ApiServerSource resources.
4 properties 3 required
SinkBindingList
object
A list of SinkBinding resources.
4 properties 3 required
Status
object
Kubernetes API Status response.
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

knative-eventsources-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 EventTypes API
Knative Revisions API
Knative Routes API
Knative Subscriptions API
Knative Triggers API