Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

An unexpired screenshotId belonging to the authenticated account.

Pattern: ^scr_

Body

application/json

Describe one output at the top level, or several in outputs. With outputs, top-level fields are defaults for every output; an output that says what to cut replaces the default region/bounds.

preset
enum<string>

Named output shape. Explicit fields override it.

On a whole full-page screenshot, the fixed-shape presets (og-image, twitter-card, square) take the top of the page at their aspect ratio. Set region, bounds or fit to choose differently.

Available options:
og-image,
twitter-card,
thumbnail,
square,
full-width
region
string

Cut this saved region (e.g. region-1) from the screenshot. Requires a capture with regions=true.

part

With region: one part of it, by id (region-1-part-0) or index (0 = first). Original screenshot pixels.

savedCrop
boolean
default:false

With region + part: use the stored crop file instead of cutting original pixels. Use it for pages whose whole screenshot exceeds 64 MP or 24 MiB.

bounds

Cut an arbitrary rectangle. Cannot be combined with region.

Pattern: ^\d+,\d+,\d+,\d+$
width
integer

Output width. Give one side to keep the aspect ratio.

Required range: 1 <= x <= 32768
height
integer

Output height.

Required range: 1 <= x <= 32768
fit
enum<string>

How to fit both sides: contain may pad, cover may crop, fill may stretch. Default contain.

Available options:
contain,
cover,
fill
background
string

Padding / transparency fill for contain and JPEG.

Pattern: ^#[0-9a-fA-F]{6}$
format
enum<string>

Output encoding. Default: same family as the source.

Available options:
jpeg,
png,
webp
quality
integer

Lossy quality. Default 80 (or the preset's).

Required range: 1 <= x <= 100
outputs
(enum<string> | object)[]

Several outputs in one job, one credit each. Each is a preset name or an object; top-level fields apply to all. Returns ordered results.

Required array length: 1 - 16 elements

Named output shape. Explicit fields override it.

On a whole full-page screenshot, the fixed-shape presets (og-image, twitter-card, square) take the top of the page at their aspect ratio. Set region, bounds or fit to choose differently.

Available options:
og-image,
twitter-card,
thumbnail,
square,
full-width
cache
boolean
default:false
async
boolean
default:false
store
any
webhookUrl
string<uri>
webhookSecret
string
write-only
storage_path
string
default:transforms
storage_provider
enum<string>
Available options:
b2,
s3,
r2
storage_bucket
string
storage_endpoint
string<uri>
write-only
storage_region
string
storage_access_key_id
string
write-only
storage_secret_access_key
string
write-only
storage_application_key_id
string
write-only
storage_application_key
string
write-only
storage_public_domain
string<uri>
storage_return_location
boolean
default:false
storage_bucket_id
string
storage_bucket_name
string
storage_account_id
string
storage_class
enum<string>
Available options:
standard,
reduced_redundancy,
standard_ia,
onezone_ia,
intelligent_tiering,
glacier,
deep_archive,
outposts,
glacier_ir
storage_acl
enum<string>
Available options:
private,
public-read

Response

All outputs completed

success
any
required
type
any
required
assetId
string
required
Pattern: ^ast_
screenshotId
string
required
Pattern: ^scr_
source
object
required
executedPlan
object[]
required

Ordered crop/resize and optional encoding. Format may occur once, last. Otherwise retain source format, lossy quality 80.

Required array length: 1 - 4 elements
provenance
object
required
media
object
required
credits
object
required
referenceExpiresAt
string<date-time>
required
cacheHit
boolean
required