Discover versions and events
Payload API versions are calendar dates. Each version has its own event catalog, so list the versions first and then the events for the one you want:Create a destination
Repeat--event for each type you need, or pass --all-events on its own. The
CLI sorts explicit events and rejects duplicates.
--clear-description. URLs are
canonicalized and must use HTTPS, fit in 2,048 characters, and carry no
credentials or fragment. Photon handles DNS, redirect, and private-network
checks at delivery time.
Destinations default to enabled.
Edit and disable
Passing--event to edit replaces the complete subscription rather than
adding to it.
Upgrade the API version
The API version is immutable on an existing destination. Run both in parallel instead:1
Accept both payload versions
Deploy a consumer that handles both versions before any new-version event
can reach it, and keep it while both destinations run.
2
Create a second destination on the new version
Point it at the same or a new endpoint.
3
Verify the new consumer
Confirm the new version’s events are processed correctly.
4
Delete the old destination
Rotate the signing secret
Rotation returns a new secret once and keeps the previous one valid for 86,400 seconds by default:--overlap-seconds accepts 0 through 604800.
Verify deliveries
Photon signs deliveries with the Standard Webhooks format. Verify against the raw request body and thewebhook-id,
webhook-timestamp, and webhook-signature headers before you parse the body.
During an overlap window, accept signatures from either configured secret, then
drop the old one after previousSecretExpiresAt.
JSON output
With--json, each command prints the API’s response as Photon sends it, with
every field in it, including a field the API adds after this CLI release:
list returns 30 destinations unless you pass --limit. nextPageToken is
there only when more destinations remain; pass it to --page-token for the
next page:
create and rotate-secret print a signing secret, once. Photon’s API
doesn’t send it in the response to list, view, edit or delete, and
errors, --debug output and the journal never include it.
The API does not yet offer delivery history, test delivery, or redelivery, so
the CLI has no commands for them.
Catalog metadata
Version discovery reports whether a version is selectable, its successor, and retirement guidance, along with the contract namespace and package version. Event types includeaudience and schemaProfile; schemaUrl is a relative API
path. Resolve it against the same Photon API origin.