---
title: "Mint Auth Code"
method: POST
path: "/api/addon/oauth/code"
tags: ["gcal-addon"]
---

# Mint Auth Code

`POST /api/addon/oauth/code`

Mint a one-time authorization code for the Apps Script callback.

Called by the /app/connect/addon page after the logged-in user clicks
Approve. The page then redirects to redirect_uri?code=...&state=... (state
round-trips client-side; the Apps Script OAuth2 library validates it).

## Headers

- `authorization` string, nullable

## Request body

- MintCodeRequest
  - `redirect_uri` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/78f314acd8bf/schema)
