Import bookmark HTML or CSV
curl --request POST \
--url https://api.webstashai.com/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/html' \
--data '<string>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/html'},
body: '<string>'
};
fetch('https://api.webstashai.com/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/import"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/html"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"job_id": "<string>",
"total": 123,
"enqueued": 123,
"skipped": 123,
"skipped_quota": 123
}{
"job_id": "<string>",
"total": 123,
"enqueued": 123,
"skipped": 123,
"skipped_quota": 123
}{
"error": "<string>"
}{
"error": "<string>"
}Import bookmark HTML or CSV
POST
https://api.webstashai.com
/
import
Import bookmark HTML or CSV
curl --request POST \
--url https://api.webstashai.com/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/html' \
--data '<string>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/html'},
body: '<string>'
};
fetch('https://api.webstashai.com/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/import"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/html"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"job_id": "<string>",
"total": 123,
"enqueued": 123,
"skipped": 123,
"skipped_quota": 123
}{
"job_id": "<string>",
"total": 123,
"enqueued": 123,
"skipped": 123,
"skipped_quota": 123
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
text/htmltext/csv
The body is of type string.
