Leak Detection API

Send PDFs and funder names. Get back watermarked PDFs.

Your workflow, your way. This is a simple endpoint you can integrate anywhere in your system. Whether that's triggered by a button click, automated on deal submission, or part of your document pipeline is entirely up to you.

Endpoint

POST https://aquamark-broker-funder.onrender.com/watermark-broker-funder

Authentication

Authorization: Bearer aqua-api-watermark-77204041104282

This API key is universal and can be used immediately for testing.

Parameters

Required

Parameter Type Description
user_email String Your Aquamark account email
Use [email protected] for testing with Aquamark branding
funder String or Array Funder name(s) - max 15 per request

File Input (Choose One)

Parameter Type Description
file_urls Array Multiple PDF URLs (recommended for batch processing)
file_url String Single PDF URL
file File Upload Direct file upload (multipart/form-data)

Choose one file input method. Max 25MB per file.

Note: API examples are shown in cURL for universality. You can easily translate to your preferred language (Python, JavaScript, Java, etc.). Standard HTTP request — nothing custom.

Example: Multiple Files

curl -X POST https://aquamark-broker-funder.onrender.com/watermark-broker-funder \
  -H "Authorization: Bearer aqua-api-watermark-77204041104282" \
  -H "Content-Type: application/json" \
  -d '{
    "user_email": "[email protected]",
    "file_urls": [
      "https://example.com/jan-statement.pdf",
      "https://example.com/feb-statement.pdf",
      "https://example.com/mar-statement.pdf",
      "https://example.com/credit-app.pdf"
    ],
    "funder": ["Forward Financing", "OnDeck Capital", "Kapitus"]
  }' \
  --output watermarked.zip

Returns 1 ZIP with 12 PDFs (4 files × 3 funders)

Example: Single File

curl -X POST https://aquamark-broker-funder.onrender.com/watermark-broker-funder \
  -H "Authorization: Bearer aqua-api-watermark-77204041104282" \
  -H "Content-Type: application/json" \
  -d '{
    "user_email": "[email protected]",
    "file_url": "https://example.com/statement.pdf",
    "funder": ["Forward Financing", "OnDeck Capital"]
  }' \
  --output watermarked.zip

Returns 1 ZIP with 2 PDFs (1 file × 2 funders)

Example: File Upload

curl -X POST https://aquamark-broker-funder.onrender.com/watermark-broker-funder \
  -H "Authorization: Bearer aqua-api-watermark-77204041104282" \
  -F "[email protected]" \
  -F "file=@/path/to/statement.pdf" \
  -F 'funder=["Forward Financing", "OnDeck Capital"]' \
  --output watermarked.zip

Upload files directly using multipart/form-data. Same response as URL-based methods.

Response

Returns a ZIP file (binary) with watermarked PDFs named: {filename}-{funder}.pdf

Example ZIP Contents

submission-package.zip/
├── jan-statement-forward-financing.pdf
├── jan-statement-ondeck-capital.pdf
├── jan-statement-kapitus.pdf
├── feb-statement-forward-financing.pdf
├── feb-statement-ondeck-capital.pdf
├── feb-statement-kapitus.pdf
├── mar-statement-forward-financing.pdf
├── mar-statement-ondeck-capital.pdf
├── mar-statement-kapitus.pdf
├── credit-app-forward-financing.pdf
├── credit-app-ondeck-capital.pdf
└── credit-app-kapitus.pdf

Important

Unzip required. The response is a ZIP file. Use standard extraction libraries in your language.
Delete after sending. Save storage by removing watermarked files once submitted to funders.

Error Codes

Errors return plain text messages with appropriate HTTP status codes.

Code Meaning Example Response
400 Bad request At least one funder required
401 Invalid API key Invalid API key
402 Account not authorized Requires the Leak Detection plan
408 Request timeout Request timeout
413 File too large File statement.pdf (30.5MB) exceeds 25MB limit
500 Server error Processing failed: [error details]

Limits

Ready for Production?

The examples above use test credentials with Aquamark branding. To deploy with your own branding:

  1. Sign up: Create an account at aquamark.io/signup
  2. Upload your logo: Go to the Watermark Console in your portal
  3. Subscribe: Select the Leak Detection plan
  4. Update your code: Replace [email protected] with your Aquamark account email in the user_email parameter

That's it. Your documents will now be watermarked with your branding.

Support

Questions? Email [email protected]