cURL
curl -X POST https://<YOUR-PROJECT-URL>/functions/v1/convert \
-H "X-Typemail-Key: $TYPEMAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Hello, world!\\nThis is **Typemail**.",
"template_id": "default",
"ai_service": "openai"
}'