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

# Figma Oauth Callback

`GET /figma/oauth/callback`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/figma/oauth/callback`
- Auth: none declared

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/kobaltlabs-api.md) - [All operations](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/revisions/8587332d5e43?raw)
