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

# Export the call sheet (Scout Intent signed)

> Scout Intent checks the request and signs an execution contract. Returns the export receipt: CSV hash, Zetaris query ids, snapshot id, trace ids and the contract signature. The agent drafts, a human decides.



## OpenAPI

````yaml /contract/openapi.yaml post /runs/{id}/export
openapi: 3.1.0
info:
  title: Porch Light API
  version: 0.1.0
  summary: >-
    The shared contract every Porch Light agent builds against. Country
    agnostic: everything US specific sits behind the country adapter interface
    in contract/adapter.md.
  description: >-
    Porch Light takes a weather alert in, builds the warning area, ranks the
    facilities inside it with a fixed transparent formula, and returns a call
    sheet where every row carries its evidence trail. Zetaris is the only data
    path. Meterless is the only model path. Nemotron explains, the formula
    ranks.
  license:
    name: AGPL-3.0
servers: []
security:
  - bearerAuth: []
tags:
  - name: alerts
  - name: runs
  - name: health
paths:
  /runs/{id}/export:
    post:
      tags:
        - runs
      summary: Export the call sheet (Scout Intent signed)
      description: >-
        Scout Intent checks the request and signs an execution contract. Returns
        the export receipt: CSV hash, Zetaris query ids, snapshot id, trace ids
        and the contract signature. The agent drafts, a human decides.
      operationId: exportRun
      parameters:
        - $ref: '#/components/parameters/RunId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportRequest'
      responses:
        '200':
          description: Export receipt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportReceipt'
        '403':
          description: Scout Intent refused the export
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No such run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Meterless unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  parameters:
    RunId:
      name: id
      in: path
      required: true
      schema:
        type: string
        example: run_milton_12081_mock
  schemas:
    ExportRequest:
      type: object
      required:
        - formats
      properties:
        formats:
          type: array
          items:
            type: string
            enum:
              - csv
              - print_sheet
              - call_script
        include_call_script:
          type: boolean
          default: false
    ExportReceipt:
      type: object
      required:
        - export_id
        - run_id
        - created_at
        - artifacts
        - zetaris_query_ids
        - snapshot_id
        - contract_signature
      properties:
        export_id:
          type: string
        run_id:
          type: string
        created_at:
          type: string
          format: date-time
        artifacts:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/ExportArtifact'
          description: One entry per requested format, each retrievable at href.
        csv_sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
          description: >-
            Present when the csv format was exported; kept for readers that only
            need the CSV hash.
        zetaris_query_ids:
          type: array
          items:
            type: string
        snapshot_id:
          type: string
        model_trace_ids:
          type: array
          items:
            type: string
        contract:
          $ref: '#/components/schemas/Contract'
        contract_signature:
          type: string
        held:
          type: array
          items:
            type: string
          description: >-
            Outputs Scout Intent held back, for example the call script while
            Content Safety is unreachable offline.
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            detail: {}
            retry_after_ms:
              type: integer
    ExportArtifact:
      type: object
      required:
        - format
        - sha256
        - href
      properties:
        format:
          type: string
          enum:
            - csv
            - print_sheet
            - call_script
        sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
        href:
          type: string
          description: >-
            Download path under
            /runs/{id}/exports/{export_id}/artifacts/{format}.
        media_type:
          type: string
          example: text/csv
        filename:
          type: string
    Contract:
      type: object
      required:
        - id
        - action
        - request_hash
        - engine
        - signed_at
        - signature
      properties:
        id:
          type: string
        action:
          type: string
          enum:
            - export_call_sheet
            - export_csv
            - draft_call_script
        engine:
          type: string
          enum:
            - scout_intent
        request_hash:
          type: string
          description: SHA-256 of the request.
        inputs_hash:
          type: string
        evidence_ids:
          type: array
          items:
            type: string
        trace_ids:
          type: array
          items:
            type: string
        signed_at:
          type: string
          format: date-time
        signature:
          type: string
        disclaimers:
          type: array
          items:
            type: string
          description: For example, that the call script is a draft a human reviews.
    ErrorCode:
      type: string
      enum:
        - not_found
        - bad_request
        - no_facilities
        - source_stale
        - zetaris_down
        - meterless_unauthorized
        - meterless_offline
        - timeout
        - export_refused
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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