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

# Get action result

> Returns the stored status and result of an action. Use this to poll actions that returned 202; HTTP 200 can contain any action status. Stored observations contain metadata with empty tree and refs, not the full snapshot; submit a fresh observe action to obtain current refs.



## OpenAPI

````yaml /openapi/source/external/agent-browser/agent-browser.json get /browser_sessions/{id}/actions/{actionId}
openapi: 3.1.0
info:
  version: 1.0.0
  title: Telnyx API
  x-latency-category: interactive
  x-endpoint-cost: light
  description: >-
    Isolated, short-lived browser sessions for AI agents — navigate, observe,
    click, fill, and screenshot through one API.


    ## Authentication


    All endpoints require a Telnyx API key sent as a Bearer token in the
    `Authorization` header.


    ## Session Quota


    Creating a session is subject to a concurrent-session quota per
    organization. When capacity is exhausted, create returns `429
    quota_exceeded` with `retryable: true`. Close unneeded active sessions or
    wait for capacity before retrying.


    ## Error Responses


    Request errors use `{ "error": { "code": string, "message": string,
    "retryable": boolean } }`. Execution failures are reported on action
    resources with HTTP 200 and `data.status` set to `failed` or `unknown`. A
    request can also return HTTP 503 `execution_lost`; inspect action and
    session state before retrying because the action may already have taken
    effect.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
    description: Telnyx API v2
security:
  - bearerAuth: []
tags:
  - name: Browser Sessions
    description: Create, list, get, and close browser sessions.
  - name: Actions
    description: >-
      Execute browser actions: navigate, observe, click, fill, select, press,
      scroll, wait_for, screenshot, batch.
  - name: Artifacts
    description: Download screenshots and other artifacts.
paths:
  /browser_sessions/{id}/actions/{actionId}:
    get:
      tags:
        - Actions
      summary: Get action result
      description: >-
        Returns the stored status and result of an action. Use this to poll
        actions that returned 202; HTTP 200 can contain any action status.
        Stored observations contain metadata with empty tree and refs, not the
        full snapshot; submit a fresh observe action to obtain current refs.
      operationId: GetBrowserAction
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: actionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Action details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ActionResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ActionResponse:
      type: object
      properties:
        id:
          type: string
          example: bact_075cfdc9-...
        session_id:
          type: string
        seq:
          type: integer
        type:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - unknown
          description: >-
            POST returns 202 for queued or running actions. Terminal states are
            succeeded, failed, and unknown (the execution outcome could not be
            determined, with error.code=execution_lost). GET returns 200 for
            both nonterminal and terminal states.
        result:
          type:
            - object
            - 'null'
          properties:
            url:
              type: string
            title:
              type: string
            observation:
              type: object
              properties:
                observation_id:
                  type: string
                url:
                  type: string
                title:
                  type: string
                refs:
                  type: object
                tree:
                  type: string
                truncated:
                  type: boolean
                ref_count:
                  type: integer
                  description: >-
                    Number of refs in the original observation, present on
                    stored observation metadata.
              description: >-
                Full tree and refs are delivered only in the original successful
                POST response when completed within wait_seconds. GET polling
                and idempotent replays return metadata with an empty tree and
                refs plus ref_count. Submit a fresh observe action to obtain
                usable refs.
            artifact:
              type: object
              properties:
                artifact_id:
                  type: string
                content_type:
                  type: string
                size_bytes:
                  type: integer
            results:
              type: array
              items:
                type: object
              description: Present only for batch actions.
        request:
          type: object
          description: >-
            Normalized request metadata; defaults may be materialized and fill
            values are redacted as {redacted: true, length: number}, including
            inside batch actions.
        error:
          type:
            - object
            - 'null'
          properties:
            code:
              type: string
            retryable:
              type: boolean
          description: >-
            Null unless an execution failure is recorded. Action failures
            (policy_denied, stale_observation, stale_ref, navigation_blocked,
            timeout, execution_lost, result_too_large) are returned on the
            action resource with HTTP 200. An unknown action with execution_lost
            has retryable=false; inspect session state and reconcile possible
            effects before any new action. Separately, a request may return HTTP
            503 with a top-level execution_lost error and retryable=true; that
            is not proof of safe re-execution.
          required:
            - code
            - retryable
        created_at:
          type: string
          format: date-time
        started_at:
          type:
            - string
            - 'null'
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - session_id
        - seq
        - type
        - status
        - result
        - request
        - error
        - created_at
        - started_at
        - completed_at
    GatewayError:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - title
            properties:
              code:
                type: string
              title:
                type: string
              detail:
                type: string
              source:
                type: object
                properties:
                  pointer:
                    type: string
              meta:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
          required:
            - code
            - message
            - retryable
      required:
        - error
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayError'
          example:
            errors:
              - code: '10009'
                title: Authentication failed
                detail: Could not find any usable credentials in the request.
                source:
                  pointer: /
                meta:
                  url: https://developers.telnyx.com/docs/overview/errors/10009
    NotFound:
      description: Session or artifact not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: not_found
              message: session not found
              retryable: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````