Skip to content

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

Deletes the selected project's destination and returns its stable tombstone. Repeated deletion returns the deletion representation. This operation removes the destination configuration; it is separate from disabling a destination through an update.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.deleteWebhookDestination({
  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 stable webhook destination tombstone. WebhookDestination

Headers: 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