curl -sS -X POST "$BMA_BASE_URL/v1/desktop_sessions/<desktop_session_id>/screenshot" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "desktop_screenshot",
"content_type": "<string>",
"width": 123,
"height": 123,
"captured_at": "2023-11-07T05:31:56Z",
"image_base64": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Desktop sessions
Capture a screenshot
POST
/
v1
/
desktop_sessions
/
{desktop_session_id}
/
screenshot
curl -sS -X POST "$BMA_BASE_URL/v1/desktop_sessions/<desktop_session_id>/screenshot" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{}'{
"type": "desktop_screenshot",
"content_type": "<string>",
"width": 123,
"height": 123,
"captured_at": "2023-11-07T05:31:56Z",
"image_base64": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}请求头
请求体
application/json
No fields; the body may be omitted.