> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Capture a screenshot of the sandbox desktop

> Screenshot as base64-encoded image

### Path parameters

<ParamField path="id" type="string (uuid)" required>
  Sandbox identifier
</ParamField>

### Response

`object`

<ResponseField name="image" type="string (byte)" required>
  Base64-encoded image data
</ResponseField>

<ResponseField name="format" type="string" required />

### Status codes

| Code  | Meaning                            |
| ----- | ---------------------------------- |
| `200` | Screenshot as base64-encoded image |
| `404` | Sandbox not found                  |
| `500` | Screenshot capture failed          |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/screenshot' \
    --header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "image": "aGVsbG8=",
    "format": "png"
  }
  ```
</ResponseExample>
