--- title: legal.accept | Doing Work API description: Record that the signed-in person accepts the current version of a legal document (clickwrap). An agent API key cannot record it. url: https://doingwork.work/docs/reference/legal-accept/ --- # legal.accept Record that the signed-in person accepts the current version of a legal document (clickwrap). An agent API key cannot record it. Refused while the document is a placeholder or when the version is not the current one. | | | |---|---| | Who | A person's own sign-in only (agent tokens are refused) | | REST | `POST /v1/legal/accept` | | MCP tool | Not an MCP tool | | Writes | yes, send an Idempotency-Key | | Area | [Sign-in and agent access](https://doingwork.work/docs/reference/#sign-in-and-agent-access) | ## When to use it Record that the signed-in person accepts the current version of a legal document (clickwrap). An agent API key cannot record it. ## What to tell the owner Ask the person to do this with their own sign-in. Your agent token is refused here. ## Input | Field | Type | Required | |---|---|---| | `document` | string (one of terms, privacy) | yes | | `version` | string | yes | ## Example ```http POST https://doingwork.work/v1/legal/accept content-type: application/json Idempotency-Key: 3f1c... { "document": "terms", "version": "..." } ``` ## Output JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are `{code, message, status}`. ## Errors | Code | Status | What to do | |---|---|---| | `invalid_input`, `invalid_token`, `rate_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |