---
title: "Unlock Document"
method: POST
path: "/documents/{child_id}/{document_id}/unlock"
tags: ["documents"]
---

# Unlock Document

`POST /documents/{child_id}/{document_id}/unlock`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/documents/{child_id}/{document_id}/unlock`
- Auth: none declared

Unlock a password-protected PDF and re-queue it for processing.

The password decrypts the stored file in-request; the decrypted bytes
overwrite the stored object, the document resets to ``pending`` and
re-enqueues. The password is never logged, echoed or written to any table,
job, or trace - it lives only in the request body and local variables.

RLS: the user-scoped client proves ownership / family access. Keyed off
``document_id`` so it is path-agnostic (works for a doc uploaded via chat,
Records, clinic, email or mobile).

## Path parameters

- `child_id` string, required
- `document_id` string, required

## Request body

- UnlockDocumentRequest
  - `password` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
