‹div›RIOTS API
Requirements
All API requests must be made over HTTPS on https://api.divriots.com/v1.
Base URL change. The API moved from
https://api.cloud.divriots.com/v1tohttps://api.divriots.com/v1. Update your base URL; requests and responses are otherwise unchanged.
Required HTTP Headers:
Content-Type:application/jsonormultipart/form-dataAuthorization:Bearer {APIKEY}
Create your {APIKEY} here.
Supported conversions
Which output formats /convert can produce from each
input:
| Output → Input ↓ | figma-clipboard | figma-rest | html-inlinestyles | html-tailwindcss | image | pdf | pptx |
|---|---|---|---|---|---|---|---|
ai | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
eps | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
fig | ✅ | ✅ | ✅ | ✅ | ✕ | ✅ | ✅ |
figma-clipboard | ✕ | ✕ | ✅ | ✅ | ✕ | ✅ | ✅ |
figma-rest | ✕ | ✕ | ✅ | ✅ | ✕ | ✅ | ✅ |
html | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
image | ✕ | ✕ | ✅ | ✅ | ✕ | ✕ | ✕ |
iwork | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✕ |
msoffice | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✕ |
openoffice | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✕ |
fw | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
idml | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
pdf | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
ps | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
psd | ✅ | ✅ | ✕ | ✕ | ✅ | ✕ | ✕ |
xd | ✅ | ✅ | ✕ | ✕ | ✕ | ✕ | ✕ |
✕ marks a combination the API does not support. See Pricing for what each conversion costs.
Formats
Input
ai— Adobe Illustrator fileeps— Encapsulated PostScript filefig— Figma design file saved locallyfigma-clipboard— A selection copied from the Figma canvasfigma-rest— JSON, structurally compatible with the Figma REST API (e.g. a JSON_REST_V1 node export), plus its image fillshtml— HTML code fileimage— Raster screenshot/mockup (PNG, JPEG, …)iwork— Apple iWork document — Pages & Keynote (.pages, .key)msoffice— Microsoft Office document — Word & PowerPoint (.docx, .doc, .pptx, .ppt, …)openoffice— OpenDocument text or presentation (.odt, .odp)fw— Adobe Fireworks PNG (.fw.png): pages, layers, text, vectors, bitmaps, symbolsidml— Adobe InDesign Markup (.idml): pages, master pages, layers, text, styles, images (an .indd is refused: save it as IDML)pdf— PDF fileps— PostScript filepsd— Adobe Photoshop filexd— Adobe XD file, saved locally
Output
figma-clipboard— Data that can be loaded into the clipboard and pasted onto the Figma canvasfigma-rest— JSON, structurally compatible with the Figma REST APIhtml-inlinestyles— Generated HTML using inline styles, delivered as a ZIPhtml-tailwindcss— Generated HTML using Tailwind CSS, delivered as a ZIPimage— The document flattened to a single PNG at 1:1, optionally bounded by output.image_optionspdf— A print-ready PDF, one page per frame, with selectable text and embedded fontspptx— An editable PowerPoint deck, one slide per frame: real text boxes, native shapes, gradients and shadows
Last modified on