{"openapi":"3.0.3","info":{"title":"BittyBox Agentic API","description":"API for creating, decoding, rendering, and managing self-contained BittyBox URL micro-apps with zero backend footprint. Aligned with Securing the API Stronghold & API Lifecycle standards.","version":"1.0.0","contact":{"name":"BittyBox Platform Team","url":"https://bittybox.org"}},"servers":[{"url":"https://bittybox.org/api/v1","description":"Production API Server"}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"paths":{"/health":{"get":{"summary":"Check API Health & Lifecycle Status","responses":{"200":{"description":"API status report"}}}},"/auth/token":{"post":{"summary":"Generate Bearer JWT API Token","responses":{"200":{"description":"JWT Token issued"}}}},"/apps/encode":{"post":{"summary":"Encode HTML/CSS/JS into BittyBox URL","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"responses":{"201":{"description":"App compressed and URL generated"}}}},"/apps/decode":{"post":{"summary":"Decode BittyBox URL/fragment back to raw source","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"responses":{"200":{"description":"Payload decompressed"}}}},"/apps/render":{"post":{"summary":"Render HTML preview of BittyBox app","responses":{"200":{"description":"HTML preview document"}}}},"/apps/batch":{"post":{"summary":"Create interlinked multi-page app suite","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"responses":{"201":{"description":"Suite created with nav links"}}}},"/templates":{"get":{"summary":"List ready-to-use micro-app templates","responses":{"200":{"description":"List of templates"}}}}}}