Skip to main content

Data API Reference

kittl.data — access Kittl catalog data and manage custom fonts.

Scopes

ScopeRequired for
data:mockups:readAll kittl.data.mockups.* methods
fonts:readReading fonts created by the extension
fonts:read:globalReading all custom fonts available to the user; required for listUserFonts
fonts:writeCreating or modifying fonts created by the extension
fonts:write:globalModifying all custom fonts available to the user

Mockups

kittl.data.mockups — browse and search the mockup catalog.

Scope: data:mockups:read

get(id)

Fetch a single mockup by numeric ID.

ParameterTypeRequiredDescription
idnumberYesMockup ID

Returns: SdkResultAsync<CatalogItem>


getOverview(options?)

Fetch a high-level overview of mockup groups (categories).

ParameterTypeRequiredDescription
options.sortstringNoSort order

Returns: SdkResultAsync<MockupOverviewDto>


getGroup(groupId, options?)

Fetch mockups within a specific group.

ParameterTypeRequiredDescription
groupIdstringYesGroup ID
optionsPaginationOptionsNoPagination parameters

Returns: SdkResultAsync<MockupGroupDto>


search(query, options?)

Search mockups by text query.

ParameterTypeRequiredDescription
querystringYesSearch query
optionsPaginationOptionsNoPagination parameters

Returns: SdkResultAsync<PaginatedResult<CatalogItem>>


getSuggestions()

Get suggested search tags and groups for the mockup catalog.

Returns: SdkResultAsync<MockupSuggestions>


Fonts

kittl.data.fonts — manage custom fonts uploaded by the user or extension.

Font scope behavior

fonts:read and fonts:write apply to fonts created by the extension. fonts:read:global and fonts:write:global apply to all custom fonts available to the user.

listUserFonts(options?)

List fonts uploaded by the current user.

Scope: fonts:read:global

ParameterTypeRequiredDescription
optionsPaginationOptionsNoPagination parameters

Returns: SdkResultAsync<FontListDto>


listExtensionFonts(options?)

List fonts uploaded by the current extension.

Scope: fonts:read or fonts:read:global

ParameterTypeRequiredDescription
optionsPaginationOptionsNoPagination parameters

Returns: SdkResultAsync<FontListDto>


get(fontFamilyId)

Fetch a single font family by ID.

Scope: fonts:read or fonts:read:global

ParameterTypeRequiredDescription
fontFamilyIdstringYesFont family ID

Returns: SdkResultAsync<FontFamilyDto>


find(ids)

Fetch multiple font families by their IDs.

Scope: fonts:read or fonts:read:global

ParameterTypeRequiredDescription
idsstring[]YesArray of font family IDs

Returns: SdkResultAsync<FontFamilyDto[]>


create(options)

Create a new font family with one or more styles.

Scope: fonts:write

PropertyTypeRequiredDescription
namestringYesFont family name
filesBlob[]YesFont file blobs (one per style)
stylesstring[]YesStyle names matching files in order (e.g. ['Regular', 'Bold'])
previewImageBlobNoPreview image blob for the font family

Returns: SdkResultAsync<FontFamilyDto>


update(options)

Rename a font family.

Scope: fonts:write or fonts:write:global

PropertyTypeRequiredDescription
idstringYesFont family ID
namestringYesNew name

Returns: SdkResultAsync<FontFamilyDto>


delete(ids)

Soft-delete font families so they cannot be used on new font elements.

Scope: fonts:write or fonts:write:global

ParameterTypeRequiredDescription
idsstring[]YesFont family IDs to delete

Returns: SdkResultAsync<void>


destroy(ids)

Hard-delete font families and remove them from all font elements across all designs in the workspace.

Scope: fonts:write or fonts:write:global

ParameterTypeRequiredDescription
idsstring[]YesFont family IDs to destroy

Returns: SdkResultAsync<void>


addStyle(options)

Add new styles to an existing font family.

Scope: fonts:write or fonts:write:global

PropertyTypeRequiredDescription
fontFamilyIdstringYesFont family ID
filesBlob[]YesFont files to upload as new styles
stylesstring[]YesStyle names matching files in order

Returns: SdkResultAsync<FontFamilyDto>


updateStyle(options)

Update a style's name within a font family.

Scope: fonts:write or fonts:write:global

PropertyTypeRequiredDescription
fontFamilyIdstringYesFont family ID
idstringYesStyle ID to update
stylestringYesNew style name

Returns: SdkResultAsync<void>


deleteStyle(options)

Delete a style from a font family.

Scope: fonts:write or fonts:write:global

PropertyTypeRequiredDescription
fontFamilyIdstringYesFont family ID
idstringYesStyle ID to delete

Returns: SdkResultAsync<void>


Types

CatalogItem

PropertyTypeDescription
idstringUnique item ID
namestringDisplay name
previewImagesstring[]Preview image URLs

PaginationOptions

PropertyTypeDescription
takenumber?Number of items to fetch
skipnumber?Number of items to skip
sortstring?Sort order
cursorstring?Cursor for keyset pagination

PaginatedResult<T>

PropertyTypeDescription
itemsT[]Page of results
totalnumber?Total count (when available)
hasMorebooleanWhether more pages exist

FontFamilyDto

Extends CatalogItem.

PropertyTypeDescription
stylesFontStyleDto[]Styles in this family
extension{ id: string; name?: string } | nullExtension that uploaded the font, or null

FontStyleDto

PropertyTypeDescription
idstringStyle ID
namestringStyle name
stylestring | nullStyle descriptor (e.g. "Regular", "Bold")

FontListDto

type FontListDto = PaginatedResult<FontFamilyDto>;

MockupOverviewDto

PropertyTypeDescription
overviewMockupOverviewGroupDto[]Array of group summaries

MockupOverviewGroupDto

PropertyTypeDescription
idstringGroup ID
namestringGroup name
mockupsCatalogItem[]Preview items in this group
totalnumberTotal mockups in group

MockupGroupDto

PropertyTypeDescription
group{ id: string; name: string }Group metadata
dataPaginatedResult<CatalogItem>Paginated mockups

MockupSuggestions

PropertyTypeDescription
tagsstring[]Suggested search tags
groupsstring[]Suggested group IDs