Demo Shortcut
Get started quickly by installing our demo shortcut: Install refile Demo ShortcutCreating Your Own Shortcut
Follow these steps to create a custom refile shortcut:- Open the Shortcuts app on your iOS or macOS device
- Create a new shortcut
- Add a “Text” action to input your markdown content
- Add a “Get Contents of URL” action with the following settings:
- URL:
https://www.refile.co/api/v1/pdf/markdown
- Method: POST
- Headers:
- Name:
Authorization
- Value:
Bearer YOUR_API_KEY
(replace with your actual API key)
- Name:
- Request Body: JSON
- JSON:
- URL:
- (optional) Add a “Quick Look” action to preview the PDF
Customization Options
You can customize your shortcut by modifying the JSON payload:- theme: Choose from various themes
- pageNumeration: Add page numbers with “center”, “left”, “right” or “none”
- pageSize: Set page dimensions like “A4”, “Letter”, “Legal”
- output: Use “url” to get a download link or “binary” for direct PDF data