Skip to content

Get file content

Request

Retrieve the binary content of a file

Path
fileIdinteger, (int32)required

The system identifier for the file

Example:9456
const fileId = '9456';
const resp = await fetch(
  `https://api-sandbox.lawvu.com/v2/files/${fileId}/content`,
  {method: 'GET'}
);

const data = await resp.text();
console.log(data);

Responses

The binary content of the file.

Headers
Content-Typestring

The content type of the file content

Content-Lengthinteger

The length in bytes of the file content

Content-MD5string

The MD5 hash of the file content

Content-Dispositionstring

The content disposition of the file content

Bodyapplication/octet-stream
string, (binary)
Response
string