> **Source:** https://knowledge.leegality.com/document-execution/api/mark-document-complete > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # POST /v3.0/sign/request/complete — Mark document as complete Marks an incomplete (SENT) document as complete, even if not all invitees have signed. **Authentication:** `X-Auth-Token` header required on every request. ## Request URL ``` POST https://app1.leegality.com/api/v3.0/sign/request/complete ``` **Environments:** - Production: `https://app1.leegality.com/api/v3.0/sign/request/complete` - Sandbox: `https://sandbox.leegality.com/api/v3.0/sign/request/complete` --- ## Request Body **Content-Type:** `application/json` | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `documentId` | string | Yes | Unique identifier of the document to mark as complete. **Format:** Alphanumeric string. Get from the **Create eSigning request** API response or from the dashboard. | `01KJCHYRSQGA24YDZ044BS6MTS` | ### Sample Request ```json { "documentId": "01KJCHYRSQGA24YDZ044BS6MTS" } ``` --- ## Responses ### 200 — Complete document response. Check `status` field: `1` = success, `0` = failure. Response wrapper for the Mark Document Complete API. On success (`status: 1`), `data` is an empty object and the document status changes to COMPLETED. On failure (`status: 0`), `data` is an empty object and `messages` contains the error details. | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `status` | integer | No | API response status. `1` = success (document marked as complete), `0` = failure. Allowed: `0`, `1`. | `1` | | `messages` | array\ | No | Array of response messages. **Error codes:** - `no.document.found` — The document ID does not exist or is not accessible - `document.already.completed` — The document has already been completed (all invitees signed or previously force-completed) **Validation errors (code is `null`):** - `Property documentId cannot be null` — The `documentId` field is missing, null, or empty in the request body See **Message** below. | — | | `data` | object | No | Always an empty object `{}` for this endpoint. | — | #### Message Message object containing a machine-readable code and a human-readable description. Used for success confirmations, errors, and warnings. | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Response message code. | `simpleWorkFlow.success` | | `message` | string | No | Human-readable success or error message. | `Invitations sent successfully.` | ### Sample Response (200) ```json { "status": 1, "messages": [ { "code": "simpleWorkFlow.success", "message": "Invitations sent successfully." } ], "data": {} } ```