Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a browser url for a Gmail thread from the threadId parameter in Gmail API

Threads in Gmail API have a threadId that looks like an hex number: 1784d63938119544.

I want to build a url for the same thread that you can use in your browser, but there, the suffix looks different https://mail.google.com/mail/u/0/#inbox/**FMfcgGzsmDlfgdRfJFk** as if base64-encoded or similar.

Do you know how these are related?

like image 940
user21338 Avatar asked Dec 05 '25 18:12

user21338


1 Answers

not sure if you already figured this out, but seems like if you just put the thread id (the numerical looking one) into the link, it automatically redirects.

like image 51
Chloe C Avatar answered Dec 10 '25 00:12

Chloe C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!