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

# Get a snapshot

> Read a coalesced still image from a ready session. Captures are attempted at most once every two seconds; a cached image may be returned while an operation runs. This is not a live video endpoint and does not extend the session. Inspect Content-Type.



## OpenAPI

````yaml /openapi.json get /sessions/{sid}/frame.png
openapi: 3.1.0
info:
  title: Phone Harness API
  version: '2026-09-14'
  description: >-
    Public account and disposable Android session API. Open beta. Create
    responses are asynchronous; session duration includes provisioning, while
    billing begins at readiness. This specification documents the current
    supported client contract, not internal management interfaces. All example
    IDs, links, timestamps, limits, prices and digests are illustrative, not
    live credentials, measurements, or account entitlements.
  contact:
    name: Phone Harness support
    email: support@phone-harness.com
servers:
  - url: https://api.phone-harness.com
    description: Production beta
security:
  - ApiKey: []
tags:
  - name: Sessions
  - name: Phone
  - name: ADB
  - name: Account
  - name: History
  - name: Service
paths:
  /sessions/{sid}/frame.png:
    get:
      tags:
        - Phone
      summary: Get a snapshot
      description: >-
        Read a coalesced still image from a ready session. Captures are
        attempted at most once every two seconds; a cached image may be returned
        while an operation runs. This is not a live video endpoint and does not
        extend the session. Inspect Content-Type.
      operationId: get-snapshot
      parameters:
        - name: sid
          in: path
          required: true
          schema:
            type: string
          description: Session ID returned by POST /sessions.
      responses:
        '200':
          description: >-
            PNG on the current Android service; compatible providers may return
            JPEG.
          content:
            image/png:
              schema:
                type: string
                format: binary
            image/jpeg:
              schema:
                type: string
                format: binary
        '401':
          description: Bad or missing bearer credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Account access denied or rental access unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No live session visible to the caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Session is not ready, is closing, or the requested action conflicts
            with current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected service error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: No frame available yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKey: []
        - ViewGrant: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable public error.
        code:
          type: string
          description: Present only for errors with a stable code.
        state:
          type: string
        unsupported:
          type: boolean
        outcome:
          type: string
          enum:
            - unknown
            - installed
        id:
          type: string
          description: Session ID if a create receipt exists.
        request_key:
          type: string
        cleanup_complete:
          type: boolean
        balance_cents:
          type: integer
        session:
          type: string
        session_limit:
          type: integer
        active_session_count:
          type: integer
        available_session_slots:
          type: integer
      required:
        - error
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        Phone Harness account API key (pck_…). The dashboard may use a Clerk
        session JWT with the same header. Never put an account key in a URL.
    ViewGrant:
      type: apiKey
      in: query
      name: token
      description: >-
        Limited token from an existing watch URL. Reads only its one session
        metadata or snapshot; cannot control or install. Do not use an account
        API key here.

````