Authenticate your conversion service
Tiptap Conversion lets you import and export Tiptap JSON to and from DOCX, PDF, ODT, EPUB, DOC, and Markdown. You can integrate import/export directly in your Tiptap editor with dedicated extensions for DOCX and Markdown, or use the Conversion REST API on your server for all supported formats.
Set up authorization
Most conversion operations require authentication. Generate a JWT (JSON Web Token) using the secret key from your Tiptap Cloud account. Include this JWT in requests or extension configs.
Export DOCX Extension
The extension-export-docx package does not require authentication!
Feel free to skip these steps if you only need that extension.
- Activate a plan: Begin a free trial or choose a subscription.
- Get your App ID and secret key on the Convert settings page.
- Generate a JWT for testing using any JWT tool (e.g., JWT Builder). For production, always create JWTs server-side to keep your secret safe.
- Use the JWT in your requests or extension config. For API calls, pass it in the
Authorizationheader and the App ID inX-App-Id.
Explore file-type integrations
Depending on which format you want to work with, each file type has its own guide covering the available REST API endpoints and, where applicable, editor extensions:
Import:
- DOCX import (editor extension + REST API)
- Markdown import (REST API)
Export:
- DOCX export (editor extension + REST API)
- PDF export (REST API)
- ODT export (REST API)
- EPUB export (REST API)
- DOC export (REST API)
- Markdown export (REST API)
These guides explain exactly how to integrate the respective REST API endpoints into your application and configure any necessary options.