UI Action
Type text
Directly inputs text content without triggering physical key events (keydown, etc.), ideal for quickly filling large amounts of text when intermediate input events aren't needed.
post/boxes/{boxId}/actions/type
Path parameters
boxIdstring required
Example:c9bdc193-b54b-4ddb-a035-5ac0c598d32d
Box ID
Request body
Example request
{
"text": "Hello, World!",
"mode": "append",
"options": {
"screenshot": {
"outputFormat": "base64",
"presignedExpiresIn": "30m",
"delay": "500ms",
"phases": [
"before",
"after"
]
}
},
"outputFormat": "base64",
"presignedExpiresIn": "30m",
"screenshotDelay": "500ms"
}Response
Example response
{
"message": "Action executed successfully",
"actionId": "c9bdc193-b54b-4ddb-a035-5ac0c598d32d",
"screenshot": {
"trace": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."
},
"before": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"presignedUrl": "https://example.com/xxxxx/xxxxx/xxxxx"
},
"after": {
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"presignedUrl": "https://example.com/xxxxx/xxxxx/xxxxx"
}
}
}