Create Typography
This feature is in Beta and may change. Requests return 403 until the feature flag is enabled for your site or workspace.
Creates a site owned typography.
Authentication
x-api-keystring
API key authentication. Accepts either:
- App API key (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)
- Site API key (UUID format, e.g. 550e8400-e29b-41d4-a716-446655440000)
Request
This endpoint expects an object.
siteId
The site ID to create the typography on.
name
The name of the typography.
style
Per-device style overrides. A “color” references an existing swatch by its “id” in “swatchId” (create one with the Swatch API first); omit or null it for no swatch. “alpha” (0-1) sets opacity.
Response
id
referenceId
The id to use wherever a text element references this typography (e.g. the “id” field of a Text element’s “typography” prop in a page’s element data) - NOT the plain “id” field above, which is used as the typography identifier in other REST typography api calls.
name
style
siteId
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error