Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.webstashai.com/pages/{id}/highlights \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "source_url": "<string>", "note": "<string>", "css_selector": "<string>", "text_prefix": "<string>", "text_suffix": "<string>", "text_offset": 123, "text_length": 123 } '
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ text: '<string>', source_url: '<string>', note: '<string>', css_selector: '<string>', text_prefix: '<string>', text_suffix: '<string>', text_offset: 123, text_length: 123 }) }; fetch('https://api.webstashai.com/pages/{id}/highlights', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.webstashai.com/pages/{id}/highlights" payload = { "text": "<string>", "source_url": "<string>", "note": "<string>", "css_selector": "<string>", "text_prefix": "<string>", "text_suffix": "<string>", "text_offset": 123, "text_length": 123 } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": "<string>", "page_id": "<string>", "text": "<string>", "note": "<string>", "source_url": "<string>", "created_at": "2023-11-07T05:31:56Z" }
{ "error": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Highlight created