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

# Execute Step



## OpenAPI

````yaml POST /session/{sessionId}
openapi: 3.0.1
info:
  title: Stelis API
  description: API for Stelis's browser automation and information retrieval services
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.stelis.app/v1
security:
  - bearerAuth: []
paths:
  /session/{sessionId}:
    post:
      tags:
        - Step API
      summary: Execute a step in an existing session
      operationId: executeStep
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteStepRequest'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteStepResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    ExecuteStepRequest:
      type: object
      required:
        - action
        - selector
      properties:
        action:
          type: string
          description: Action to perform (e.g., click, type)
        selector:
          type: string
          description: CSS selector for the target element
        value:
          type: string
          description: Value to use for the action (e.g., text to type)
    ExecuteStepResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        result:
          type: string
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    TooManyRequests:
      description: Too many requests
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````