all emails listing
The API allows you to list all emails if the key has only sending email to a domain permission, but if you add a limit, it doesn't allow you to, like other endpoints, I'd like to test if the key API key is valid or not, any ideas on how can I?
ik it was probably better to open the issue in another repo but...
@LoryPelli This is a tricky one as if you are setting permissions on the API we're also purposely not exposing what those are. You can see then when viewing the API Keys in-app.
@LoryPelli This is a tricky one as if you are setting permissions on the API we're also purposely not exposing what those are. You can see then when viewing the API Keys in-app.
the thing is that I can use https://api.resend.com/emails with an api key that has only send email permissions but if I use a query param, it doesn't work anymore (as it should, it's a bug I think)
but why can't you add an endpoint to verify is the key is valid or not, I have to send a test email for that...
I'm sending it to myself (same address) hoping it has 0 delay in that way, I have to add both subject and text cause if one of them is empty, it fails...(even an empty string)
Since this was an issue with the API, closing as not planned. Feel free to email us at [email protected] if you still have this. But, actually, listing emails with an API Key with Sending Access was a bug that we've since fixed.