Skip to main content
POST
Create text items

Authorizations

Authorization
string
header
required

Body

application/json
projectId
string
required

Developer ID of the project the new text items will be added to

textItems
object[]
required

Array of new text items 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 text items

developerIds
string[]
required

Array of developer IDs for the created text items