waha
waha copied to clipboard
[Feature Request] Creating an API Key for a Session
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?