Get one document row
Read one row of a vault's document table by its document_id.
A document appears here once its first scan writes values, which is a few minutes after upload. Until then poll GET /files/{id} with the id that POST /vaults/{id}/documents returned.
The row is built by the same query that serves the list, so a document reads the same way whichever endpoint returns it. Soft-deleted documents answer 404 unless the request passes include_deleted=true.
Requires a user-scoped API key (u:gcai_...). A vault is shared with named people, so an organization-scoped key has no identity to resolve vault access with.
Request
- Base URLhttps://app.gc.ai/api/external/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The vault ID
The document_id of a row from GET /vaults/{id}/documents.
Query parameters
When true, also return soft-deleted documents and the copies GC AI removed as duplicates. Reading deleted documents needs the same rights as deleting them, so this requires the editor or owner role plus the organization-level permission to manage vaults. Defaults to false.
Response
The document row
Example response
{
"name": "Acme MSA (2024)",
"file_name": "acme-msa-2024.pdf",
"source_provider": "manual_upload"
}Changes
No recorded changes to this operation across all 1 revision of this API.