‹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 | html-tailwindcss | html-inlinestyles | json |
|---|---|---|---|---|---|
ai | ✅ | ✅ | ✕ | ✕ | ✅ |
eps | ✅ | ✅ | ✕ | ✕ | ✅ |
fig | ✅ | ✅ | ✕ | ✕ | ✅ |
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 locallyhtml— 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 canvashtml-tailwindcss— Generated HTML using Tailwind CSS, delivered as a ZIPhtml-inlinestyles— Generated HTML using inline styles, delivered as a ZIPjson— JSON, visual definition of the content (schema undocumented)
Last modified on