Metabase API - "permanent" session?

I would like to use Metabase REST API to e.g. send email on-demand. What I do now is I firstly send request to the /api/session to get session-id and then I can use other endpoints. However, call to the /api/session generates an email everytime I call it so I am always getting an email that We've Noticed a New Metabase Login, Service. My question is if it is possible to have some kind of "permanent session" so I do not have to call the /api/session endpoint everytime and if not if it is possible to somehow disable these emails.

You can extend the sessions as much as you wish via environment variables