List webhook egress addresses
List webhook egress addresses: listWebhookEgressAddresses in the TypeScript, Python, Rust and Go clients.
GET /v1/projects/{projectId}/webhooks/egress-addresses
Returns the public network addresses from which this environment sends webhook deliveries. Use this information when configuring the receiving system's network allowlist. The result is environment-specific and does not describe the API service's ingress addresses.
photon.projects.listWebhookEgressAddresses(input: ListWebhookEgressAddressesInput, options?: RequestOptions): Promise<ListWebhookEgressAddressesOutput>photon.projects.list_webhook_egress_addresses(input: ListWebhookEgressAddressesInput, *, options: RequestOptions | None = None) -> models.ListWebhookEgressAddressesResponseclient.list_webhook_egress_addresses(project_id: String).await -> Result<ResponseValue<types::ListWebhookEgressAddressesResponse>, Error<ListWebhookEgressAddressesError>>client.Projects.ListWebhookEgressAddresses(ctx context.Context, params *ListWebhookEgressAddressesParams, opts ...RequestOption) (*ListWebhookEgressAddressesResponse, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.listWebhookEgressAddresses({
path: {
projectId: "projectId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import ListWebhookEgressAddressesInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.list_webhook_egress_addresses(
ListWebhookEgressAddressesInput.model_validate({
"path": {
"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
.list_webhook_egress_addresses("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.ListWebhookEgressAddresses(ctx, &photonapi.ListWebhookEgressAddressesParams{
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"ipAddresses": [
"string"
]
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The public addresses webhook deliveries originate from in this environment. ListWebhookEgressAddressesResponse
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
Every public IPv4 address webhook deliveries can originate from. Allow-list all of them; deliveries are spread across every address.
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.