Skip to content

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

Returns the configuration of one webhook destination belonging to the selected project. Missing or deleted destinations are reported as errors. This read does not disclose the signing secret returned when the destination or a secret rotation was created.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.getWebhookDestination({
  path: {
    destinationId: "destinationId",
    projectId: "projectId",
  },
});
{
  "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"
}

Parameters

Photon-VersionPhotonVersion

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

destinationIdstringrequired
projectIdstringrequired

Returns

200 The requested webhook destination. WebhookDestination

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

apiVersionstring (date)required
createdAtstring (date-time)required
deletedAtstring (date-time) | nullrequired
descriptionstring | nullrequired
destinationIdstringrequired
enabledEventsWebhookEventSelectionrequired
namestringrequired
projectIdstringrequired
statusWebhookDestinationStatusrequired
updatedAtstring (date-time)required
urlstring (uri)required

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.