List webhook event types
List webhook event types: listWebhookEventTypes in the TypeScript, Python, Rust and Go clients.
GET /v1/projects/{projectId}/webhooks/event-types
Lists the webhook event types available in the requested apiVersion, including their descriptions, audiences and reader-schema URLs. Use this versioned catalog when selecting a destination's enabledEvents. The response may include version-retirement information; an authorized conditional request can return 304 without a body.
photon.projects.listWebhookEventTypes(input: ListWebhookEventTypesInput, options?: RequestOptions): Promise<ListWebhookEventTypesOutput>photon.projects.list_webhook_event_types(input: ListWebhookEventTypesInput, *, options: RequestOptions | None = None) -> models.ListWebhookEventTypesResponseclient.list_webhook_event_types(project_id: String, api_version: Date).await -> Result<ResponseValue<types::ListWebhookEventTypesResponse>, Error<ListWebhookEventTypesError>>client.Projects.ListWebhookEventTypes(ctx context.Context, params *ListWebhookEventTypesParams, opts ...RequestOption) (*ListWebhookEventTypesResponse, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.listWebhookEventTypes({
path: {
projectId: "projectId",
},
query: {
apiVersion: "2026-01-01",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import ListWebhookEventTypesInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.list_webhook_event_types(
ListWebhookEventTypesInput.model_validate({
"path": {
"projectId": "projectId",
},
"query": {
"apiVersion": "2026-01-01",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.list_webhook_event_types(
"projectId".to_owned(),
serde_json::from_value(serde_json::json!("2026-01-01"))?,
)
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Projects.ListWebhookEventTypes(ctx, &photonapi.ListWebhookEventTypesParams{
ProjectID: "projectId",
APIVersion: "2026-01-01",
})
if err != nil {
return err
}
_ = result{
"apiVersion": "2026-01-01",
"contractNamespace": "@photon-hq/contracts",
"events": [
{
"audience": "agent",
"description": "string",
"schemaProfile": "reader",
"schemaUrl": "/v1/projects/pho_prj_00000000000000000000000001/webhooks/event-types/message.received/schema?apiVersion=2026-07-01",
"type": "string"
}
],
"packageVersion": "string",
"retirement": null,
"selectable": true,
"status": "preview",
"successor": null
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 Events available in the selected API version. ListWebhookEventTypesResponse
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
One of: SelectableWebhookEventCatalog
One of: DeprecatedWebhookEventCatalog
304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.