LayerProof icon

LayerProof

Automate LayerProof public API workflows from n8n

File → Prepare Upload

AI-generated

Summary

Prepare a file upload by sending the file name, MIME type, and size to the LayerProof API to obtain a presigned URL.

Inputs

  • fileName (required) — The name of the file to upload
  • mimeType (required) — MIME type of the file (e.g. image/png, application/pdf)
  • size (required) — The size of the file in bytes. Minimum value is 1.

Output shape

API response from POST /api/v2/files/prepare, typically containing a presigned URL and upload metadata.

After preparing the upload, use the returned presigned URL with the confirmUpload operation to complete the file upload process.

Examples

Example 1: Upload a PNG image

Set fileName to 'diagram.png', mimeType to 'image/png', and size to the file's byte size. The node will call the LayerProof API to prepare the upload and return a presigned URL.

Links

Discussion