---
title: "Figma Oauth Callback"
method: GET
path: "/figma/oauth/callback"
tags: ["figma-oauth"]
---

# Figma Oauth Callback

`GET /figma/oauth/callback`

Figma redirects here (cross-site, no session). The user is recovered from
the single-use `state`; we then exchange the code and store the token.

Always lands the browser back on the connect page with a `figma=` status so
the UI can toast success/cancel/error instead of showing a raw 4xx/5xx.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/fastapi.md) · [All operations](https://skmtc.dev/kobaltlabs/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kobaltlabs/fastapi/revisions/3ff4c0bd276b/schema)
