---
title: "Record user consent"
method: POST
path: "/api/auth/user/consent"
tags: ["v1", "auth"]
---

# Record user consent

`POST /api/auth/user/consent`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

Record the terms version accepted at signup and, if the user refused
marketing email, the opt-out. Idempotent; never clears an opt-out.

## Request body

- RecordUserConsentRequest
  - `terms_version` string, required
  - `marketing_opt_out` boolean, required

## Response `200`

Successful Response

- UserConsentResponse
  - `terms_accepted_at` string, date-time, nullable
  - `terms_version` string, nullable
  - `marketing_opt_out_at` string, date-time, nullable
  - `marketing_opt_out_source` string, nullable

## Other responses

- `401`: Authentication required
- `422`: Validation Error

## Changes

- **2026-10-08** `a9a00761e782`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/auth/user/consent/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) - [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) - [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/c508818c16ad?raw)
