---
title: "Submit the OAuth consent decision (Allow / Deny)"
method: POST
path: "/oauth/authorize"
tags: ["OAuth"]
---

# Submit the OAuth consent decision (Allow / Deny)

`POST /oauth/authorize`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/oauth/authorize`
- Auth: none required

Processes the consent form. On Allow, mints a single-use, 60-second authorization code bound to the client, the exact redirect_uri, and the PKCE challenge, then redirects back to the client with code + state. On Deny, redirects with error=access_denied. CSRF-protected (SameSite=Lax cookie + signed token); the acting org is bound here and is immutable for tokens minted from the code.

## Other responses

- `302`: Redirect back to the client with code+state, or with an OAuth error.
- `400`: Invalid client/redirect_uri/org selection (HTML).
- `401`: Session expired during consent.
- `403`: Invalid or missing CSRF token.
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

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