[{"data":1,"prerenderedAt":1180},["ShallowReactive",2],{"content-query-cldqRUqSPm":3,"content-query-W4RtfFQaoh":979,"content-query-yP1cWMns5L":1004,"content-query-M5aWdXgQKx":1008,"content-query-eJ9XWy0CGH":1015,"content-query-UP87PRcOMw":1028,"content-query-7VgBfxLOWV":1032,"content-query-Z6fTkbgt1D":1054,"content-query-j8GGVgf9na":1062,"content-query-9giMhwHrGj":1075,"content-query-G03kJtQzJS":1082,"content-query-1mvwAKmUBq":1101,"content-query-No6iPTj4EO":1124,"content-query-zRSmsuVl55":1134,"content-query-MsdmgXewTK":1138,"content-query-BMhIInEJl2":1145},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"intro":9,"type":10,"layout":11,"tags":12,"body":15,"_type":972,"_id":973,"_source":974,"_file":975,"_stem":976,"_extension":977,"sitemap":978},"/docs/tutorials/email/notion","email",false,"","Email to Notion","Capture any inbound email into a Notion database — Webhook Relay parses the email to JSON and a transform turns it into a new Notion page, automatically.","tutorial","doc",[13,14],"Email","Webhook Forwarding",{"type":16,"children":17,"toc":966},"root",[18,40,69,76,81,101,139,144,407,451,457,467,485,503,521,539,556,562,590,863,884,929,935,948,960],{"type":19,"tag":20,"props":21,"children":22},"element","p",{},[23,26,31,33,38],{"type":24,"value":25},"text","Plenty of things worth tracking still arrive as ",{"type":19,"tag":27,"props":28,"children":29},"strong",{},[30],{"type":24,"value":5},{"type":24,"value":32},": inbound leads, support requests, newsletters and articles you mean to read later, vendor notifications. Notion is where many teams keep that kind of structured record — but copy-pasting each message into a database by hand doesn't scale. You want every email to become a ",{"type":19,"tag":27,"props":34,"children":35},{},[36],{"type":24,"value":37},"Notion page",{"type":24,"value":39}," automatically, with the subject, sender and body already filled in.",{"type":19,"tag":20,"props":41,"children":42},{},[43,52,54,60,62,67],{"type":19,"tag":44,"props":45,"children":49},"a",{"href":46,"rel":47},"https://webhookrelay.com",[48],"nofollow",[50],{"type":24,"value":51},"Webhook Relay",{"type":24,"value":53}," can ",{"type":19,"tag":44,"props":55,"children":57},{"href":56},"/docs/email",[58],{"type":24,"value":59},"receive emails as webhooks",{"type":24,"value":61},". You give an inbox a unique address, every message sent to it is parsed into JSON, and a small ",{"type":19,"tag":27,"props":63,"children":64},{},[65],{"type":24,"value":66},"transform",{"type":24,"value":68}," reshapes it into the format the Notion API expects before delivery — no mail server, no glue code, no polling.",{"type":19,"tag":70,"props":71,"children":73},"h2",{"id":72},"how-it-works",[74],{"type":24,"value":75},"How it works",{"type":19,"tag":20,"props":77,"children":78},{},[79],{"type":24,"value":80},"The whole path is a single hop with a transform in the middle:",{"type":19,"tag":82,"props":83,"children":86},"pre",{"className":84,"code":85,"language":24,"meta":7,"style":7},"language-text shiki shiki-themes github-dark","inbound email  ──▶  Webhook Relay (parse + transform)  ──▶  Notion API  ──▶  new page\n",[87],{"type":19,"tag":88,"props":89,"children":90},"code",{"__ignoreMap":7},[91],{"type":19,"tag":92,"props":93,"children":96},"span",{"class":94,"line":95},"line",1,[97],{"type":19,"tag":92,"props":98,"children":99},{},[100],{"type":24,"value":85},{"type":19,"tag":20,"props":102,"children":103},{},[104,106,113,115,121,123,129,131,137],{"type":24,"value":105},"When an email hits your Webhook Relay address, it's parsed into a structured JSON document and POSTed to the bucket's outputs. Notion's ",{"type":19,"tag":44,"props":107,"children":110},{"href":108,"rel":109},"https://developers.notion.com/reference/post-page",[48],[111],{"type":24,"value":112},"create-a-page endpoint",{"type":24,"value":114}," doesn't understand that shape — it expects a ",{"type":19,"tag":88,"props":116,"children":118},{"className":117},[],[119],{"type":24,"value":120},"parent",{"type":24,"value":122},", a ",{"type":19,"tag":88,"props":124,"children":126},{"className":125},[],[127],{"type":24,"value":128},"properties",{"type":24,"value":130}," object and optional ",{"type":19,"tag":88,"props":132,"children":134},{"className":133},[],[135],{"type":24,"value":136},"children",{"type":24,"value":138}," blocks — so the transform converts one into the other in flight.",{"type":19,"tag":20,"props":140,"children":141},{},[142],{"type":24,"value":143},"The parsed email looks like this:",{"type":19,"tag":82,"props":145,"children":149},{"className":146,"code":147,"language":148,"meta":7,"style":7},"language-json shiki shiki-themes github-dark","{\n  \"from\": \"jon@example.com\",\n  \"from_name\": \"Jon Snow\",\n  \"recipient\": \"\u003Cuuid>@in.webhookrelay-mail.com\",\n  \"subject\": \"Partnership inquiry\",\n  \"date\": \"Fri, 26 Jun 2026 11:27:41 +0400\",\n  \"text\": \"plain body\",\n  \"html\": \"\u003Cp>html body\u003C/p>\",\n  \"spf\": \"pass\",\n  \"dkim\": \"pass\",\n  \"dmarc\": \"pass\",\n  \"attachments\": []\n}\n","json",[150],{"type":19,"tag":88,"props":151,"children":152},{"__ignoreMap":7},[153,162,188,210,232,254,276,298,320,342,363,384,398],{"type":19,"tag":92,"props":154,"children":155},{"class":94,"line":95},[156],{"type":19,"tag":92,"props":157,"children":159},{"style":158},"--shiki-default:#E1E4E8",[160],{"type":24,"value":161},"{\n",{"type":19,"tag":92,"props":163,"children":165},{"class":94,"line":164},2,[166,172,177,183],{"type":19,"tag":92,"props":167,"children":169},{"style":168},"--shiki-default:#79B8FF",[170],{"type":24,"value":171},"  \"from\"",{"type":19,"tag":92,"props":173,"children":174},{"style":158},[175],{"type":24,"value":176},": ",{"type":19,"tag":92,"props":178,"children":180},{"style":179},"--shiki-default:#9ECBFF",[181],{"type":24,"value":182},"\"jon@example.com\"",{"type":19,"tag":92,"props":184,"children":185},{"style":158},[186],{"type":24,"value":187},",\n",{"type":19,"tag":92,"props":189,"children":191},{"class":94,"line":190},3,[192,197,201,206],{"type":19,"tag":92,"props":193,"children":194},{"style":168},[195],{"type":24,"value":196},"  \"from_name\"",{"type":19,"tag":92,"props":198,"children":199},{"style":158},[200],{"type":24,"value":176},{"type":19,"tag":92,"props":202,"children":203},{"style":179},[204],{"type":24,"value":205},"\"Jon Snow\"",{"type":19,"tag":92,"props":207,"children":208},{"style":158},[209],{"type":24,"value":187},{"type":19,"tag":92,"props":211,"children":213},{"class":94,"line":212},4,[214,219,223,228],{"type":19,"tag":92,"props":215,"children":216},{"style":168},[217],{"type":24,"value":218},"  \"recipient\"",{"type":19,"tag":92,"props":220,"children":221},{"style":158},[222],{"type":24,"value":176},{"type":19,"tag":92,"props":224,"children":225},{"style":179},[226],{"type":24,"value":227},"\"\u003Cuuid>@in.webhookrelay-mail.com\"",{"type":19,"tag":92,"props":229,"children":230},{"style":158},[231],{"type":24,"value":187},{"type":19,"tag":92,"props":233,"children":235},{"class":94,"line":234},5,[236,241,245,250],{"type":19,"tag":92,"props":237,"children":238},{"style":168},[239],{"type":24,"value":240},"  \"subject\"",{"type":19,"tag":92,"props":242,"children":243},{"style":158},[244],{"type":24,"value":176},{"type":19,"tag":92,"props":246,"children":247},{"style":179},[248],{"type":24,"value":249},"\"Partnership inquiry\"",{"type":19,"tag":92,"props":251,"children":252},{"style":158},[253],{"type":24,"value":187},{"type":19,"tag":92,"props":255,"children":257},{"class":94,"line":256},6,[258,263,267,272],{"type":19,"tag":92,"props":259,"children":260},{"style":168},[261],{"type":24,"value":262},"  \"date\"",{"type":19,"tag":92,"props":264,"children":265},{"style":158},[266],{"type":24,"value":176},{"type":19,"tag":92,"props":268,"children":269},{"style":179},[270],{"type":24,"value":271},"\"Fri, 26 Jun 2026 11:27:41 +0400\"",{"type":19,"tag":92,"props":273,"children":274},{"style":158},[275],{"type":24,"value":187},{"type":19,"tag":92,"props":277,"children":279},{"class":94,"line":278},7,[280,285,289,294],{"type":19,"tag":92,"props":281,"children":282},{"style":168},[283],{"type":24,"value":284},"  \"text\"",{"type":19,"tag":92,"props":286,"children":287},{"style":158},[288],{"type":24,"value":176},{"type":19,"tag":92,"props":290,"children":291},{"style":179},[292],{"type":24,"value":293},"\"plain body\"",{"type":19,"tag":92,"props":295,"children":296},{"style":158},[297],{"type":24,"value":187},{"type":19,"tag":92,"props":299,"children":301},{"class":94,"line":300},8,[302,307,311,316],{"type":19,"tag":92,"props":303,"children":304},{"style":168},[305],{"type":24,"value":306},"  \"html\"",{"type":19,"tag":92,"props":308,"children":309},{"style":158},[310],{"type":24,"value":176},{"type":19,"tag":92,"props":312,"children":313},{"style":179},[314],{"type":24,"value":315},"\"\u003Cp>html body\u003C/p>\"",{"type":19,"tag":92,"props":317,"children":318},{"style":158},[319],{"type":24,"value":187},{"type":19,"tag":92,"props":321,"children":323},{"class":94,"line":322},9,[324,329,333,338],{"type":19,"tag":92,"props":325,"children":326},{"style":168},[327],{"type":24,"value":328},"  \"spf\"",{"type":19,"tag":92,"props":330,"children":331},{"style":158},[332],{"type":24,"value":176},{"type":19,"tag":92,"props":334,"children":335},{"style":179},[336],{"type":24,"value":337},"\"pass\"",{"type":19,"tag":92,"props":339,"children":340},{"style":158},[341],{"type":24,"value":187},{"type":19,"tag":92,"props":343,"children":345},{"class":94,"line":344},10,[346,351,355,359],{"type":19,"tag":92,"props":347,"children":348},{"style":168},[349],{"type":24,"value":350},"  \"dkim\"",{"type":19,"tag":92,"props":352,"children":353},{"style":158},[354],{"type":24,"value":176},{"type":19,"tag":92,"props":356,"children":357},{"style":179},[358],{"type":24,"value":337},{"type":19,"tag":92,"props":360,"children":361},{"style":158},[362],{"type":24,"value":187},{"type":19,"tag":92,"props":364,"children":366},{"class":94,"line":365},11,[367,372,376,380],{"type":19,"tag":92,"props":368,"children":369},{"style":168},[370],{"type":24,"value":371},"  \"dmarc\"",{"type":19,"tag":92,"props":373,"children":374},{"style":158},[375],{"type":24,"value":176},{"type":19,"tag":92,"props":377,"children":378},{"style":179},[379],{"type":24,"value":337},{"type":19,"tag":92,"props":381,"children":382},{"style":158},[383],{"type":24,"value":187},{"type":19,"tag":92,"props":385,"children":387},{"class":94,"line":386},12,[388,393],{"type":19,"tag":92,"props":389,"children":390},{"style":168},[391],{"type":24,"value":392},"  \"attachments\"",{"type":19,"tag":92,"props":394,"children":395},{"style":158},[396],{"type":24,"value":397},": []\n",{"type":19,"tag":92,"props":399,"children":401},{"class":94,"line":400},13,[402],{"type":19,"tag":92,"props":403,"children":404},{"style":158},[405],{"type":24,"value":406},"}\n",{"type":19,"tag":20,"props":408,"children":409},{},[410,412,418,420,426,428,434,435,441,443,449],{"type":24,"value":411},"See the full ",{"type":19,"tag":44,"props":413,"children":415},{"href":414},"/docs/email/payload",[416],{"type":24,"value":417},"payload reference",{"type":24,"value":419}," for every field, including ",{"type":19,"tag":88,"props":421,"children":423},{"className":422},[],[424],{"type":24,"value":425},"to",{"type":24,"value":427},", ",{"type":19,"tag":88,"props":429,"children":431},{"className":430},[],[432],{"type":24,"value":433},"cc",{"type":24,"value":427},{"type":19,"tag":88,"props":436,"children":438},{"className":437},[],[439],{"type":24,"value":440},"message_id",{"type":24,"value":442}," and the raw ",{"type":19,"tag":88,"props":444,"children":446},{"className":445},[],[447],{"type":24,"value":448},"headers",{"type":24,"value":450}," map.",{"type":19,"tag":70,"props":452,"children":454},{"id":453},"setup",[455],{"type":24,"value":456},"Setup",{"type":19,"tag":20,"props":458,"children":459},{},[460,465],{"type":19,"tag":27,"props":461,"children":462},{},[463],{"type":24,"value":464},"1. Create a bucket.",{"type":24,"value":466}," This is the container that ties an input to its outputs.",{"type":19,"tag":20,"props":468,"children":469},{},[470,475,477,483],{"type":19,"tag":27,"props":471,"children":472},{},[473],{"type":24,"value":474},"2. Add an email input.",{"type":24,"value":476}," Webhook Relay gives you back a unique address of the form ",{"type":19,"tag":88,"props":478,"children":480},{"className":479},[],[481],{"type":24,"value":482},"\u003Cuuid>@in.webhookrelay-mail.com",{"type":24,"value":484},". Anything sent there is parsed and forwarded to the bucket's outputs.",{"type":19,"tag":20,"props":486,"children":487},{},[488,493,495,501],{"type":19,"tag":27,"props":489,"children":490},{},[491],{"type":24,"value":492},"3. Create a Notion integration and share the database.",{"type":24,"value":494}," In Notion, create an internal integration to get a secret token, then open your target database, click ",{"type":19,"tag":496,"props":497,"children":498},"em",{},[499],{"type":24,"value":500},"Connections",{"type":24,"value":502},", and share it with that integration. Copy the database ID from its URL.",{"type":19,"tag":20,"props":504,"children":505},{},[506,511,513,519],{"type":19,"tag":27,"props":507,"children":508},{},[509],{"type":24,"value":510},"4. Add the Notion API as an output.",{"type":24,"value":512}," Set the bucket's output destination to ",{"type":19,"tag":88,"props":514,"children":516},{"className":515},[],[517],{"type":24,"value":518},"https://api.notion.com/v1/pages",{"type":24,"value":520},".",{"type":19,"tag":20,"props":522,"children":523},{},[524,529,531,537],{"type":19,"tag":27,"props":525,"children":526},{},[527],{"type":24,"value":528},"5. Attach the transform.",{"type":24,"value":530}," Add the ",{"type":19,"tag":44,"props":532,"children":534},{"href":533},"/docs/webhooks/functions",[535],{"type":24,"value":536},"transform function",{"type":24,"value":538}," below so the parsed email is reshaped into Notion's format — and the required headers are set — before it's delivered.",{"type":19,"tag":20,"props":540,"children":541},{},[542,547,549,554],{"type":19,"tag":27,"props":543,"children":544},{},[545],{"type":24,"value":546},"6. Send a test email.",{"type":24,"value":548}," Email your ",{"type":19,"tag":88,"props":550,"children":552},{"className":551},[],[553],{"type":24,"value":482},{"type":24,"value":555}," address from any client. Within a second or two a new page appears in your database. If it doesn't, open the request log in your dashboard to see exactly what was received and what Notion returned.",{"type":19,"tag":70,"props":557,"children":559},{"id":558},"the-transform",[560],{"type":24,"value":561},"The transform",{"type":19,"tag":20,"props":563,"children":564},{},[565,567,572,574,580,582,588],{"type":24,"value":566},"Webhook Relay ",{"type":19,"tag":44,"props":568,"children":569},{"href":533},[570],{"type":24,"value":571},"functions",{"type":24,"value":573}," hand you the incoming request body as a string in ",{"type":19,"tag":88,"props":575,"children":577},{"className":576},[],[578],{"type":24,"value":579},"r.body",{"type":24,"value":581},". Parse it, build the Notion page payload, and write it back with ",{"type":19,"tag":88,"props":583,"children":585},{"className":584},[],[586],{"type":24,"value":587},"r.setBody",{"type":24,"value":589}," — then set the three headers Notion requires:",{"type":19,"tag":82,"props":591,"children":595},{"className":592,"code":593,"language":594,"meta":7,"style":7},"language-js shiki shiki-themes github-dark","const e = JSON.parse(r.body);\nr.setBody(JSON.stringify({\n  parent: { database_id: \"YOUR_DB_ID\" },\n  properties: { Name: { title: [{ text: { content: e.subject } }] }, From: { email: e.from } },\n  children: [{ object: \"block\", type: \"paragraph\", paragraph: { rich_text: [{ text: { content: e.text || \"\" } }] } }]\n}));\nr.setHeader(\"Authorization\", \"Bearer \" + \"YOUR_NOTION_SECRET\");\nr.setHeader(\"Notion-Version\", \"2022-06-28\");\nr.setHeader(\"Content-Type\", \"application/json\");\n","js",[596],{"type":19,"tag":88,"props":597,"children":598},{"__ignoreMap":7},[599,638,675,693,701,744,752,797,830],{"type":19,"tag":92,"props":600,"children":601},{"class":94,"line":95},[602,608,613,618,623,627,633],{"type":19,"tag":92,"props":603,"children":605},{"style":604},"--shiki-default:#F97583",[606],{"type":24,"value":607},"const",{"type":19,"tag":92,"props":609,"children":610},{"style":168},[611],{"type":24,"value":612}," e",{"type":19,"tag":92,"props":614,"children":615},{"style":604},[616],{"type":24,"value":617}," =",{"type":19,"tag":92,"props":619,"children":620},{"style":168},[621],{"type":24,"value":622}," JSON",{"type":19,"tag":92,"props":624,"children":625},{"style":158},[626],{"type":24,"value":520},{"type":19,"tag":92,"props":628,"children":630},{"style":629},"--shiki-default:#B392F0",[631],{"type":24,"value":632},"parse",{"type":19,"tag":92,"props":634,"children":635},{"style":158},[636],{"type":24,"value":637},"(r.body);\n",{"type":19,"tag":92,"props":639,"children":640},{"class":94,"line":164},[641,646,651,656,661,665,670],{"type":19,"tag":92,"props":642,"children":643},{"style":158},[644],{"type":24,"value":645},"r.",{"type":19,"tag":92,"props":647,"children":648},{"style":629},[649],{"type":24,"value":650},"setBody",{"type":19,"tag":92,"props":652,"children":653},{"style":158},[654],{"type":24,"value":655},"(",{"type":19,"tag":92,"props":657,"children":658},{"style":168},[659],{"type":24,"value":660},"JSON",{"type":19,"tag":92,"props":662,"children":663},{"style":158},[664],{"type":24,"value":520},{"type":19,"tag":92,"props":666,"children":667},{"style":629},[668],{"type":24,"value":669},"stringify",{"type":19,"tag":92,"props":671,"children":672},{"style":158},[673],{"type":24,"value":674},"({\n",{"type":19,"tag":92,"props":676,"children":677},{"class":94,"line":190},[678,683,688],{"type":19,"tag":92,"props":679,"children":680},{"style":158},[681],{"type":24,"value":682},"  parent: { database_id: ",{"type":19,"tag":92,"props":684,"children":685},{"style":179},[686],{"type":24,"value":687},"\"YOUR_DB_ID\"",{"type":19,"tag":92,"props":689,"children":690},{"style":158},[691],{"type":24,"value":692}," },\n",{"type":19,"tag":92,"props":694,"children":695},{"class":94,"line":212},[696],{"type":19,"tag":92,"props":697,"children":698},{"style":158},[699],{"type":24,"value":700},"  properties: { Name: { title: [{ text: { content: e.subject } }] }, From: { email: e.from } },\n",{"type":19,"tag":92,"props":702,"children":703},{"class":94,"line":234},[704,709,714,719,724,729,734,739],{"type":19,"tag":92,"props":705,"children":706},{"style":158},[707],{"type":24,"value":708},"  children: [{ object: ",{"type":19,"tag":92,"props":710,"children":711},{"style":179},[712],{"type":24,"value":713},"\"block\"",{"type":19,"tag":92,"props":715,"children":716},{"style":158},[717],{"type":24,"value":718},", type: ",{"type":19,"tag":92,"props":720,"children":721},{"style":179},[722],{"type":24,"value":723},"\"paragraph\"",{"type":19,"tag":92,"props":725,"children":726},{"style":158},[727],{"type":24,"value":728},", paragraph: { rich_text: [{ text: { content: e.text ",{"type":19,"tag":92,"props":730,"children":731},{"style":604},[732],{"type":24,"value":733},"||",{"type":19,"tag":92,"props":735,"children":736},{"style":179},[737],{"type":24,"value":738}," \"\"",{"type":19,"tag":92,"props":740,"children":741},{"style":158},[742],{"type":24,"value":743}," } }] } }]\n",{"type":19,"tag":92,"props":745,"children":746},{"class":94,"line":256},[747],{"type":19,"tag":92,"props":748,"children":749},{"style":158},[750],{"type":24,"value":751},"}));\n",{"type":19,"tag":92,"props":753,"children":754},{"class":94,"line":278},[755,759,764,768,773,777,782,787,792],{"type":19,"tag":92,"props":756,"children":757},{"style":158},[758],{"type":24,"value":645},{"type":19,"tag":92,"props":760,"children":761},{"style":629},[762],{"type":24,"value":763},"setHeader",{"type":19,"tag":92,"props":765,"children":766},{"style":158},[767],{"type":24,"value":655},{"type":19,"tag":92,"props":769,"children":770},{"style":179},[771],{"type":24,"value":772},"\"Authorization\"",{"type":19,"tag":92,"props":774,"children":775},{"style":158},[776],{"type":24,"value":427},{"type":19,"tag":92,"props":778,"children":779},{"style":179},[780],{"type":24,"value":781},"\"Bearer \"",{"type":19,"tag":92,"props":783,"children":784},{"style":604},[785],{"type":24,"value":786}," +",{"type":19,"tag":92,"props":788,"children":789},{"style":179},[790],{"type":24,"value":791}," \"YOUR_NOTION_SECRET\"",{"type":19,"tag":92,"props":793,"children":794},{"style":158},[795],{"type":24,"value":796},");\n",{"type":19,"tag":92,"props":798,"children":799},{"class":94,"line":300},[800,804,808,812,817,821,826],{"type":19,"tag":92,"props":801,"children":802},{"style":158},[803],{"type":24,"value":645},{"type":19,"tag":92,"props":805,"children":806},{"style":629},[807],{"type":24,"value":763},{"type":19,"tag":92,"props":809,"children":810},{"style":158},[811],{"type":24,"value":655},{"type":19,"tag":92,"props":813,"children":814},{"style":179},[815],{"type":24,"value":816},"\"Notion-Version\"",{"type":19,"tag":92,"props":818,"children":819},{"style":158},[820],{"type":24,"value":427},{"type":19,"tag":92,"props":822,"children":823},{"style":179},[824],{"type":24,"value":825},"\"2022-06-28\"",{"type":19,"tag":92,"props":827,"children":828},{"style":158},[829],{"type":24,"value":796},{"type":19,"tag":92,"props":831,"children":832},{"class":94,"line":322},[833,837,841,845,850,854,859],{"type":19,"tag":92,"props":834,"children":835},{"style":158},[836],{"type":24,"value":645},{"type":19,"tag":92,"props":838,"children":839},{"style":629},[840],{"type":24,"value":763},{"type":19,"tag":92,"props":842,"children":843},{"style":158},[844],{"type":24,"value":655},{"type":19,"tag":92,"props":846,"children":847},{"style":179},[848],{"type":24,"value":849},"\"Content-Type\"",{"type":19,"tag":92,"props":851,"children":852},{"style":158},[853],{"type":24,"value":427},{"type":19,"tag":92,"props":855,"children":856},{"style":179},[857],{"type":24,"value":858},"\"application/json\"",{"type":19,"tag":92,"props":860,"children":861},{"style":158},[862],{"type":24,"value":796},{"type":19,"tag":20,"props":864,"children":865},{},[866,868,874,876,882],{"type":24,"value":867},"That's the complete bridge: the subject fills the ",{"type":19,"tag":88,"props":869,"children":871},{"className":870},[],[872],{"type":24,"value":873},"Name",{"type":24,"value":875}," title property, the sender lands in a ",{"type":19,"tag":88,"props":877,"children":879},{"className":878},[],[880],{"type":24,"value":881},"From",{"type":24,"value":883}," email property, and the plain-text body becomes a paragraph block in the page. Notion creates the page and returns it.",{"type":19,"tag":20,"props":885,"children":886},{},[887,889,895,897,903,905,911,913,919,921,927],{"type":24,"value":888},"From here the function is where the real power is. Map more email fields to columns — ",{"type":19,"tag":88,"props":890,"children":892},{"className":891},[],[893],{"type":24,"value":894},"e.date",{"type":24,"value":896}," to a date property, ",{"type":19,"tag":88,"props":898,"children":900},{"className":899},[],[901],{"type":24,"value":902},"e.from_name",{"type":24,"value":904}," to a text property — split the body into multiple blocks, or inspect ",{"type":19,"tag":88,"props":906,"children":908},{"className":907},[],[909],{"type":24,"value":910},"e.spf",{"type":24,"value":912}," / ",{"type":19,"tag":88,"props":914,"children":916},{"className":915},[],[917],{"type":24,"value":918},"e.from",{"type":24,"value":920}," and ",{"type":19,"tag":88,"props":922,"children":924},{"className":923},[],[925],{"type":24,"value":926},"return",{"type":24,"value":928}," early to drop anything you don't want stored.",{"type":19,"tag":70,"props":930,"children":932},{"id":931},"get-started",[933],{"type":24,"value":934},"Get started",{"type":19,"tag":20,"props":936,"children":937},{},[938,940,946],{"type":24,"value":939},"Turning inbound mail into Notion pages is one case of a broader pattern: ",{"type":19,"tag":44,"props":941,"children":943},{"href":942},"/email-to-webhook",[944],{"type":24,"value":945},"Email to Webhook",{"type":24,"value":947},". Once an email is JSON, you can route it anywhere a webhook can go.",{"type":19,"tag":20,"props":949,"children":950},{},[951,958],{"type":19,"tag":44,"props":952,"children":955},{"href":953,"rel":954},"https://my.webhookrelay.com/register",[48],[956],{"type":24,"value":957},"Create a free Webhook Relay account",{"type":24,"value":959},", add an email input, and have leads, support requests and reading-list items flowing into Notion in a few minutes.",{"type":19,"tag":961,"props":962,"children":963},"style",{},[964],{"type":24,"value":965},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":190,"depth":190,"links":967},[968,969,970,971],{"id":72,"depth":164,"text":75},{"id":453,"depth":164,"text":456},{"id":558,"depth":164,"text":561},{"id":931,"depth":164,"text":934},"markdown","content:docs:tutorials:email:notion.md","content","docs/tutorials/email/notion.md","docs/tutorials/email/notion","md",{"loc":4},[980,983,986,989,992,995,998,1001],{"_path":981,"title":982},"/docs/installation/cli","CLI",{"_path":984,"title":985},"/docs/installation/docker","Docker container",{"_path":987,"title":988},"/docs/installation/docker-compose","Docker Compose",{"_path":990,"title":991},"/docs/installation/kubernetes","Kubernetes",{"_path":993,"title":994},"/docs/installation/autostart-windows","Autostart (Windows)",{"_path":996,"title":997},"/docs/installation/autostart-linux","Autostart (Linux)",{"_path":999,"title":1000},"/docs/installation/autostart-macos","Autostart (MacOS)",{"_path":1002,"title":1003},"/docs/installation/behind-proxy","HTTP proxy configuration",[1005],{"_path":1006,"title":1007},"/docs/webhooks/internal/localhost","Receiving webhooks on localhost",[1009,1012],{"_path":1010,"title":1011},"/docs/webhooks/public/public-destination","Forward to public URL",{"_path":1013,"title":1014},"/docs/webhooks/public/multiple-destination-urls","Multiple destinations",[1016,1019,1022,1025],{"_path":1017,"title":1018},"/docs/webhooks/auth/username-password","Username and password",{"_path":1020,"title":1021},"/docs/webhooks/auth/hmac","HMAC",{"_path":1023,"title":1024},"/docs/webhooks/auth/jwt","JWT authentication",{"_path":1026,"title":1027},"/docs/webhooks/auth/http-method","Auth using request method",[1029],{"_path":1030,"title":1031},"/docs/webhooks/cron/using-cron-webhooks","Schedule recurring webhooks",[1033,1036,1039,1042,1045,1048,1051],{"_path":1034,"title":1035},"/docs/service-connections","Service Connections",{"_path":1037,"title":1038},"/docs/service-connections/aws_s3","AWS S3",{"_path":1040,"title":1041},"/docs/service-connections/aws_sns","AWS SNS",{"_path":1043,"title":1044},"/docs/service-connections/aws_sqs","AWS SQS",{"_path":1046,"title":1047},"/docs/service-connections/azure","Azure",{"_path":1049,"title":1050},"/docs/service-connections/gcp_gcs","GCP Cloud Storage",{"_path":1052,"title":1053},"/docs/service-connections/gcp_pubsub","GCP Pub/Sub",[1055,1057,1059],{"_path":56,"title":1056},"Receive emails as webhooks",{"_path":414,"title":1058},"Email webhook payload",{"_path":1060,"title":1061},"/docs/email/filtering-and-policy","Sender filtering & policy",[1063,1066,1069,1072],{"_path":1064,"title":1065},"/docs/account/account-management","Account management",{"_path":1067,"title":1068},"/docs/account/mfa","Multi-factor authentication (MFA)",{"_path":1070,"title":1071},"/docs/account/team","Teams and sub-accounts",{"_path":1073,"title":1074},"/docs/account/billing-and-subscriptions","Billing & subscriptions",[1076,1079],{"_path":1077,"title":1078},"/docs/tunnels/demoing-your-website","Demoing your website",{"_path":1080,"title":1081},"/docs/tunnels/regions","Regions",[1083,1086,1089,1092,1095,1098],{"_path":1084,"title":1085},"/docs/tutorials/cicd/jenkins-bitbucket","Jenkins and Bitbucket",{"_path":1087,"title":1088},"/docs/tutorials/cicd/jenkins-github","Jenkins and GitHub",{"_path":1090,"title":1091},"/docs/tutorials/cicd/jenkins-plugin","Jenkins Plugin",{"_path":1093,"title":1094},"/docs/tutorials/cicd/kubernetes-operator","Kubernetes Operator",{"_path":1096,"title":1097},"/docs/tutorials/cicd/terraform-atlantis","Terraform Atlantis",{"_path":1099,"title":1100},"/docs/tutorials/cicd/webhook-exec","Execute scripts on webhook",[1102,1105,1108,1111,1114,1117,1120,1121],{"_path":1103,"title":1104},"/docs/tutorials/email/airtable","Email to Airtable",{"_path":1106,"title":1107},"/docs/tutorials/email/api","Email to API",{"_path":1109,"title":1110},"/docs/tutorials/email/database","Email to Database",{"_path":1112,"title":1113},"/docs/tutorials/email/discord","Email to Discord",{"_path":1115,"title":1116},"/docs/tutorials/email/google-sheets","Email to Google Sheets",{"_path":1118,"title":1119},"/docs/tutorials/email/microsoft-teams","Email to Microsoft Teams",{"_path":4,"title":8},{"_path":1122,"title":1123},"/docs/tutorials/email/slack","Email to Slack",[1125,1128,1131],{"_path":1126,"title":1127},"/docs/tutorials/edge/home-assistant","Home Assistant",{"_path":1129,"title":1130},"/docs/tutorials/edge/javascript-app","JavaScript app",{"_path":1132,"title":1133},"/docs/tutorials/edge/node-red","Node-RED",[1135],{"_path":1136,"title":1137},"/docs/tutorials/warehouse/bigquery","GCP BigQuery",[1139,1142],{"_path":1140,"title":1141},"/docs/tutorials/transform/docker-to-slack","DockerHub webhook to Slack notification",{"_path":1143,"title":1144},"/docs/tutorials/transform/enrich-webhooks","Enrich webhooks from APIs",[1146,1149,1152,1155,1158,1161,1164,1167,1170,1173,1175,1178],{"_path":1147,"title":1148},"/docs/webhooks/functions/manipulating-json","JSON encoding",{"_path":1150,"title":1151},"/docs/webhooks/functions/make-http-request","Make HTTP request",{"_path":1153,"title":1154},"/docs/webhooks/functions/modify-request","Read, write request data",{"_path":1156,"title":1157},"/docs/webhooks/functions/multipart-form-data","Multipart form to JSON",{"_path":1159,"title":1160},"/docs/webhooks/functions/url-encoded-data","URL Encoded Form",{"_path":1162,"title":1163},"/docs/webhooks/functions/working-with-time","Working with time",{"_path":1165,"title":1166},"/docs/webhooks/functions/send-emails","Sending emails",{"_path":1168,"title":1169},"/docs/webhooks/functions/crypto-functions","Base64, encryption",{"_path":1171,"title":1172},"/docs/webhooks/functions/integrate-into-cicd","Integrating into CI/CD",{"_path":1174,"title":1137},"/docs/webhooks/functions/big-query",{"_path":1176,"title":1177},"/docs/webhooks/functions/accessing-metadata","Accessing metadata",{"_path":533,"title":1179},"Functions",1782718126673]