You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to require an API key for communicating with my agent via the direct client rest API.
I did not find a built in way to do this.
I would propose adding an optional DirectClientOptions parameter to the DirectClient constructor that contains property API-key.
The direct client would then return 401 to any request that does not have the header Authorization: Bearer YOUR_API_KEY
I will gladly implement this myself if it makes sense as a feature to others
The text was updated successfully, but these errors were encountered:
I would like to be able to require an API key for communicating with my agent via the direct client rest API.
I did not find a built in way to do this.
I would propose adding an optional
DirectClientOptions
parameter to theDirectClient
constructor that contains property API-key.The direct client would then return 401 to any request that does not have the header
Authorization: Bearer YOUR_API_KEY
I will gladly implement this myself if it makes sense as a feature to others
The text was updated successfully, but these errors were encountered: