Update the icon of page with local image file, UI shows well.
Use connection token, API (/search or /pages) return the icon correctly while PAT token not. here's the output:
$ curl --request GET --url https://api.notion.com/v1/pages/91e1838c-7bae-8231-9d99-0137ca5ef7b6 --header 'Authorization: Bearer <A connection token>' --header 'Notion-Version: 2026-03-11'
{"object":"page","id":"91e1838c-7bae-8231-9d99-0137ca5ef7b6","created_time":"2026-06-08T03:38:00.000Z","last_edited_time":"2026-06-11T03:48:00.000Z","created_by":{"object":"user","id":"379d872b-594c-8170-9f2e-0002fb1f957b"},"last_edited_by":{"object":"user","id":"379d872b-594c-8170-9f2e-0002fb1f957b"},"cover":null,"icon":{"type":"file","file":{"url":"very long url here","expiry_time":"2026-06-11T06:24:35.067Z"}},"parent":{"type":"workspace","workspace":true},"in_trash":false,"is_archived":false,"is_locked":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Scratchpad","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Scratchpad","href":null}]}},"url":"https://app.notion.com/p/Scratchpad-91e1838c7bae82319d990137ca5ef7b6","public_url":null,"request_id":"98c71895-4d59-408e-9a72-bab03228e12e"}
$
$ curl --request GET --url https://api.notion.com/v1/pages/91e1838c-7bae-8231-9d99-0137ca5ef7b6 --header 'Authorization: Bearer <A PAT token here>' --header 'Notion-Version: 2026-03-11'
{"object":"page","id":"91e1838c-7bae-8231-9d99-0137ca5ef7b6","created_time":"2026-06-08T03:38:00.000Z","last_edited_time":"2026-06-11T03:48:00.000Z","created_by":{"object":"user","id":"379d872b-594c-8170-9f2e-0002fb1f957b"},"last_edited_by":{"object":"user","id":"379d872b-594c-8170-9f2e-0002fb1f957b"},"cover":null,"icon":null,"parent":{"type":"workspace","workspace":true},"in_trash":false,"is_archived":false,"is_locked":false,"properties":{"title":{"id":"title","type":"title","title":[{"type":"text","text":{"content":"Scratchpad","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"Scratchpad","href":null}]}},"url":"https://app.notion.com/p/Scratchpad-91e1838c7bae82319d990137ca5ef7b6","public_url":null,"request_id":"3f0b2a88-6a68-4083-881f-a932ed228cc2"}
$
I check the doc and it says PAT can access file. so it's strange why the icon info was missed.
Please confirm.
Update the icon of page with local image file, UI shows well.
Use connection token, API (/search or /pages) return the icon correctly while PAT token not. here's the output:
I check the doc and it says PAT can access file. so it's strange why the icon info was missed.
Please confirm.