/html
Converts HTML to Figma.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
htmlstring · requiredHTML string to convert to Figma.
clipbooleantrueto use Clipboard mode,falseto use Plugin modetopLayerNamestringName of the top layer in Figma
noAutoLayoutbooleantrueto create layers in Figma without Auto Layout. Default value:falsefullsizeImagesbooleanOnly relevant when
clip=true. By default, images are resized to match the rendering size of this image in the HTML code (Taking into account HiDPI). You can setfullsizeImagestotruein order to keep maximum image resolution as available in the HTML code but it will increase the size of the clipboard data. Default value:falsewidthnumberWidth of the viewport. If
widthis used thenheightis required. Default value:1280heightnumberHeight of the viewport. If
heightis used thenwidthis required. Default value:720themestring · enumAffects CSS
prefers-color-schemesettings for the import. Default value:lightEnum values:lightdark
Responses
Rate Limiting Response
typestring · requiredA URI reference that identifies the problem.
titlestring · requiredA short, human-readable summary of the problem.
statusnumber · requiredThe HTTP status code.
instancestring
/balance
Get the number of calls that are still available for your account.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Responses
Rate Limiting Response
typestring · requiredA URI reference that identifies the problem.
titlestring · requiredA short, human-readable summary of the problem.
statusnumber · requiredThe HTTP status code.
instancestring