API for Lens #172
iced-queen
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Good news, we already have an API for it 🎉 You can find the documentation at https://developer.gitbook.com/gitbook-api/reference/search Example with our own documentation: To get an answer to a question: curl https://api.gitbook.com/v1/spaces/NkEGS7hzeqa35sMXQZ4X/search/ask \
-H 'content-type: application/json' \
--data-raw '{"query":"What is GitBook?"}' To list recommended questions: curl https://api.gitbook.com/v1/spaces/NkEGS7hzeqa35sMXQZ4X/search/questions |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's your feature/idea?
I just tried enabling the Lens AI and using it and it's so good!
It had a valid answer to all of my questions regarding my project, which is why I'm suggesting an API for it.
I'd be able to implement it on my support bot for my project, which would solve so many questions for our support team!
What's your desired outcome?
An API where you can make requests with a
text
,question
ormessage
field as examples that would then return the following:based on
sources:What's the impact of this for you?
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions