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

# Get Execution Page States

> Returns captured page-state snapshots for an execution that ran in a browser
session, keyed by workflow segment name. Optionally filter to specific segments.




## OpenAPI

````yaml /openapi.yaml get /v1/executions/{executionId}/page-states
openapi: 3.1.0
info:
  title: AnchorBrowser API
  version: 1.0.0
  description: APIs to manage all browser-related actions and configuration.
servers:
  - url: https://api.anchorbrowser.io
    description: API server
security: []
paths:
  /v1/executions/{executionId}/page-states:
    get:
      tags:
        - Executions
      summary: Get Execution Page States
      description: >
        Returns captured page-state snapshots for an execution that ran in a
        browser

        session, keyed by workflow segment name. Optionally filter to specific
        segments.
      parameters:
        - name: executionId
          in: path
          required: true
          description: The execution result ID.
          schema:
            type: string
        - name: segmentNames
          in: query
          required: false
          description: Comma-separated list of segment names to return. Omit to return all.
          schema:
            type: string
      responses:
        '200':
          description: Execution page states retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pageStates:
                    type: object
                    additionalProperties:
                      type: string
                    description: Map of segment name to captured page-state content.
                  missingSegmentNames:
                    type: array
                    items:
                      type: string
                    description: Requested segment names that had no captured state.
        '404':
          description: Execution not found, has no browser session, or has no page states.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '500':
          description: Failed to fetch execution page states.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    FlatErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: integer
          description: HTTP status code.
      required:
        - error
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````