---
title: "Mint the signed consent `state` for a redirect URI (broker mode). Clerk session only."
method: POST
path: "/drive/state"
tags: ["Google Drive"]
---

# Mint the signed consent \`state\` for a redirect URI (broker mode). Clerk session only.

`POST /drive/state`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/drive/state`
- Auth: HTTP bearer

## Request body

- object
  - `redirectUri` string, required

## Response `200`

Success.

- object
  - `state` string, required

## Other responses

- `400`: Error.
- `401`: Error.
- `429`: Rate limited. Back off and retry.
- `503`: Error.

---

[API](https://skmtc.dev/livediagram/apis/livediagram-api.md) · [All operations](https://skmtc.dev/livediagram/apis/livediagram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livediagram/apis/livediagram-api/revisions/f286d27acfd2?raw)
