---
title: "As a guest sign the terms"
method: POST
path: "/ocs/v2.php/apps/terms_of_service/sign_public"
tags: ["signing"]
---

# As a guest sign the terms

`POST /ocs/v2.php/apps/terms_of_service/sign_public`

## Request

- The document declares no server URL.
- Auth: one of:
  - none
  - HTTP bearer
  - HTTP basic

## Headers

- `OCS-APIRequest` boolean, required

## Response `200`

Signed successfully

- object
  - `ocs` object, required
    - `meta` OCSMeta, required
      - `status` string, required
      - `statuscode` integer, required
      - `message` string
      - `totalitems` string
      - `itemsperpage` string
    - `data` unknown, required

## Other responses

- `406`: The user is already authenticated and therefore not allowed to sign the terms through this endpoint

## Changes

- **2025-10-31** `d90f8a64537c`: 1 info
  - added the non-success response with the status `406`
- **2025-01-22** `ca962a85e1e7`: 1 breaking
  - removed the request body
- **2024-10-28** `6f5f93fe261d`: 1 breaking, 1 info
  - added required request body
  - removed the non-success response with the status `406`

[Operation history](https://skmtc.dev/nextcloud/apis/terms-of-service/changes/ocs/v2.php/apps/terms_of_service/sign_public/post.md)

---

[API](https://skmtc.dev/nextcloud/apis/terms-of-service.md) - [All operations](https://skmtc.dev/nextcloud/apis/terms-of-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nextcloud/apis/terms-of-service/revisions/aedf0faa1ac4?raw)
