Documents

Read a protected document back, decrypted

GEThttps://backend.immut.io/api/v1/documents/{id}/content

Required scope: documents:content

Use it to review a file you did not classify at upload time, for example one a person uploaded through the web app, then describe it with PATCH /documents/{id}/classification. Requires the documents:content scope, which is NOT granted to agent keys by default: an admin adds it deliberately, because it is the difference between a key that can see metadata and one that can read documents. Staged files are not readable here. The connector is hosted, so bytes travel through immut to your model host.

Parameters

NameInRequiredDescription
idpathyesid of the target record

Responses

StatusMeaning
200The decrypted file bytes, streamed with its own content type.
400BadRequest
401Unauthorized
403Forbidden
429RateLimited

Example

curl -X GET "https://backend.immut.io/api/v1/documents/<id>/content" \
  -H "Authorization: Bearer $IMMUT_API_KEY"

Generated from the immut API contract, version 1.10.0. Machine-readable: this page as markdown · everything in one file · OpenAPI