Skip to content

GET /v1/projects/{projectId}/webhooks/api-versions

Lists the published webhook payload API versions and their lifecycle metadata. The list is the same for every project. Use the selectable indicator when choosing a version for a destination. These payload dates are separate from SDK package versions. An authorized conditional request may return 304 without a response body.

photon.projects.listWebhookApiVersions(input: ListWebhookApiVersionsInput, options?: RequestOptions): Promise<ListWebhookApiVersionsOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.listWebhookApiVersions({
  path: {
    projectId: "projectId",
  },
});
{
  "apiVersions": [
    {
      "retirement": null,
      "selectable": true,
      "status": "preview",
      "successor": null,
      "version": "2026-01-01"
    }
  ],
  "contractNamespace": "@photon-hq/contracts",
  "packageVersion": "string"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

projectIdstringrequired

Returns

200 Published webhook payload API versions. ListWebhookApiVersionsResponse

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.

apiVersionsarray of WebhookApiVersionrequired
contractNamespaceunknownrequired
packageVersionstringrequired

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.