# Figma API Documentation

This is the complete API documentation for connecting to the Figma API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Figma connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/figma/actions/{actionSlug}/run
```

## Figma actions

- POST `create-file-comment` Create File Comment
- POST `create-webhook` Create Webhook
- DELETE `delete-webhook` Delete Webhook
- GET `get-component` Get Component
- GET `get-component-set` Get Component Set
- GET `get-current-user` Get Current User
- GET `get-file` Get File
- GET `get-file-images` Get File Images
- GET `get-file-nodes` Get File Nodes
- GET `get-local-variables` Get Local Variables
- GET `get-published-variables` Get Published Variables
- GET `get-rendered-images` Get Rendered Images
- GET `get-style` Get Style
- GET `list-file-comments` List File Comments
- GET `list-file-component-sets` List File Component Sets
- GET `list-file-components` List File Components
- GET `list-file-dev-resources` List File Dev Resources
- GET `list-file-styles` List File Styles
- GET `list-file-versions` List File Versions
- GET `list-webhooks` List Webhooks
- PUT `update-webhook` Update Webhook
