# Cloud phone screen capture

Capture the Cloud Phone screen and return a download URL.
- **Preconditions**
: the phone must be powered on and not held by another member. Supported on compatible device models only; incompatible models reject the call.
- **Effect**
: on some models the screenshot file is removed from the device after it is captured.
- **Completion**
: synchronous. The response includes a temporary image download URL.
- **Caveat**
: on some models the reported expiry is a fixed one hour from the response and
`success`
 is always true — it is not the real signature lifetime. Download promptly rather than storing the URL.
- **Retry**
: no side effect beyond the capture itself, so it is safe to repeat.

Endpoint: POST /api/cloudphone/screenCap
Version: 2026-09-05

## Request fields (application/json):

  - `id` (string, required)
    cloud phone ID
    Example: 1558968155668507

## Response 200:

  - `200` (unknown)
    Success. `data` is an object with the fields `url`, `status`, `expireAt` and `success`.

## Response 200 fields (application/json):

  - `code` (integer)
    Response code: 0 = success, >0 = error

  - `data` (object)

  - `data.url` (string)
    The screenshot access URL
    Example: http://oss.morelogin.com/test.png

  - `data.status` (string)
    Status representing immediate completion ("finish") or pending status ("pending")
    Example: finish

  - `data.expireAt` (string)
    URL expiration timestamp in milliseconds (returned only by some device models)
    Example: 1756024767163

  - `data.success` (boolean)
    Was successfully generated
    Example: true

  - `msg` (string | null)
    Message; populated if code > 0

  - `requestId` (string)
    Unique request identifier; include it when contacting support

