{"openapi":"3.1.0","info":{"title":"Word Wrap API","version":"1.0.0","description":"Reflow plain text to a fixed column width on word boundaries — the classic word-wrap you need for terminal and CLI output, email and plain-text formatting, code comments, README and changelog blocks, and fixed-width reports. The wrap endpoint breaks text to a chosen width while preserving paragraphs (blank-line separated), with optional left indentation and the option to hard-break words longer than the line; the unwrap endpoint does the reverse, collapsing a wrapped block back into single-line paragraphs. Pure local computation — no key, no third-party service, instant; up to 200,000 characters via POST. Live, nothing stored. 3 endpoints. Distinct from case conversion, slugs and text statistics.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/wordwrap-api","description":"oanor gateway"}],"tags":[{"name":"Word Wrap"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/unwrap":{"get":{"operationId":"get_v1_unwrap","tags":["Word Wrap"],"summary":"Unwrap to paragraphs","description":"","parameters":[{"name":"text","in":"query","required":true,"description":"Wrapped text","schema":{"type":"string"},"example":"The quick brown\nfox jumps over\nthe lazy dog."}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"unwrapped":"The quick brown fox jumps over the lazy dog."},"meta":{"timestamp":"2026-06-03T01:09:41.712Z","request_id":"899f0c48-425e-4a9c-8bb1-0c449efca876"},"status":"ok","message":"Unwrap to paragraphs","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/wrap":{"get":{"operationId":"get_v1_wrap","tags":["Word Wrap"],"summary":"Wrap text to a width","description":"","parameters":[{"name":"text","in":"query","required":true,"description":"Text to wrap","schema":{"type":"string"},"example":"The quick brown fox jumps over the lazy dog."},{"name":"width","in":"query","required":false,"description":"Columns (default 80)","schema":{"type":"string"},"example":"40"},{"name":"indent","in":"query","required":false,"description":"Leading spaces (default 0)","schema":{"type":"string"}},{"name":"break_long_words","in":"query","required":false,"description":"true/false (default false)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"lines":2,"width":40,"wrapped":"The quick brown fox jumps over the lazy\ndog."},"meta":{"timestamp":"2026-06-03T01:09:41.808Z","request_id":"07a8aa18-5cd3-416e-91ed-91568f728666"},"status":"ok","message":"Wrap text to a width","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"name":"Word Wrap API","notes":"Paragraphs are separated by blank lines and preserved. Words longer than the width overflow unless break_long_words is true. Nothing is stored.","version":"v1","endpoints":[{"path":"/v1/wrap","params":{"text":"the text (required)","width":"columns (default 80)","indent":"leading spaces (default 0)","break_long_words":"true/false (default false)"},"returns":"the wrapped text"},{"path":"/v1/unwrap","params":{"text":"wrapped text (required)"},"returns":"paragraphs joined back into single lines"},{"path":"/v1/meta","params":[],"returns":"this document"}],"description":"Reflow plain text to a fixed column width on word boundaries (preserving paragraphs), with optional indentation and long-word breaking — and unwrap text back into single-line paragraphs. Pure local, no key."},"meta":{"timestamp":"2026-06-03T01:09:41.901Z","request_id":"d321a8e7-59a2-4399-9511-fb3476c019a8"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":1105,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":145,"monthly_call_quota":9450,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2135,"monthly_call_quota":145500,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":5935,"monthly_call_quota":770000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/wordwrap-api"}