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

# Get Remediation Draft

> Read the caller's draft status and completed form as JSON.



## OpenAPI

````yaml https://api.galileo.ai/public/v2/openapi.json get /v2/projects/{project_id}/runs/{run_id}/signals/{signal_id}/remediations/{remediation_id}/drafts/{draft_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.galileo.ai
    description: Galileo Public APIs - galileo-v2
security: []
paths:
  /v2/projects/{project_id}/runs/{run_id}/signals/{signal_id}/remediations/{remediation_id}/drafts/{draft_id}:
    get:
      tags:
        - signals-v2
      summary: Get Remediation Draft
      description: Read the caller's draft status and completed form as JSON.
      operationId: >-
        get_remediation_draft_v2_projects__project_id__runs__run_id__signals__signal_id__remediations__remediation_id__drafts__draft_id__get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Project Id
        - name: signal_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Signal Id
        - name: remediation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Remediation Id
        - name: draft_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Draft Id
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalRemediationDraftResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - ClassicAPIKeyHeader: []
        - OAuth2PasswordBearer: []
        - HTTPBasic: []
components:
  schemas:
    SignalRemediationDraftResponse:
      properties:
        data:
          oneOf:
            - $ref: '#/components/schemas/SignalRemediationDraftPending'
            - $ref: '#/components/schemas/SignalRemediationDraftCompleted'
            - $ref: '#/components/schemas/SignalRemediationDraftFailed'
          title: Data
          discriminator:
            propertyName: status
            mapping:
              completed: '#/components/schemas/SignalRemediationDraftCompleted'
              failed: '#/components/schemas/SignalRemediationDraftFailed'
              pending: '#/components/schemas/SignalRemediationDraftPending'
      additionalProperties: false
      type: object
      required:
        - data
      title: SignalRemediationDraftResponse
      description: Preparation status and completed resource form.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SignalRemediationDraftPending:
      properties:
        draft_id:
          type: string
          format: uuid4
          title: Draft Id
        status:
          type: string
          const: pending
          title: Status
          default: pending
      additionalProperties: false
      type: object
      required:
        - draft_id
      title: SignalRemediationDraftPending
    SignalRemediationDraftCompleted:
      properties:
        draft_id:
          type: string
          format: uuid4
          title: Draft Id
        status:
          type: string
          const: completed
          title: Status
          default: completed
        result:
          oneOf:
            - $ref: '#/components/schemas/EvaluatorFormDraftResult'
            - $ref: '#/components/schemas/ControlFormDraftResult'
          title: Result
          discriminator:
            propertyName: target
            mapping:
              control: '#/components/schemas/ControlFormDraftResult'
              evaluator: '#/components/schemas/EvaluatorFormDraftResult'
      additionalProperties: false
      type: object
      required:
        - draft_id
        - result
      title: SignalRemediationDraftCompleted
    SignalRemediationDraftFailed:
      properties:
        code:
          type: string
          enum:
            - missing_scope
            - unsupported_check
            - missing_evaluator
            - generation_failed
            - provider_unavailable
            - model_configuration
            - timed_out
            - capacity_busy
            - expired
          title: Code
        message:
          type: string
          maxLength: 1000
          minLength: 1
          title: Message
        retryable:
          type: boolean
          title: Retryable
        requirements:
          items:
            type: string
            maxLength: 500
            minLength: 1
          type: array
          maxItems: 5
          title: Requirements
        draft_id:
          type: string
          format: uuid4
          title: Draft Id
        status:
          type: string
          const: failed
          title: Status
          default: failed
      additionalProperties: false
      type: object
      required:
        - code
        - message
        - retryable
        - draft_id
      title: SignalRemediationDraftFailed
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EvaluatorFormDraftResult:
      properties:
        target:
          type: string
          const: evaluator
          title: Target
          default: evaluator
        form_payload:
          $ref: '#/components/schemas/CompleteMetricFormPatch'
      additionalProperties: false
      type: object
      required:
        - form_payload
      title: EvaluatorFormDraftResult
    ControlFormDraftResult:
      properties:
        target:
          type: string
          const: control
          title: Target
          default: control
        form_payload:
          $ref: '#/components/schemas/ControlCreatePayload'
      additionalProperties: false
      type: object
      required:
        - form_payload
      title: ControlFormDraftResult
    CompleteMetricFormPatch:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 10000
            - type: 'null'
          title: Description
          description: User-facing description of what the evaluator measures.
        target_node_type:
          type: string
          enum:
            - session
            - trace
            - workflow
            - agent
            - llm
            - retriever
            - tool
          title: Target Node Type
        user_prompt:
          type: string
          maxLength: 16000
          minLength: 1
          title: User Prompt
        model:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Model
          description: Model alias to use for the LLM-as-a-judge metric.
        output_type:
          type: string
          enum:
            - boolean
            - categorical
            - count
            - discrete
            - percentage
            - multilabel
          title: Output Type
        metric_color_picker_config:
          anyOf:
            - $ref: '#/components/schemas/MetricColorPickerConfig'
            - type: 'null'
          description: >-
            Evaluator form color configuration using boolean, categorical,
            multi_label, or numeric shape.
        cot_enabled:
          type: boolean
          title: Cot Enabled
          default: true
      additionalProperties: false
      type: object
      required:
        - name
        - target_node_type
        - user_prompt
        - output_type
      title: CompleteMetricFormPatch
      description: Required fields for opening a new evaluator form.
    ControlCreatePayload:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        data:
          $ref: '#/components/schemas/ControlFormData'
      additionalProperties: false
      type: object
      required:
        - name
        - data
      title: ControlCreatePayload
    MetricColorPickerConfig:
      properties:
        type:
          type: string
          enum:
            - boolean
            - categorical
            - multi_label
            - numeric
          title: Type
        constraints:
          items:
            anyOf:
              - $ref: >-
                  #/components/schemas/libs__python__schemas__assistant__assistant__BooleanColorConstraint
              - $ref: >-
                  #/components/schemas/libs__python__schemas__assistant__assistant__CategoricalColorConstraint
              - $ref: >-
                  #/components/schemas/libs__python__schemas__assistant__assistant__NumericColorConstraint
          type: array
          title: Constraints
      additionalProperties: false
      type: object
      required:
        - type
        - constraints
      title: MetricColorPickerConfig
      description: Evaluator color thresholds in the existing Evaluator form/API shape.
    ControlFormData:
      properties:
        enabled:
          type: boolean
          const: false
          title: Enabled
          default: false
        execution:
          type: string
          const: server
          title: Execution
          default: server
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        scope:
          $ref: '#/components/schemas/ControlDraftScope'
        condition:
          additionalProperties:
            $ref: '#/components/schemas/pydantic__types__JsonValue'
          type: object
          title: Condition
        action:
          $ref: '#/components/schemas/ControlFormAction'
      additionalProperties: false
      type: object
      required:
        - scope
        - condition
        - action
      title: ControlFormData
      description: Validated, disabled control values accepted by the control editor.
    libs__python__schemas__assistant__assistant__BooleanColorConstraint:
      properties:
        color:
          type: string
          enum:
            - red
            - yellow
            - green
          title: Color
        operator:
          type: string
          const: eq
          title: Operator
        value:
          type: boolean
          title: Value
      additionalProperties: false
      type: object
      required:
        - color
        - operator
        - value
      title: BooleanColorConstraint
    libs__python__schemas__assistant__assistant__CategoricalColorConstraint:
      properties:
        color:
          type: string
          enum:
            - red
            - yellow
            - green
          title: Color
        operator:
          type: string
          enum:
            - eq
            - one_of
          title: Operator
        value:
          anyOf:
            - type: string
            - items:
                type: string
              type: array
          title: Value
      additionalProperties: false
      type: object
      required:
        - color
        - operator
        - value
      title: CategoricalColorConstraint
    libs__python__schemas__assistant__assistant__NumericColorConstraint:
      properties:
        color:
          type: string
          enum:
            - red
            - yellow
            - green
          title: Color
        operator:
          type: string
          enum:
            - eq
            - gt
            - gte
            - lt
            - lte
            - between
          title: Operator
        value:
          anyOf:
            - type: number
            - items:
                type: number
              type: array
          title: Value
      additionalProperties: false
      type: object
      required:
        - color
        - operator
        - value
      title: NumericColorConstraint
    ControlDraftScope:
      properties:
        step_types:
          items:
            type: string
            enum:
              - tool
              - llm
              - retriever
              - trace
              - session
          type: array
          minItems: 1
          title: Step Types
          description: >-
            Step types the control applies to. 'llm', 'tool' and 'retriever' are
            spans and can be combined; 'trace' and 'session' must each be used
            alone.
        stages:
          items:
            type: string
            enum:
              - pre
              - post
          type: array
          minItems: 1
          title: Stages
          description: >-
            Evaluation stages. 'pre' runs before the step executes (only
            'input'/'name'/'type'/'context' are populated); 'post' runs after
            (adds 'output').
        step_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Step Names
          description: >-
            Exact step names to scope to. Mutually exclusive with
            step_name_regex.
        step_name_regex:
          anyOf:
            - type: string
            - type: 'null'
          title: Step Name Regex
          description: >-
            RE2 pattern matched against the step name. Mutually exclusive with
            step_names.
      additionalProperties: false
      type: object
      required:
        - step_types
        - stages
      title: ControlDraftScope
      description: Which steps a drafted control applies to.
    pydantic__types__JsonValue: {}
    ControlFormAction:
      properties:
        decision:
          type: string
          enum:
            - observe
            - deny
            - steer
          title: Decision
        steering_context:
          anyOf:
            - $ref: '#/components/schemas/ControlSteeringContext'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - decision
      title: ControlFormAction
    ControlSteeringContext:
      properties:
        message:
          type: string
          maxLength: 10000
          minLength: 1
          title: Message
      additionalProperties: false
      type: object
      required:
        - message
      title: ControlSteeringContext
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Splunk-AO-API-Key
    ClassicAPIKeyHeader:
      type: apiKey
      in: header
      name: Galileo-API-Key
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: https://api.galileo.ai/login
    HTTPBasic:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.