Get webhook destination
Get webhook destination: getWebhookDestination in the TypeScript, Python, Rust and Go clients.
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>photon.projects.get_webhook_destination(input: GetWebhookDestinationInput, *, options: RequestOptions | None = None) -> models.WebhookDestinationclient.get_webhook_destination(destination_id: String, project_id: String).await -> Result<ResponseValue<types::WebhookDestination>, Error<GetWebhookDestinationError>>client.Projects.GetWebhookDestination(ctx context.Context, params *GetWebhookDestinationParams, opts ...RequestOption) (*WebhookDestination, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetWebhookDestinationInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.get_webhook_destination(
GetWebhookDestinationInput.model_validate({
"path": {
"destinationId": "destinationId",
"projectId": "projectId",
},
})
)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
.get_webhook_destination("destinationId".to_owned(), "projectId".to_owned())
.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.GetWebhookDestination(ctx, &photonapi.GetWebhookDestinationParams{
DestinationID: "destinationId",
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"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
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The requested webhook destination. WebhookDestination
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
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.