quivr icon indicating copy to clipboard operation
quivr copied to clipboard

[Bug]: Api Not authenticated

Open philiprcleary opened this issue 9 months ago • 2 comments

What happened?

I am trying to interact with quivr via the api endpoint but I can't find how to get the access token. Every request understandably returns "No authenticated". Also, the api documentation has been removed from the docs. Why?

Relevant log output

No response

Twitter / LinkedIn details

No response

philiprcleary avatar Apr 26 '24 13:04 philiprcleary

To interact with the quivr API and authenticate your requests, you'll need to include an authorization header in the format Authorization: Bearer YOUR_ACCESS_TOKEN. Here's a quick guide to help you with the authentication process:

  1. Obtaining an Access Token: You need a valid JWT token or API key. If you're unsure how to obtain this, it typically involves logging into the quivr platform or contacting their support to generate an API key or token for your account.

  2. Using the Access Token: With your token, make API requests by adding the header Authorization: Bearer YOUR_ACCESS_TOKEN. Replace YOUR_ACCESS_TOKEN with your actual token.

  3. Handling Authentication in Code: The quivr API uses a Bearer authentication method. If you're working with the API programmatically, ensure your requests include the correct authorization header. For development or testing, if the AUTHENTICATE environment variable is set to "false", authentication can be bypassed, simulating a test user.

  4. Documentation and API Keys: If the API documentation seems missing, it's now located at https://api.quivr.app/openapi.json. For API keys, if you need to retrieve or manage your keys, this typically involves accessing your user settings or dashboard within the quivr platform.

If you encounter "No authenticated" errors, double-check that your token is correctly included in the request headers and is valid. For any issues related to lost or managing API keys, the quivr platform's user settings or support would be the next steps to resolve those concerns.

This should cover the essentials for authenticating with the quivr API and getting started with your requests. If there's anything more specific you need help with, feel free to ask!

Details

Sources


About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

dosubot[bot] avatar Apr 26 '24 13:04 dosubot[bot]

Hey!

You need to create an api key from the frontend in the user page :)

The documentation is here: https://api.quivr.app/docs

StanGirard avatar Apr 27 '24 11:04 StanGirard

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.

github-actions[bot] avatar Jul 26 '24 12:07 github-actions[bot]