quivr
quivr copied to clipboard
[Bug]: Api Not authenticated
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
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:
-
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.
-
Using the Access Token: With your token, make API requests by adding the header
Authorization: Bearer YOUR_ACCESS_TOKEN
. ReplaceYOUR_ACCESS_TOKEN
with your actual token. -
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. -
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
- [Local Quivr] ABackend, I can be ran locally with a password auth
- docs/mint.json
- backend/middlewares/auth/auth_bearer.py
- docs/configuring/authentication.mdx
- backend/modules/api_key/repository/api_key_interface.py
- cms/quivr/types/generated/contentTypes.d.ts
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.
Hey!
You need to create an api key from the frontend in the user page :)
The documentation is here: https://api.quivr.app/docs
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.