Sending large files as links

Inboxes

An email can carry attachments up to 10 MB each. For anything bigger, up to 500 MB, Anjal stores the file and puts a download link in the email instead, the way Gmail adds a Drive link. People and agents send them the same way.

Who can use it

  • Paid plans (Starter, Developer, Startup), from 24 hours after the account was created. Not on the trial.
  • Up to 500 MB per file. Files count toward your plan's storage while their link is live.
  • Mail sent through Anjal's servers. Accounts you connect in the desktop app (Gmail, iCloud, other IMAP) keep their mail on your Mac, so they attach files the normal way.

What the recipient gets

The email ends with a card naming the file, its size and when the link expires. The link opens a plain download page on files.panda-bots.com: the file name, size, the address it was sent from, the expiry date, and a Download button. Nothing to sign in to, no cookies, no scripts. The page has a Report this file button that tells us which file was reported.

From the app

Attach a file over 10 MB in the compose window or a reply. Instead of an error you get a link chip: it uploads with a progress bar, then shows Checking for viruses, then Sent as a link. Send waits until every file has passed the scan. Drafts keep their files, so Send later and scheduled sends work too.

Everything you have sent this way is on the Shared files page in the dashboard: which message it went in, downloads so far, and when it expires. From there you can Revoke a link (it stops working at once and the file is deleted) or Extend it once, by another 30 days.

From an agent (MCP)

  1. Call create_attachment_upload with the file name and sizeBytes. Over 10 MB it answers kind: "link" with a fileId and an uploadUrl.
  2. PUT the file to uploadUrl. It needs no API key and the bytes never pass through the model.
  3. Call complete_file_upload, then get_shared_file until status is "ready" (usually a few seconds).
  4. Send with attachments: [{ "fileId": "..." }] on send_message, a reply, a forward or a draft.

list_shared_files shows what an agent has shared. Agents cannot revoke or extend a link: a person does that in the app, so an agent that read hostile mail can't keep a file alive that someone asked to take down. If the inbox needs your approval for agent sends, the approval shows each linked file by name and size.

From the API

# 1. Get an upload slot (paid plans, up to 500 MB)
curl -sX POST https://anjal.app/v1/inboxes/$ID/file-uploads \
  -H "X-API-Key: ak_..." -H "Content-Type: application/json" \
  -d '{"filename":"site-walkthrough.mov","sizeBytes":312000000}'
# → { "fileId": "...", "uploadUrl": "https://...", "method": "PUT", ... }

# 2. Upload the file straight to storage
curl --upload-file ./site-walkthrough.mov "$UPLOAD_URL"

# 3. Tell Anjal it's there; the virus scan starts
curl -sX POST https://anjal.app/v1/inboxes/$ID/file-uploads/$FILE_ID/complete \
  -H "X-API-Key: ak_..."

# 4. Wait for "status": "ready"
curl -s https://anjal.app/v1/shared-files/$FILE_ID -H "X-API-Key: ak_..."

# 5. Send it
curl -sX POST https://anjal.app/v1/inboxes/$ID/send \
  -H "X-API-Key: ak_..." -H "Content-Type: application/json" \
  -d '{"to":"client@example.com","subject":"The walkthrough",
       "plainBody":"Here is the recording.",
       "attachments":[{"fileId":"'$FILE_ID'"}]}'

Drafts take fileId the same way and keep it until the draft is sent. GET /v1/shared-files/availability tells you whether the account can send links right now, and why not if it can't.

How long files last

  • A link works for 30 days from the first send, or 60 if you extend it. The file is deleted within 7 days after it expires.
  • A file you upload but never send is deleted after 7 days, unless a draft still holds it.
  • Revoking deletes the file immediately.

Safety

  • Every file is scanned for malware on our own servers before any link to it works. A file that fails can't be sent.
  • Reported files are reviewed and removed if they break the terms. A removed file's link shows that it was removed. Two removed files in seven days pause the account's large-file links until we review them.
  • Downloads are rate-limited per link and per downloader, so a link posted publicly can't be used as free hosting.

Errors you may see

  • PLAN_REQUIRED: the account is on the trial. Choose a plan.
  • ACCOUNT_TOO_NEW: links become available 24 hours after sign-up.
  • FILE_TOO_LARGE: over 500 MB.
  • STORAGE_LIMIT_REACHED: not enough storage left on your plan.
  • FILE_NOT_READY: still uploading or being scanned. Try again shortly.
  • FILE_BLOCKED: the scan found something; the file can't be sent.
  • FILE_NOT_FOUND: the file belongs to another inbox, or was removed. A file can only be sent from the inbox it was uploaded to.
  • LARGE_FILE_LINKS_PAUSED: two files were removed in seven days. Email us.