Convert Markdown via REST API
Available in Start planBeta
Requirements
Start a free trial or subscribe to the Start plan in your account.
In case you want to integrate the REST API retrieve your App ID and Convert secret from your dashboard.
To install the frontend extensions, authenticate to Tiptap’s private npm registry by following the setup guide.
Use Postman
Experiment with the Conversion API in our Postman collection.
Import API endpoint
POST /import
Converts .md files (or gfm) to Tiptap JSON.
curl -X POST "https://api.tiptap.dev/v1/convert/import?format=md" \
-H "Authorization: Bearer <your-jwt-token>" \
-H "X-App-Id: <your-app-id>" \
-F "file=@/path/to/file.md"Import API Headers
| Header | Description |
|---|---|
Authorization | Bearer <your-jwt-token> |
X-App-Id | Convert App ID from https://cloud.tiptap.dev/convert-settings |
Import API Fields
| Field | Description |
|---|---|
file | The markdown file to convert |
imageUploadCallbackUrl | Optional endpoint for handling images if the markdown file references local images |
Export API endpoint
POST /export
Converts Tiptap JSON to .md or .gfm.
curl -X POST "https://api.tiptap.dev/v1/convert/export" \
-H "Authorization: Bearer <your-jwt-token>" \
-H "X-App-Id: <your-app-id>" \
-H "Content-Type: application/json" \
-d '{"content":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Hello from Tiptap!"}]}]},"format":"md"}' \
--output document.mdExport API Headers
| Header | Description |
|---|---|
Authorization | Bearer <your-jwt-token> |
X-App-Id | Convert App ID from https://cloud.tiptap.dev/convert-settings |
Export API Fields
| Field | Description |
|---|---|
content | Tiptap JSON content |
format | Target format, md or gfm for GitHub Flavored Markdown |