How can I obtain cookies for a user or a 'user-api-key' without requiring user interaction or browser redirects?

I assume tbis is a typo and you’re referring to PMs? DMs are related to chat.