Create

POST /api/projects/:projectId

Request Parameters#

ParameterTypeMandatoryDescription
screenshotParameterScreenshotParameteryesScreenshot Configuration
urlsArray of UrlConfigyesURLs of Screenshots
scheduledTsnumbernoTimestamp in future when to schedule a Screenshot Job
scheduleDescriptionScheduleDescriptionnoA description to schedule a Job

Example Request#

{
"screenshotParameter": {
"width": 1200,
"height": 720,
"style": "macos-simple-dark",
"loginParameter": {
"username": {
"elementId": "#email",
"username": "adam@websiteshot.app"
},
"password": {
"elementId": "#password",
"password": "s3cret"
},
"loginButton": {
"elementId": "#login"
}
}
},
"urls": [
{
"url": "https://console.websiteshot.app/guarded",
"name": "Just a Test",
"loadingTime": 15000
}
]
}

Response#

AttributeTypeDescription
jobIdstringJobId that you need to download all Screenshots

Example Response#

{
"jobId": "abcdefgh-ijkl-mnop-qrst-uvwxyz"
}