Save a remote image by URL
curl --request POST \
--url https://api.webstashai.com/save-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "<string>",
"source_url": "<string>",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({image_url: '<string>', source_url: '<string>', title: '<string>'})
};
fetch('https://api.webstashai.com/save-image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/save-image"
payload = {
"image_url": "<string>",
"source_url": "<string>",
"title": "<string>"
}
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 remote image by URL
POST
https://api.webstashai.com
/
save-image
Save a remote image by URL
curl --request POST \
--url https://api.webstashai.com/save-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "<string>",
"source_url": "<string>",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({image_url: '<string>', source_url: '<string>', title: '<string>'})
};
fetch('https://api.webstashai.com/save-image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/save-image"
payload = {
"image_url": "<string>",
"source_url": "<string>",
"title": "<string>"
}
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>"
}