{"info":{"description":"Publish a file or generated page and get a shareable link.","title":"snapy publish API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/publish":{"post":{"description":"Send generated HTML or text and receive a live URL anyone can open.","operationId":"publishContent","requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"The text or HTML to publish.","type":"string"},"filename":{"description":"Optional file name, e.g. index.html. Defaults to index.html.","type":"string"},"name":{"description":"Optional custom link name (the subdomain).","type":"string"}},"required":["content"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"stats_url":{"type":"string"},"token":{"type":"string"},"url":{"type":"string"}},"type":"object"}}},"description":"Published"}},"summary":"Publish content and get a shareable link"}}},"servers":[{"url":"https://api.snapy.host"}]}
