# Executes a single browser action in the caller's live session.

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/sessions/{sessionId}/actions:
    post:
      summary: Executes a single browser action in the caller's live session.
      deprecated: false
      description: >-
        Returns the executed action's result plus the current page URL and
        title.

        Use dedicated actions (GetHtml, GetText, TakeScreenshot) for content
        snapshots.

        Each step is billed like the equivalent one-shot action.
      tags:
        - Sessions
        - Sessions
      parameters:
        - name: sessionId
          in: path
          description: The session identifier.
          required: true
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrowserAction'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserActionResultSessionStepResponse'
          headers: {}
          x-apidog-name: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
          headers: {}
          x-apidog-name: ''
        '404':
          description: Not Found
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ProblemDetails'
          headers: {}
          x-apidog-name: ''
        '409':
          description: Conflict
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '410':
          description: Gone
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
      security:
        - ApiKey: []
          x-apidog:
            schemeGroups:
              - id: Mc0cG4A4XLcGS0YA4VR99
                schemeIds:
                  - ApiKey
            required: true
            use:
              id: Mc0cG4A4XLcGS0YA4VR99
            scopes:
              Mc0cG4A4XLcGS0YA4VR99:
                ApiKey: []
      x-apidog-folder: Sessions
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1110200/apis/api-44734735-run
components:
  schemas:
    BrowserAction:
      type: object
      properties:
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        data:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - name
        - description
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    BrowserActionResultSessionStepResponse:
      type: object
      properties:
        sessionId:
          type: string
          description: The session identifier.
          nullable: true
        executionId:
          type: string
          description: The execution identifier for log correlation.
          nullable: true
        result:
          $ref: '#/components/schemas/BrowserActionResult'
        url:
          type: string
          description: Current page URL after the step.
          nullable: true
        title:
          type: string
          description: Current page title after the step.
          nullable: true
        expiresAtUtc:
          type: string
          description: UTC timestamp when the session expires at the latest.
          format: date-time
      additionalProperties: false
      description: Response returned after executing a single action in a session.
      x-apidog-orders:
        - sessionId
        - executionId
        - result
        - url
        - title
        - expiresAtUtc
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    BrowserActionResult:
      type: object
      properties:
        action:
          type: string
          nullable: true
        success:
          type: boolean
        message:
          type: string
          nullable: true
        timestamp:
          type: string
          format: date-time
        duration:
          type: string
          format: date-span
        data:
          type: array
          items:
            $ref: '#/components/schemas/ResultData'
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - action
        - success
        - message
        - timestamp
        - duration
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ResultData:
      type: object
      properties:
        name:
          type: string
          nullable: true
        data:
          type: 'null'
      additionalProperties: false
      x-apidog-orders:
        - name
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ValidationProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
          nullable: true
      additionalProperties:
        type: string
      x-apidog-orders:
        - type
        - title
        - status
        - detail
        - instance
        - errors
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties:
        type: string
      x-apidog-orders:
        - type
        - title
        - status
        - detail
        - instance
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    ApiKey:
      type: apikey
      description: >-
        API Key authentication for programmatic access. Enter your API key in
        the text input below.
      name: apiKey
      in: query
servers:
  - url: https://api.scrapingduck.com
    description: Prod Env
security:
  - ApiKey: []
    x-apidog:
      schemeGroups:
        - id: Mc0cG4A4XLcGS0YA4VR99
          schemeIds:
            - ApiKey
      required: true
      use:
        id: Mc0cG4A4XLcGS0YA4VR99
      scopes:
        Mc0cG4A4XLcGS0YA4VR99:
          ApiKey: []

```
