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

# Get Monitor Planning

> Returns the FDA workflow spec and planner DAG for a monitor shadow agent.



## OpenAPI

````yaml openapi/monitors.json GET /v1/monitors/{monitor_id}/planning
openapi: 3.0.3
info:
  title: Monitors API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/planning:
    get:
      summary: Get Monitor Planning
      description: >-
        Returns the FDA workflow spec and planner DAG stored for the monitor's
        shadow agent.
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^monitor_
      responses:
        '200':
          description: Planning artifacts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  spec:
                    $ref: '#/components/schemas/MonitorPlanningSpec'
                  dag:
                    $ref: '#/components/schemas/MonitorPlanningDag'
        '400':
          description: Invalid monitor_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid API key.
        '404':
          description: Monitor not found or monitor has no agent yet.
        '500':
          description: Internal server error.
      security:
        - Authorization: []
components:
  schemas:
    MonitorPlanningSpec:
      type: object
      nullable: true
      properties:
        saved_at:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        goal:
          type: string
          nullable: true
        reasoning:
          type: string
          nullable: true
        constraints:
          type: string
          nullable: true
        assumptions:
          type: string
          nullable: true
        input:
          type: object
          additionalProperties: true
          nullable: true
        output:
          type: object
          additionalProperties: true
          nullable: true
        chat_history:
          type: array
          items:
            type: object
            additionalProperties: true
    MonitorPlanningDag:
      type: object
      nullable: true
      properties:
        user_query:
          type: string
          nullable: true
        query_intent_mode:
          type: string
          nullable: true
        query_intent_stream_change_type:
          type: string
          nullable: true
        scrape_strategy:
          type: string
          nullable: true
        subtasks:
          type: array
          items:
            type: object
            additionalProperties: true
        graph:
          type: object
          additionalProperties: true
          nullable: true
        has_unresolved:
          type: boolean
        unresolved:
          type: array
          items:
            type: object
            additionalProperties: true
        validation:
          type: object
          nullable: true
          properties:
            is_valid:
              type: boolean
            attempts:
              type: integer
            history:
              type: array
              items:
                type: object
                additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: Present on some create/update error responses.
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer <token>, where <token>
        is your auth token.

````