Save a URL
curl --request POST \
--url https://api.webstashai.com/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"title": "<string>",
"html": "<string>",
"force": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', title: '<string>', html: '<string>', force: true})
};
fetch('https://api.webstashai.com/save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/save"
payload = {
"url": "<string>",
"title": "<string>",
"html": "<string>",
"force": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "processing"
}{
"error": "<string>"
}{
"error": "<string>"
}Save a URL
POST
https://api.webstashai.com
/
save
Save a URL
curl --request POST \
--url https://api.webstashai.com/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"title": "<string>",
"html": "<string>",
"force": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', title: '<string>', html: '<string>', force: true})
};
fetch('https://api.webstashai.com/save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/save"
payload = {
"url": "<string>",
"title": "<string>",
"html": "<string>",
"force": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "processing"
}{
"error": "<string>"
}{
"error": "<string>"
}