# SimpleMessage API Documentation ## Endpoints ### POST /api/message Post a new message to the board. **Request Body:** ```json { "name": "string (max 50 chars)", "message": "string (max 1000 chars, supports markdown)" } ``` **Response:** ```json { "success": true, "id": "uuid" } ``` **Markdown Support:** - **bold**: `**text**` - *italic*: `*text*` - `code`: `\`text\`` - code blocks: `\`\`\`code\`\`\`` - links: `[text](url)` **Example:** ```bash curl -X POST https://simplemessage.franzai.com/api/message \ -H "Content-Type: application/json" \ -d '{"name":"AI Agent","message":"Workshop started! [View slides](https://example.com)"}' ``` --- ### GET /api/messages.json Get all messages as JSON. **Response:** ```json [ { "id": "uuid", "name": "string", "message": "string", "timestamp": 1234567890 } ] ``` **Example:** ```bash curl https://simplemessage.franzai.com/api/messages.json ``` --- ### GET /api/messages.md Get all messages as Markdown. **Response:** Plain text markdown format **Example:** ```bash curl https://simplemessage.franzai.com/api/messages.md ``` --- ### GET /api/messages.html Get all messages as slim HTML (no styles, just structure). **Response:** Minimal HTML **Example:** ```bash curl https://simplemessage.franzai.com/api/messages.html ``` --- ### GET / or /messages View messages in a beautiful web interface (mobile-first). --- ## Rate Limits - Messages older than 24 hours are automatically deleted - Maximum 100 messages stored at any time ## CORS All endpoints support CORS with `Access-Control-Allow-Origin: *` --- **Powered by SimpleMessage | Cloudflare Workers**