Skip to content

GET /v1/projects/{projectId}/webhooks/destinations

Returns a cursor-paginated page of active webhook destinations configured for the selected project. Use pageSize and pageToken to navigate it. The listing returns destination configuration, never signing secrets.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.listWebhookDestinations({
  path: {
    projectId: "projectId",
  },
});
{
  "destinations": [
    {
      "apiVersion": "2026-01-01",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "deletedAt": null,
      "description": null,
      "destinationId": "string",
      "enabledEvents": [
        null
      ],
      "name": "string",
      "projectId": "string",
      "status": "enabled",
      "updatedAt": "2026-01-01T00:00:00.000Z",
      "url": "https://example.com"
    }
  ],
  "nextPageToken": "string"
}

Parameters

Photon-VersionPhotonVersion

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

projectIdstringrequired
pageSizeinteger
pageTokenstring

Returns

200 One page of active webhook destinations. WebhookDestinationPage

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

destinationsarray of WebhookDestinationrequired
nextPageTokenstring

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.