Create a Screenshot Request
Creates a screenshot request from provided data
Authorizations
AuthorizationstringRequired
API key necessary to authenticate API requests
Path parameters
organization_slugstringRequiredExample:
Organization slug
abc-companyHeader parameters
AuthorizationstringOptional
Authorization
Body
instructionsstringOptionalExample:
Please take a screenshot of the ad on the homepage of the siteResponses
202
Accepted
application/json
typestringOptionalExample:
screenshot_setidstringOptionalExample:
e9b4c72e-7520-4e3f-a3e8-a092b927f0d4statusstringOptionalExample:
draftcampaign_idstringOptionalExample:
8304d4b0-90e0-4c58-ae3d-38807b23fd9ccreated_atstring · date-timeOptionalExample:
2023-02-14T09:18:48.318-05:00html_urlstringOptionalExample:
http://{{defaultHost}}/o/abc-company/campaigns/8304d4b0-90e0-4c58-ae3d-38807b23fd9c/screenshot_sets/e9b4c72e-7520-4e3f-a3e8-a092b927f0d4403
Forbidden
application/json
422
Unprocessable Entity
application/json
post/api/v1/orgs/{organization_slug}/screenshot_requests
POST /api/v1/orgs/{organization_slug}/screenshot_requests HTTP/1.1
Host: app.adreform.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 709
{
"campaign": {
"id": "8304d4b0-90e0-4c58-ae3d-38807b23fd9c",
"name": "New Campaign - Via API"
},
"screenshot_requests": [
{
"ad": {
"id": "9d3df05e-7e9d-41c2-80d2-28ccc36960e9",
"lookup_key": "my-internal-key-0001",
"name": "Summer Campaign - 300x250 Banner",
"media": {
"type": "html_tag",
"content": "<img src=\"https://picsum.photos/300/250?image=0\"/>"
}
},
"screenshots": [
{
"site": {
"url": "https://atlutd.com"
},
"device": {
"name": "desktop"
},
"options": {
"ad": {
"frames": [
{
"marker": 0.2
}
]
}
}
}
]
}
],
"subscribers": [
{
"webhook": {
"url": "https://webhook.site/ae28ba3d-7c83-4a52-a0e4-5925f76d3a14"
},
"s3": {
"bucket": "my-bucket",
"region": "us-east-1",
"key_prefix": "ar_"
}
}
],
"instructions": "Please take a screenshot of the ad on the homepage of the site"
}{
"type": "screenshot_set",
"id": "e9b4c72e-7520-4e3f-a3e8-a092b927f0d4",
"status": "draft",
"campaign_id": "8304d4b0-90e0-4c58-ae3d-38807b23fd9c",
"created_at": "2023-02-14T09:18:48.318-05:00",
"html_url": "http://{{defaultHost}}/o/abc-company/campaigns/8304d4b0-90e0-4c58-ae3d-38807b23fd9c/screenshot_sets/e9b4c72e-7520-4e3f-a3e8-a092b927f0d4"
}Disabled organizations
The Campaign object
campaign.id
campaign.name
The Ad object
ad.id
ad.lookup_key
ad.name
Example payload using ad.lookup_key
Example incorrect payload – duplicate ad.lookup_key across entries (rejected)
ad.media
The Media object
Supported media types
Type
Content
Description
The Screenshots array
The Site object
site.url
The Device object
device.name
Supported devices
The Options object
Specifying which ad frames to use
Example payload using options.ad.frames
Example payload specifying frames with multiple screenshot objects
Last updated