Skip to main content
POST
Create components

Authorizations

Authorization
string
header
required

Body

application/json
components
object[]
required

Array of components to create

richText
enum<string>

When set to 'html', all text values in this request (including plural and variant text) are parsed as HTML and saved as rich text. Supported formatting: <strong>/<b>, <em>/<i>, <u>, <s>, and <br> for line breaks. <sup> and <sub> are only supported for workspaces with superscript and subscript enabled. Unsupported markup (for example links, lists, or headings) is dropped and its text content kept.

Note: Fully-bolded strings will have that bold styling stripped, as Figma does not support bolding an entire text layer this way.

When omitted, text is saved as plaintext and any markup is stored literally.

Available options:
html

Response

200 - application/json

Returns the developer IDs of the created components

developerIds
string[]
required

Array of developer IDs for the created components