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.
Users
Optional generated docs page for
@utdk/figma.
Users
Use these operations through the generated client (not direct HTTP calls).
Import path: @utdk/figma
Operations
figma.getMe
- HTTP:
GET /v1/me - What it does: Get current user
- OpenAPI operationId:
getMe - Path params: None
- Query params: None
- Response codes:
200,403,429,500 - Transport options: None
- Source: OpenAPI reference
- TypeScript: Client interface
Inputs
- Client input type:
{ [key: string]: unknown } - Client transport options: None
Outputs
- Client return type:
{ [key: string]: unknown } - OpenAPI response codes:
200,403,429,500
import figma from "@utdk/figma";
type GetMeInput = Parameters<typeof figma.getMe> extends [infer T, ...unknown[]] ? T : undefined;
type GetMeOutput = Awaited<ReturnType<typeof figma.getMe>>;
const result: GetMeOutput = await figma.getMe();
// Result shape (from schema): { [key: string]: unknown }