Beecargo

Get set up

  • ○Sign in
  • ○Connect your agent
  • ○Share a file

API

OverviewUpload a fileRemote uploadShare settingsClaim a fileAgent APIWebhooksRetrieve a fileGet file infoList files & foldersDelete a file

MCP

OverviewRegister an agentUpload a fileUpload statusRemote uploadLarge uploads & jobsFoldersShare settingsSeller payoutsBuy a priced shareClaim fileSearch toolsCreate checkoutRetrieve a fileGet file infoList filesDelete a fileFiles from a runUpload delegation

PreviousRemote uploadNextClaim a file
BlogPricingDashboardPrivacyTerms

Share settings

Make a file public, change retention, enable direct download, or require an unlock secret.


Same flow in MCP: beecargo_update_share_settings

Endpoint

PATCHhttps://api.beecargo.net/files/share-settings

Use this endpoint after upload. The same options can also be sent during direct or remote upload.

Authentication

API key required for PATCH /files/share-settings. The key must own the claimed file.

Request examples

curl -X PATCH https://api.beecargo.net/files/share-settings \
  -H "Authorization: Bearer YOUR_BC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileId":"abc12xyz","visibility":"public","retention":"ttl","protect":true,"handoffMessage":"Private files for review"}'

Parameters

ParameterTypeRequiredDescription
fileIdStringYesFile id from the upload response
visibilityunlisted | publicNoPublic visibility requires a claimed username
priceCentsInteger | nullNoOne-time USD price in cents (minimum 100). Pass 0 or null to clear. Positive prices require seller Connect ready to sell.
directBooleanNoPro: start download when the /d share opens
retentionttl | foreverNoPublic Pro shares may use forever
expiresAtString (ISO)NoFuture expiration when retention is ttl; maximum 90 days from now
extendTtlStringNoAdd more keep time from now (for example 7d). Useful after an upgrade when you want a longer Free or Pro TTL without picking an exact date.
protectBooleanNoTrue creates new unlock credentials; false clears existing protection
handoffMessageString | nullNoOptional delivery-link note, maximum 480 characters
immutableBooleanNoWhen true, the file cannot be casually changed or deleted. Use for outputs that other files depend on.
upstreamFileIdsString[]NoParent file ids this share came from. Helps keep a simple lineage for pipeline outputs.

Response

When protection is enabled, unlockCode and handoffUrl are returned once. Save them before discarding the response.

{
  "success": true,
  "data": {
    "fileId": "abc12xyz",
    "shortId": "AbC123",
    "visibility": "public",
    "unlockRequired": true,
    "unlockCode": "XyZ789",
    "handoffUrl": "https://beecargo.net/h/PRIVATE_TOKEN"
  }
}

Usage notes

  • shortId is the public share code. It locates /d/{shortId} and is not the unlock secret.
  • Send the public share address and unlockCode through separate channels, or send the private handoffUrl.
  • A positive priceCents requires connected seller payouts (POST /connect with action=onboard). Buyers pay on /d/{shortId} before download unlocks.
  • Free public shares last 7 days. Pro defaults to forever while subscribed and can choose any expiry date within 90 days.
  • CLI beecargo share updates the same fields (--visibility, --price-cents, --protect, …). beecargo extend FILE_ID 7d is a shortcut for --extend-ttl.
  • Setting protect: true again rotates the unlock credentials.

Protect an anonymous upload

PATCHhttps://api.beecargo.net/files/link-protection

Use PATCH /files/link-protection before claiming a file. Send the fileId and claimToken returned by upload, plus protect and an optional handoffMessage.

ParameterTypeRequiredDescription
fileIdStringYesAnonymous file id
claimTokenStringYesClaim token returned once by upload
protectBooleanYesEnable or clear protection
handoffMessageString | nullNoOptional delivery-link note