curl --request POST 'https://api.doczilla.app/v1/screenshot' \
--header 'Authorization: Bearer <your token>' \
--header 'Content-Type: application/json' \
--output 'website.png' \
--data '{
"page": {
"url": "https://httpbin.org/basic-auth/Doczilla/screenshot",
"authentication": {
"username": "Doczilla",
"password": "screenshot"
}
},
"screenshot": {
"viewport": {
"width": 500,
"height": 250
}
}
}'