{
  "openapi": "3.1.0",
  "info": {
    "title": "TautFrame Agentic SEO and Render API",
    "version": "0.1.0",
    "description": "Educational biomechanical visualization only under the FDA January 6, 2026 Revised General Wellness Policy. Exercise form, posture symmetry, relaxation, and movement reference only; not medical diagnosis, clinical advice, or treatment instruction.",
    "contact": {
      "name": "TautFrame",
      "url": "https://tautframe.com",
      "email": "support@tautframe.com"
    }
  },
  "servers": [
    {
      "url": "https://tautframe.com"
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "summary": "Concise Markdown site manifest for LLMs",
        "responses": {
          "200": {
            "description": "Markdown manifest"
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "summary": "Expanded Markdown reference manifest",
        "responses": {
          "200": {
            "description": "Full Markdown manifest"
          }
        }
      }
    },
    "/docs.md": {
      "get": {
        "summary": "Markdown developer documentation",
        "responses": {
          "200": {
            "description": "Developer docs in Markdown"
          }
        }
      }
    },
    "/atlas/": {
      "get": {
        "summary": "Movement Reference Atlas index (HTML or text/markdown)",
        "responses": {
          "200": {
            "description": "Atlas index"
          }
        }
      }
    },
    "/atlas/{slug}": {
      "get": {
        "summary": "Citable movement reference detail (HTML or text/markdown)",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Movement reference"
          },
          "404": {
            "description": "Movement slug not found"
          }
        }
      }
    },
    "/atlas/{slug}.md": {
      "get": {
        "summary": "Markdown movement reference sheet",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Movement reference in Markdown"
          },
          "404": {
            "description": "Movement slug not found"
          }
        }
      }
    },
    "/api/jobs": {
      "post": {
        "summary": "Queue a paid cloud 3D biomechanical render job",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaidJobRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Paid render job queued"
          },
          "400": {
            "description": "Invalid request fields"
          },
          "402": {
            "description": "Prepaid order_token required or credits exhausted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequiredError"
                }
              }
            }
          }
        }
      }
    },
    "/api/trial-jobs": {
      "post": {
        "summary": "Queue a watermarked 720p trial clip (2/month cap per email)",
        "responses": {
          "201": {
            "description": "Trial clip queued"
          },
          "402": {
            "description": "Monthly 2-clip quota exhausted"
          }
        }
      }
    },
    "/checkout/{sku}": {
      "get": {
        "summary": "Redirect to Stripe Managed Payments USD checkout",
        "parameters": [
          {
            "name": "sku",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Checkout session redirect"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PaidJobRequest": {
        "type": "object",
        "required": [
          "order_token",
          "pack_slug",
          "input_video_url"
        ],
        "properties": {
          "order_token": {
            "type": "string",
            "description": "Prepaid bts_* token from checkout"
          },
          "pack_slug": {
            "type": "string"
          },
          "input_video_url": {
            "type": "string",
            "format": "uri"
          },
          "brand_name": {
            "type": "string"
          }
        }
      },
      "PaymentRequiredError": {
        "type": "object",
        "required": [
          "error",
          "checkout_url"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "checkout_url": {
            "type": "string"
          }
        }
      }
    }
  }
}