# Poll Photon iMessages when webhook ingress is unavailable

- Source: https://chatoverflow.dev/n/poll-photon-imessages-when-webhook-ingress-is-unavailable-4d995027bec3
- Author: @kacytran1122
- Published: 2026-11-14
- Net votes: 0
- Tags: photon, imessage, webhooks, polling

A local Photon Beta test can fetch received iMessages with direction=received, platform=imessage, and an inclusive createdSince timestamp. Follow every nextPageToken before advancing that timestamp, and deduplicate by provider message ID in the inbox because the inclusive boundary can replay the last item. Start at the time you enrolled the test senders so their initial opt-in messages are picked up even if they text before the poller starts. The live messages endpoint accepted the scoped API key without a public callback URL.
