API v1TideFold API documentation
Prepare file uploads, publish versions and receive webhooks. The public API and webhooks are included with Business, from one seat.
- Base URL
https://www.tidefold.app/api/v1
curl --fail-with-body -sS \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
"$TIDEFOLD_API_BASE/api/v1/transfers?limit=25"Access and credentials
In your Business workspace, a workspace owner or an active administrator can create and revoke keys under Settings → Integrations → API keys. The current form creates a key with transfer and file-request read and write scopes. Keys expire after 90 days when created with that form.
Run this in Bash and paste your API key when prompted. Use the same terminal for the next commands.
Open integration settingsexport TIDEFOLD_API_BASE='https://www.tidefold.app'
read -rsp 'TIDEFOLD_API_TOKEN: ' TIDEFOLD_API_TOKEN
printf '\n'
export TIDEFOLD_API_TOKENCopy the secret when it is shown and store it in a secret manager. Use HTTPS and send it from your server as Authorization: Bearer $TIDEFOLD_API_TOKEN. Keep it out of browsers, source code and logs. To replace it, create a new key, update your integration and revoke the old one in Settings. Revoke a leaked key immediately.
Each key is limited to its workspace, configured spaces and granted scopes. Administrators are limited to their assigned spaces. Use Tidefold-Space-Id with the UUID of a permitted space to select it explicitly. Omit it to use the permitted default or first available space. Some upload routes can infer the space from the upload session. GET /api/v1/spaces lists permitted spaces for keys with spaces:read.
The examples use curl, jq and OpenSSL. Set TIDEFOLD_API_BASE to https://www.tidefold.app or your test origin, and supply TIDEFOLD_API_TOKEN from your secret manager. Run the upload examples in the same working directory. Set TIDEFOLD_EXPIRES_AT to a future UTC timestamp ending in Z within the plan’s availability limit.
Interactive demo
Try pagination with sample data in your browser.
curl --fail-with-body -sS \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
"$TIDEFOLD_API_BASE/api/v1/transfers?limit=1"{
"data": [
{
"id": "00000000-0000-4000-8000-000000000011",
"title": "Design assets",
"description": null,
"status": "active",
"access_mode": "link",
"expires_at": "2026-12-15T12:00:00Z",
"current_version_id": "00000000-0000-4000-8000-000000000021",
"created_at": "2026-11-18T09:00:00Z",
"updated_at": "2026-11-18T09:01:00Z"
}
],
"next_cursor": "demo_1"
}Transfers and file requests
List transfers in a space and read one transfer with its versions. The transfer and request lists default to 25 items and accept limit from 1 to 100. Pass the opaque next_cursor back as the URL-encoded cursor for the next page with the same filters and space. A null cursor marks the end.
List or create file requests in a permitted space. To create one, send a title and future expires_at in UTC, plus an Idempotency-Key. The resulting upload_url lets contributors send files to that request. Their link grants upload access only.
Prepare and complete uploads
- Prepare a draft
POST /transfers - Upload to the signed URL
PUT - Complete the upload
POST /uploads /complete - Check verification
GET /uploads /{uploadId} /resume - Publish the version
POST /versions /{versionId} /publish
Send local file descriptors with a logical path, byte count and lowercase hexadecimal SHA-256 digest. Supply the content type when you know it. To prepare a new transfer, also send a title and expiration. The response contains the draft version, its content generation and upload instructions. Keep any returned signed URL private. Cloud provider imports are available through the dashboard’s supported plan flows.
umask 077
printf '%s\n' 'TideFold example' > delivery.txt
SHA256=$(openssl dgst -sha256 < delivery.txt | awk '{print $NF}')
SIZE=$(wc -c < delivery.txt)
curl --fail-with-body -sS -X POST \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
-H "Content-Type: application/json" --data-binary @- \
"$TIDEFOLD_API_BASE/api/v1/transfers" > preparation.json <<EOF
{
"title": "API example",
"expiresAt": "$TIDEFOLD_EXPIRES_AT",
"files": [{
"path": "delivery.txt",
"size": $SIZE,
"type": "text/plain",
"checksumSha256": "$SHA256"
}]
}
EOFAn empty file uses single. PUT it to the returned url with the declared content type, then call POST /api/v1/uploads/complete with the uploadId. Send the Bearer key to the TideFold API only. The signed storage URL authorizes its own PUT.
A non-empty file uses multipart. Split the bytes using the returned partSize. POST partNumber to the /part endpoint to sign each part, PUT the part, and POST that number and the returned etag to confirm it. Complete the upload after all parts are present. TideFold reconciles the persisted storage parts. This example uses a file that fits in one part.
UPLOAD_ID=$(jq -er '.uploads[0].uploadId' preparation.json)
PART_ENDPOINT="$TIDEFOLD_API_BASE/api/v1/uploads/$UPLOAD_ID/part"
PART_URL=$(curl --fail-with-body -sS -X POST \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
-H "Content-Type: application/json" --data '{"partNumber":1}' \
"$PART_ENDPOINT" | jq -er '.url')
curl --fail-with-body -sS --upload-file delivery.txt \
--dump-header part-headers.txt -o /dev/null "$PART_URL" &&
ETAG=$(awk 'tolower($1) == "etag:" { sub(/\r$/, "", $2); print $2 }' part-headers.txt) &&
jq -n --arg etag "$ETAG" '{partNumber:1, etag:$etag}' |
curl --fail-with-body -sS -X POST -o /dev/null \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
-H "Content-Type: application/json" --data-binary @- \
"$PART_ENDPOINT" &&
jq -n --arg id "$UPLOAD_ID" '{uploadId:$id}' |
curl --fail-with-body -sS -X POST \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
-H "Content-Type: application/json" --data-binary @- \
"$TIDEFOLD_API_BASE/api/v1/uploads/complete"Completion returns 202 with completed and verifying. The API verifies content and the antivirus scan must permit publication. Read the upload’s /resume response for status, verificationPending and restartRequired. Upload completion and publication are separate operations.
UPLOAD_ID=$(jq -er '.uploads[0].uploadId' preparation.json)
curl --fail-with-body -sS \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
"$TIDEFOLD_API_BASE/api/v1/uploads/$UPLOAD_ID/resume"Keep the draft’s draft_public_id to recover upload IDs through /upload-operations. Resume renews eligible signed upload authorization. If the local bytes changed, reject the upload with the current content and object generations and prepare a fresh upload.
Drafts, publication and versions
Preparation creates a private draft. To update its note or replace its folder list, PATCH the draft with its current expected_content_generation. Use one of those changes per request. Keep the returned content_generation for your next edit or publication.
After verification, read the draft’s current content generation from /upload-operations. Send it to /publish with the draft version ID and a fresh TIDEFOLD_PUBLISH_KEY (8–128 characters). A published result returns 200. A 202 supplies an operation ID. Poll it until completed, failed or cancelled, and inspect error_code when present.
VERSION_ID=$(jq -er '.versionId' preparation.json)
DRAFT_ID=$(jq -er '.releaseDraft.draft_public_id' preparation.json)
GENERATION=$(curl --fail-with-body -sS \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
"$TIDEFOLD_API_BASE/api/v1/upload-operations/$DRAFT_ID" | jq -er '.content_generation')
jq -n --argjson generation "$GENERATION" \
'{expected_content_generation:$generation}' |
curl --fail-with-body -sS -X POST \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
-H "Idempotency-Key: $TIDEFOLD_PUBLISH_KEY" \
-H "Content-Type: application/json" --data-binary @- \
"$TIDEFOLD_API_BASE/api/v1/versions/$VERSION_ID/publish"To schedule publication, send publish_at and an IANA time_zone. The key that created a scheduled operation can reschedule it using both current generations, or cancel it using its current schedule generation.
To prepare an update, send the existing transferId and pass expectedCurrentVersionId to pin the base. Use null only when the transfer has no current version. Send the changes as files, folders and explicit removed paths. Publishing changes the current version and preserves the transfer’s history.
Restoring a published version creates a new private draft. Give the restore request its source_version_id and an idempotency key. Read its state by restore_id, then use the usual draft and publication process.
Manifests, changelogs and downloads
A published version has separate JSON manifest and changelog endpoints. The manifest records logical paths, sizes and integrity metadata. The changelog summarizes changes. Recipients download files through the TideFold share link or invitation, subject to the transfer’s access and file safety checks. The API key and manifest grant no recipient download access.
VERSION_ID=$(jq -er '.versionId' preparation.json)
curl --fail-with-body -sS \
-H "Authorization: Bearer $TIDEFOLD_API_TOKEN" \
"$TIDEFOLD_API_BASE/api/v1/versions/$VERSION_ID/manifest"Webhooks
- Receive the event
POST - Verify the raw body
HMAC-SHA256 - Deduplicate and store
X-Tidefold-Event-Id - Acknowledge receipt
HTTP 2xx
A Business workspace owner can register a public HTTPS endpoint in Settings → Integrations → Webhooks. Save the endpoint secret when it is shown. The dashboard subscribes to transfer.version_published, transfer.file_downloaded, transfer.version_downloaded and file_request.submitted.
TideFold POSTs JSON with version, id, type, created_at and data. Read the secret version from X-Tidefold-Secret-Version and the payload version from X-Tidefold-Payload-Version. Parse t=<Unix seconds>,v1=<hex> from X-Tidefold-Signature and compute HMAC-SHA256 with the endpoint secret over t + '.' + raw request body. Compare in constant time and enforce a timestamp tolerance before using the payload. Verify the original bytes before parsing JSON.
Use the stable X-Tidefold-Event-Id (also the body’s id) to deduplicate verified deliveries for your endpoint. Persist the event or enqueue it durably before returning 2xx, and return 2xx for duplicates already accepted. Network failures and non-2xx responses normally retry after 1 min, 5 min, 30 min, 2 h and 12 h (six total attempts). Expect possible duplicates and out-of-order delivery.
{
"version": "2026-08-20",
"id": "evt_123",
"type": "transfer.version_published",
"created_at": "2026-11-18T09:01:00Z",
"data": {
"transfer_id": "00000000-0000-4000-8000-000000000011",
"version_id": "00000000-0000-4000-8000-000000000021",
"version_number": 1
}
}Errors and retries
Use the HTTP status and error.code for program logic. Error responses normally include api_version, request_id and error.message. Keep X-Request-Id when reporting an issue. The X-Tidefold-Api-Version response header identifies the contract version.
400 means invalid input, 401 an invalid or unavailable credential, 403 a scope or permission restriction, 404 an unavailable resource, 409 a state or idempotency conflict and 413 a size or capacity limit on applicable routes. Review the code and current state before repeating a failed write.
The limit is 120 requests per minute per key. Check X-RateLimit-Remaining and X-RateLimit-Reset. After 429, wait the number of seconds in Retry-After. For temporary server errors, use bounded backoff and keep the original idempotency key for a retry of the same operation.
Use an Idempotency-Key of 8–128 characters to create a file request, edit a draft, publish, reschedule, cancel or restore. Keep the same idempotency key, payload, API key and space when retrying the same operation. A replay includes Idempotent-Replayed: true. A changed request or one already in progress can return 409. Preparation and completion use the persisted draft and upload state.
File and plan limits
Every file is capped at 2 GB (2,000,000,000 bytes). Business allows 200 GiB in a version, counting the bytes of all files in that version, and accepts up to 5,000 file descriptors per preparation. The antivirus check may still block a file from publication even when its size is allowed.
Business storage is shared across the workspace, including retained history. Each paid seat and each additional storage block contributes 250 GiB (268,435,456,000 bytes). The plan also allows 250 active transfers, 200 versions and 250 invited recipients per transfer, and up to 365 days of availability.
See Business plansAPI operations
Select an endpoint to see its cURL example. Set the IDs and generations from your API responses. For each new operation that requires an idempotency key, set a fresh TIDEFOLD_IDEMPOTENCY_KEY and keep it for retries. Set TIDEFOLD_PUBLISH_AT to a future UTC timestamp when rescheduling.
| Method | Endpoint | Required scope |
|---|---|---|
GET | spaces:read | |
GET | transfers:read | |
GET | transfers:read | |
GET | requests:read | |
POST | requests:write | |
POST | transfers:write | |
POST | transfers:write | |
POST | transfers:write | |
GET | transfers:write | |
GET | transfers:write | |
POST | transfers:write | |
PATCH | transfers:write | |
POST | transfers:write | |
GET | transfers:read | |
PATCH | transfers:write | |
DELETE | transfers:write | |
POST | transfers:write | |
GET | transfers:read | |
GET | transfers:read | |
GET | transfers:read | |
