Get task email address with API
W
Wilhelm von Konow
Currently there's no way to get the commenting email address for a given task. I'd have a need for that to create a layer of abstraction between ClickUP and our clients.
Log In
F
Fabian Jura
We would also love to see this feature!
Yoel Lemas
This would be such a valuable feature to have. Please add this to the roadmap!
Philipp Berner
Hello all,
We’re exploring ways to improve our Developer experience, and we’d love your input! Please take this 3-minute survey to share your thoughts!
Thank you 🙏
Michael Montefusco
Philipp Berner done ✅
D
Dan Cook
Is this going to happen?
Hundt Matthias
This would be incredible helpful for various automations and workflows, please make it happen asap
Austin Hodges
Ivan Villa It would be AMAZING if you could somehow convince the dev team to simply allow the existing v1 api to be properly authenticated with a personal key or other creds and this would already work.
Obviously the session credentials used in the browser expire quick. This would be HUGELY beneficial and a (probably) quick solution in the meantime.
Austin Hodges
✅FOUND WORKAROUND:
For anyone looking to do this, thanks to Marcelo Cecin I was able to replicate the ability to retrieve the Email to Task function via the API.
Request:
(You'll want to check which clickup server your org is using)
Authorization is Basic auth with Bearer Token
'Authorization:' 'Bearer long_token_retreived_from_network_request'
'Content-Type:' 'application/json; charset=utf-8'
To get your bearer token (your pk personal token doesn't seem to work), you'll need to:
- open a task in clickup in a browser,
- inspect the page,
- navigate to your Network Tab.
- Clear everything (ctrl+L) and make sure record is on (ctrl+E).
- Then click on the tasks 3 dot menu and click the "Send email to task" option.
- In your network tab look for the "email_token" XHR data and click on it. (Image 1)
- in the right hand pane, get the "Authorization" key with the Bearer under the Request Headers. (Image 2)
I don't know if that key is rolled (probably is, might be session related, will more than likely change every so often which sucks) BUT, I tested it a few hours apart and it seems to work as a proper authorization.
(Sorry for the noob instructions, I'm not a real developer, just know enough to do things really really wrong :) )
P.S. Dear Clickup, please don't nerf this workaround and instead make a working solution :D
F
Furkan Yayla
Austin Hodges Thank you for the workaround! This will help me a lot, at least for now. I wonder if there is a way to generate this token with user credentials? It would be amazing to just slap a "get token" call in there somewhere in case the one in use fails.
Michael
"just know enough to do things really really wrong" 🥴🤣🤣 I'm going to have to steal that one Austin Hodges
Austin Hodges
Furkan Yayla
They way I am doing it would make netsec and developers alike shrivel in cringe because I have (please laugh):
a VM spun up for the sole purpose of logging into my clickup in a webpage, pulling the sessions Auth key with a scraper and auto-clicker, sending it to my automations, and updating the automation every time my vm webpage session ends.
Works good so far and haven't been hacked yet 😂
(This isn't running automation for a company of 100+ people.... nah 😬)
Marcelo Cecin
I managed to create an automation using Pipedream to migrate the items and their comments to ClickUp
Now I'm stuck migrating certain files, especially when they are larger than 5MB
It would be very important for ClickUp to list the task email in the Create Task API
this could help a lot
Marcelo Cecin
I managed to get the email address through the call:
https://prod-us-west-2-3.clickup.com/v1/task/${taskId}/email_token
J
Julis Pándi
Marcelo Cecin is this an older version of the API? it doesn't work for me - but I'm guessing that's intentional if it's outdated
Marcelo Cecin
Julis Pándi I don't know for sure, I just monitored the site's http request
Austin Hodges
Marcelo Cecin
Would really like some additional info, I get errors when using prod-us-west-2-3.clickup.com or api.clickup.com but if this is possible this would be hugely helpful!
Marcelo Cecin
Austin Hodges Sorry for the delay, it's because the authentications are different. basically the v1 version authentication I got by monitoring the web connection.
Austin Hodges
Marcelo Cecin Do you by chance have an example request? I have been playing around with this hook all day long and can't get it to auth.
How was v1 auth handled in clickup? I can't find any docs that mention V1.
Do you have an example request with headers that you are passing and does it still work or is it dead now?
Are you using your pk_ personal API token or an application auth?
EDIT: FOUND SOLUTION:
For anyone looking to do this, thanks to Marcelo Cecin I was able to replicate the ability to retrieve the Email to Task function via the API.
Basically, the api request url is like Marcelo said:
Request:
(You'll want to check which clickup server your org is using)
You'll need two headers:
Authorization
Content-Type
Authorization is Basic auth with Bearer Token
'Authorization:' 'Bearer long_token_retreived_from_network_request'
'Content-Type:' 'application/json; charset=utf-8'
To get your bearer token (your pk personal token doesn't seem to work), you'll need to
- open a task in a browser,
- inspect the page,
- navigate to your Network Tab.
- Clear everything and make sure record is on.
- Then click on the tasks 3 dot menu and click the "Email to task" option.
- In your network tab look for the "email_token" XHR data and click on it.
- in the right hand pane, get the "Authorization" key with the Bearer under the Request Headers. (See 2nd image)
I don't know if that key is rolled (probably is, might be session related, will more than likely change every so often which sucks) BUT, I tested it a few hours apart and it seems to work as a proper authorization.
(Sorry for the noob instructions, I'm not a real developer, just know enough to do things really really wrong :) )
Kasimir Riechel
Unfortunately, the API key expires after a few days at the latest. So it's not a long-term workaround either. 😐 ClickUp Please make it possible to retrieve this e-mail address via API 🙏🙏🙏
J
Julis Pándi
I can only repeat what others have said, it would be incerdibly useful for integrations
M
Matthijs Wolting
+1, this'd be _super_ useful for tracking correspondence on email threads initiated by workflow automation tools like Zapier/Make/Relay.app!
Load More
→