swshswshPublic API
Download OpenAPIView raw
Webhook

newPhoto

A new photo has been added to the album. Includes images, live photos, and videos. Requires admin access to the album.

Payload

dataobjectrequired
photoIdstringrequired
widthinteger
heightinteger
originalUrlstringrequired
A signed URL to access the uploaded image. For videos, this is a thumbnail image.
stableUrlstringrequired
A signed URL to access the stable version of the image (JPEG or WebP, <15 MB) or a thumbnail of the video (JPEG or WebP, <15 MB)
videoUrlstring
A signed URL to access the originally uploaded video. Only present if the photo is a video or live photo.
downloadUrlstringrequired
A signed URL to download the original file (image or video) as it was uploaded. This URL is either the originalUrl or originalVideoUrl, depending on the media type.
labelsArray<string>
The labels associated with the photo
string
restrictedLabelsArray<string>
The labels associated with the photo that are hidden from non-admin users
string
metadataobject
Additional metadata included in the webhook request. This can be used to pass custom data to the webhook handler. Valid value types are string, number, and boolean.

How to receive

Create a webhook subscription via the createSubscription endpoint. We'll POST the payload above to your configured URL whenever the newPhoto event fires.