SciPhi-AI / R2R

The most advanced Retrieval-Augmented Generation (RAG) system, containerized and RESTful
https://r2r-docs.sciphi.ai/
MIT License
3.64k stars 270 forks source link

Instructions on how to get Authorization token for using the APIs #1600

Closed emahpour closed 6 hours ago

emahpour commented 6 hours ago

Is your feature request related to a problem? Please describe. To call the REST API's the Authorization header is required but there are not instructions on how to obtain the Authorization token from an external service application rather than a registered user in the app.

Describe the solution you'd like Ideally it would be great if we can generate API tokens within the interface to use with APIs

Describe alternatives you've considered I can think of creating file/folder watching scripts to pipe data into the R2R ecosystem as they appear.

Additional context Provide Machine2Machine integration support or integration with external workflow & orchestration frameworks.

NolanTrem commented 6 hours ago

Hey @emahpour you can get the auth token by calling the "login" endpoint. The SDKs will automatically apply this to all requests, for your convenience.

Can you expand on Machine2Machine integration support? Not sure I follow there.

emahpour commented 6 hours ago

Thanks for the prompt response. by M2M I mean service to service where it does not require a UI interaction. I guess you answered my question by using /login endpoint. I can try it and let you know if I had any issues.

Thanks!