waha icon indicating copy to clipboard operation
waha copied to clipboard

[Feature Request] Creating an API Key for a Session

Open RogerioAmaral opened this issue 10 months ago • 1 comments

I searched the documentation but couldn't find anything. Therefore, I'd like to suggest an interesting implementation: the possibility of creating an API key per session. That is, when creating a session, have an option for the API key, for example: endpoint: /api/sessions Body: { "name": "default", "apikey": "key-for-session-jdhDfh384384hDndFdfHjfdg7346" }

Allow the use of this API key when accessing the endpoint in the header with the value 'X-Api-Key'.

This way, it wouldn't be necessary to share the global API key to use the session's endpoint. Is it possible to implement this?

patron:PLUS

RogerioAmaral avatar Jan 05 '26 15:01 RogerioAmaral

Yes, it's possible! We've had this request for so long.... 😮‍💨 https://github.com/devlikeapro/waha/issues/387

patron:PRO

devlikepro avatar Jan 09 '26 06:01 devlikepro