openapi: 3.1.0
info:
  title: Finance Workspace API
  version: 0.2.0
  description: Protected finance workspace API with x-* permission metadata for agent harness authorization.
paths:
  /health:
    get:
      x-required-permissions: []
      x-impact: low
      x-approval-required: false
  /api/bootstrap/person-vc:
    get:
      x-required-permissions: []
      x-impact: low
      x-approval-required: false
  /api/spaces/{spaceId}/documents:
    get:
      summary: Read finance workspace documents
      x-required-permissions: ["space.read"]
      x-impact: low
      x-approval-required: false
    post:
      summary: Generate finance workspace document
      x-required-permissions: ["space.write"]
      x-impact: low
      x-approval-required: false
  /api/spaces/{spaceId}/documents/{documentId}:
    delete:
      summary: Delete finance workspace document
      x-required-permissions: ["space.delete"]
      x-impact: high
      x-approval-required: true
  /api/payments:
    post:
      summary: Execute finance payment
      x-required-permissions: ["payment.execute"]
      x-impact: high
      x-approval-required: true
