‹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-rest | figma-clipboard | pdf | html-tailwindcss | html-inlinestyles | figma-json | json | image |
|---|---|---|---|---|---|---|---|---|
ai | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✕ |
eps | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✕ |
fig | ✅ | ✅ | ✅ | ✅ | ✅ | ✕ | ✕ | ✕ |
figma-clipboard | ✕ | ✕ | ✅ | ✅ | ✅ | ✕ | ✕ | ✕ |
figma-json | ✕ | ✕ | ✅ | ✅ | ✅ | ✕ | ✕ | ✕ |
html | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✕ |
image | ✕ | ✕ | ✕ | ✅ | ✅ | ✅ | ✅ | ✕ |
pdf | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✕ |
ps | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✕ |
psd | ✅ | ✅ | ✕ | ✕ | ✕ | ✅ | ✅ | ✅ |
✕ 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-json— Figma's JSON_REST_V1 node export, plus its image fillshtml— HTML code fileimage— Raster screenshot/mockup (PNG, JPEG, …)pdf— PDF fileps— PostScript filepsd— Adobe Photoshop file
Output
figma-rest— JSON, structurally compatible with the Figma REST APIfigma-clipboard— Data that can be loaded into the clipboard and pasted onto the Figma canvaspdf— A print-ready PDF, one page per frame, with selectable text and embedded fontshtml-tailwindcss— Generated HTML using Tailwind CSS, delivered as a ZIPhtml-inlinestyles— Generated HTML using inline styles, delivered as a ZIPfigma-json— Figma's JSON_REST_V1 node exportjson— JSON, visual definition of the content (schema undocumented)image— The document flattened to a single PNG at 1:1, optionally bounded by output.image_options
Last modified on