---
title: "Submit a feedback"
method: POST
path: "/documents/{document_id}/feedback"
tags: ["documents"]
---

# Submit a feedback

`POST /documents/{document_id}/feedback`

Send a feedback for the given document and optionally evaluate.

When a document is to be reviewed, this endpoint is used to send the user feedback.

**Permission required:** submit

## Request body

- VersionPost
  - `annotations` Annotations
    - `string` EvaluationAtom[]
      - `gold` string, required
      - `text` string, required
      - `textual_coord` integer[], required
      - `visual_coord` integer[]
  - `cmp_version` string
  - `evaluate` boolean
  - `lines` Lines
    - `string` Cells[]
      - `string` EvaluationAtom
        - `gold` string, required
        - `text` string, required
        - `textual_coord` integer[], required
        - `visual_coord` integer[]
  - `name` string
  - `sections` SectionAtom[]
    - `confidence` integer
    - `document_type` string
    - `format` string
    - `page` integer, required

## Response `200`

Success

## Other responses

- `403` — Permission insufficient

---

[API](https://skmtc.net/contractp/apis/contract-p.md) · [All operations](https://skmtc.net/contractp/apis/contract-p/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contractp/contract-p/versions/8ce53ebd6bd3/schema)
