Uploads

Overview

The Uploads API provides endpoints for generating signed URLs for secure file uploads to S3.

Endpoints

Get Signed Upload URL

Generate a pre-signed URL for uploading files.

Endpoint: POST /v1/uploads/sign

Authentication: Optional (recommended)

Request Body:

{
  "fileName": "document.pdf",
  "contentType": "application/pdf",
  "expiresIn": 3600
}

Response: 200 OK

{
  "uploadUrl": "https://s3.amazonaws.com/...",
  "expiresIn": 3600,
  "fileId": "file_123"
}

Usage

Upload Flow

  1. Request signed URL from API

  2. Upload file directly to S3 using signed URL

  3. Include file ID in form submission

Example

Security

  • Signed URLs expire after specified time (default: 1 hour)

  • Content-Type validation

  • File size limits (configured per form)

  • Virus scanning (optional)

Examples

Get Signed URL

Next Steps

  • API Reference - API overview

  • Submissions API - Form submission

  • Security - Security best practices

Last updated