Notion API · api · fg-0456

Image and file URLs from the Notion API stop working about an hour after they are fetched

If you see AccessDenied: Request has expired when opening a stored Notion image URL, the cause and the fix for Notion API are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
AccessDenied: Request has expired when opening a stored Notion image URLStatic site built from Notion shows broken images the next dayfile.expiry_time is about one hour after the request time
Cause
Files uploaded into Notion come back as signed links that are valid for one hour, with the cutoff in expiry_time. Only external files keep a permanent URL.
Fix
Download and rehost Notion-hosted files at build or sync time, or fetch the block again when expiry_time has passed. Never store the signed URL.
Apply
const img = block.image; const url = img.type === "file" ? img.file.url : img.external.url; // for type file: download now; img.file.expiry_time marks when url stops working
Affected
Notion REST API, Notion-hosted files (type file), as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun