Aprovan Registry
provider 47 operations 15 docs pages
@utdk/figma
Figma API

Generated UTDK provider client for Figma API. This is the OpenAPI specification for the Figma REST API.

Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please file an issue.

Import sample

import figma from "@utdk/figma"

Factory sample

import { createFigmaClient } from "@utdk/figma"
Provider path
figma
Source API title
Figma API
Version
0.37.0
Generated
Apr 8, 2026, 3:35 PM
Homepage
Open site
API spec
View spec
Components
Optional generated docs page for @utdk/figma.

Components

Use these operations through the generated client (not direct HTTP calls).

Import path: @utdk/figma

Operations

figma.getComponent

  • HTTP: GET /v1/components/{key}
  • What it does: Get component
  • OpenAPI operationId: getComponent
  • Path params: key
  • Query params: None
  • Response codes: 200, 400, 403, 404, 429, 500
  • Transport options: None
  • Source: OpenAPI reference
  • TypeScript: Client interface

Inputs

  • Client input type: { key: string }
  • Client transport options: None

Outputs

  • Client return type: { status: 200; error: false; meta: { key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; handle: string;...
  • OpenAPI response codes: 200, 400, 403, 404, 429, 500
import figma from "@utdk/figma";

type GetComponentInput = Parameters<typeof figma.getComponent> extends [infer T, ...unknown[]] ? T : undefined;
type GetComponentOutput = Awaited<ReturnType<typeof figma.getComponent>>;

const input: GetComponentInput = {} as { key: string };
const result: GetComponentOutput = await figma.getComponent(input);

// Result shape (from schema): { status: 200; error: false; meta: { key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; handle: string;...

figma.getFileComponents

  • HTTP: GET /v1/files/{file_key}/components
  • What it does: Get file components
  • OpenAPI operationId: getFileComponents
  • Path params: file_key
  • Query params: None
  • Response codes: 200, 400, 403, 404, 429, 500
  • Transport options: None
  • Source: OpenAPI reference
  • TypeScript: Client interface

Inputs

  • Client input type: { file_key: string }
  • Client transport options: None

Outputs

  • Client return type: { status: 200; error: false; meta: { components: ({ key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; ...
  • OpenAPI response codes: 200, 400, 403, 404, 429, 500
import figma from "@utdk/figma";

type GetFileComponentsInput = Parameters<typeof figma.getFileComponents> extends [infer T, ...unknown[]] ? T : undefined;
type GetFileComponentsOutput = Awaited<ReturnType<typeof figma.getFileComponents>>;

const input: GetFileComponentsInput = {} as { file_key: string };
const result: GetFileComponentsOutput = await figma.getFileComponents(input);

// Result shape (from schema): { status: 200; error: false; meta: { components: ({ key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; ...

figma.getTeamComponents

  • HTTP: GET /v1/teams/{team_id}/components
  • What it does: Get team components
  • OpenAPI operationId: getTeamComponents
  • Path params: team_id
  • Query params: page_size, after, before
  • Response codes: 200, 400, 403, 404, 429, 500
  • Transport options: None
  • Source: OpenAPI reference
  • TypeScript: Client interface

Inputs

  • Client input type: { team_id: string; page_size?: number; after?: number; before?: number }
  • Client transport options: None

Outputs

  • Client return type: { status: 200; error: false; meta: { components: ({ key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; ...
  • OpenAPI response codes: 200, 400, 403, 404, 429, 500
import figma from "@utdk/figma";

type GetTeamComponentsInput = Parameters<typeof figma.getTeamComponents> extends [infer T, ...unknown[]] ? T : undefined;
type GetTeamComponentsOutput = Awaited<ReturnType<typeof figma.getTeamComponents>>;

const input: GetTeamComponentsInput = {} as { team_id: string; page_size?: number; after?: number; before?: number };
const result: GetTeamComponentsOutput = await figma.getTeamComponents(input);

// Result shape (from schema): { status: 200; error: false; meta: { components: ({ key: string; file_key: string; node_id: string; thumbnail_url?: string; name: string; description: string; created_at: string; updated_at: string; user: { id: string; ...