Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Enter your API Key in the format: Bearer . Get it from https://gbox.ai

Path Parameters

boxId
string
required

Box ID

Example:

"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"

Body

application/json

Screenshot capture action configuration

outputFormat
enum<string>
default:base64

Type of the URI. default is base64.

Available options:
base64,
storageKey
Example:

"base64"

presignedExpiresIn
string
default:30m

Presigned url expires in. Only takes effect when outputFormat is storageKey.

Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 30m

Example:

"30m"

saveToAlbum
boolean
default:false

Whether to save the screenshot to the device screenshot album

Example:

false

scrollCapture
Screenshot Scroll Capture · object

Scroll capture parameters

Example:
clip
Screenshot Clip · object

clip of the screenshot

Example:

Response

200 - application/json

Result of screenshot capture action

uri
string
required

URL of the screenshot

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."

presignedUrl
string

Presigned url of the screenshot

Example:

"https://example.com/xxxxx/xxxxx/xxxxx"