---
title: "Ai Consent Record"
method: POST
path: "/api/user/ai-consent"
tags: ["settings", "sync", "ai"]
---

# Ai Consent Record

`POST /api/user/ai-consent`

## Request

- Base URL: `https://www.oxfordledge.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.oxfordledge.com/api/user/ai-consent`
- Auth: none declared

Record or withdraw AI consent. An UPSERT on (user, 'ai'): a repeat is 200, not a duplicate-key 500 (Sentry 7730251817).

## Response `200`

Successful Response

- UserDataResponse: Loose response_model for user-data routes (export, delete, consent, preferences). Multiple shape variants per action.

---

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