/html
Converts HTML to Figma.
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Request Body
html
string · requiredHTML string to convert to Figma.
clip
booleantrue
to use Clipboard mode,false
to use Plugin modewidth
numberWidth of the viewport. If
width
is used thenheight
is required. Default value: 1280height
numberHeight of the viewport. If
height
is used thenwidth
is required. Default value: 720theme
string · enumAffects CSS
prefers-color-scheme
settings for the import. Default value:light
Enum values:lightdark
Responses
Rate Limiting Response
type
string · requiredA URI reference that identifies the problem.
title
string · requiredA short, human-readable summary of the problem.
status
number · requiredThe HTTP status code.
instance
string
/balance
Get the number of calls that are still available for your account.
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Responses
Rate Limiting Response
type
string · requiredA URI reference that identifies the problem.
title
string · requiredA short, human-readable summary of the problem.
status
number · requiredThe HTTP status code.
instance
string