Vault: secure document requests
Vault lets your team ask a customer for documents, such as a national ID, a salary certificate or a signed form, without email attachments or chat apps. The customer gets a secure link, confirms a one-time code, and uploads from their phone or computer. Your team reviews each document in ContentFlow, asks again when something is wrong, and can send the result to your own system. Every file is encrypted with its own key and kept in Saudi Arabia.
- Open Vault → New request, pick the customer, list the documents you need (up to 12), and send the link by SMS, WhatsApp or email, or copy it and share it yourself.
- The customer opens the link, enters a 6-digit code sent to the phone or email you used, uploads each document and taps send. No app or account is needed.
- Photos (JPEG, PNG, WebP, HEIC) and PDFs up to 10 MB are accepted. Each file is checked before it is stored.
- Files are deleted automatically a set number of days after the request closes (90 by default), unless the request is on legal hold.
- A signed webhook can post each finished request to your system, with download links that work for 24 hours.
Availability
Vault is in open beta. Every workspace sees Vault in the sidebar, marked Beta. Workspace admins and editors create and work on requests, open files and manage templates. Viewers can see the list of requests and the activity log, but cannot open files or change anything. Only admins change the Vault settings. Vault is a dashboard feature: there are no SDK calls for it, and your app does not need an update.
Ask for documents
Vault → New request has three steps.
- Customer. Search Audience by name, email or phone, or type the customer's name, mobile number and email. The customer later confirms a code sent to one of these, so use contact details you trust. If the person is not in Audience yet, a profile is created so their documents show on it. Choose Their language (Arabic or English) for the messages and the upload page.
- Documents. Start from a template or a blank list. Give the request a title the customer sees, such as Personal loan application, and optionally Your reference, a case or application number from your own system. List each document with its name in English and Arabic, a note for the customer, its type (ID, document or photo) and whether it is required.
- Send. Choose how the link reaches the customer: SMS, WhatsApp, email, or Copy the link to share it in a call or chat. Add a personal note (up to 300 characters), choose how long the link works (1 to 30 days, 7 by default) and when the files are deleted after the request closes.
Save a list you use often under Vault → Templates. Changing or deleting a template never changes requests already sent.
On the request page your team can send a reminder, send the link again, give the customer 7 more days, close the request or cancel it. A cancelled link stops working at once, and any files already uploaded are deleted at the next cleanup (within about 15 minutes), unless the request is on legal hold. The person's profile in Audience shows a Documents card with all their requests.
What the customer does
- Open the link. The page shows your brand name and colour, in the customer's language (they can switch between Arabic and English), and asks only for a code. Nothing about the request is shown before the code is confirmed.
- Confirm the code. A 6-digit code goes to the phone or email the request was sent with. It is valid for a short time, and the number of tries and of new codes is limited.
- Upload. After the code, the customer uploads each document. They can replace or remove a file before sending. If they leave the page for too long, they confirm a new code and continue.
- Send. Once every required document is there, the customer taps send. Your team sees the request under To review.
If your team asks again for a document, the customer gets the link again with your note on what to fix.
Files that are accepted
| Rule | Value |
|---|---|
| Types | JPEG, PNG, WebP, HEIC and PDF, recognised from the file's content, not its name |
| Size | Up to 10 MB per file |
| PDF content | PDFs with active content are refused; a plain PDF export is accepted |
| Checks | Every file is checked before it is stored, and a file that fails is refused |
| Documents per request | Up to 12 |
Review and forward
Open a request under To review. For each document choose Approve, or Ask again with a note telling the customer what to fix. Approve all approves every document at once. When every document is approved, the request is complete.
- Viewing. Files open in a view-only viewer, and every view is recorded. Downloads are off by default; an admin can allow them under Vault → Settings → Files.
- Forwarding. Forward sends documents to up to 5 email addresses. Each person gets a secure link and confirms a code sent to their email; files open view-only and are marked with their email address. You can stop a forwarded link at any time. An admin can limit forwarding to listed domains (up to 20) under Vault → Settings → Forwarding.
- Activity. Each request has an activity log: who created, sent, viewed, downloaded, approved or forwarded what, and when. The log holds names and short details, never file contents or codes. It can be exported, and an admin can check that it has not been changed since it was written.
Retention and legal hold
- Files are deleted automatically a set number of days after a request is approved or closed: 90 by default, anything from 1 day to 10 years. Set the workspace default under Vault → Settings; each request can keep its own.
- A request whose link expires before the customer sends it is closed as expired, and any files it already holds are deleted at the next cleanup (within about 15 minutes), unless it is on legal hold.
- Put on legal hold stops every deletion for that request, automatic or manual, until someone releases it.
- Delete files now deletes a request's files at once. Their encryption keys are destroyed, so the files cannot be recovered. The activity log is kept.
- Deleting the workspace deletes all its Vault files. To remove one person's documents, use Delete files now on each of their requests (their profile's Documents card lists them).
Security and storage
- Encryption. Every file is encrypted with AES-256 under its own key, and the keys are managed by ContentFlow.
- Where files are kept. In Riyadh, Saudi Arabia.
- Links. Customer and forwarding links cannot be guessed, and a link alone is not enough: the code goes to the contact on the request.
- Upload page. Your privacy notice can be linked from it (Vault → Settings → Branding).
Send documents to your system
An admin can add a webhook under Vault → Settings → Send to your system. The address must start with https:// and be a public internet address. Pick the events, copy the signing secret (whsec_…, shown once; New secret replaces it) and use Send a test to check your endpoint.
| Event | Sent when |
|---|---|
request.submitted | The customer sent the documents (on by default) |
request.approved | Every document was approved (on by default) |
request.expired | A link expired without an answer |
Each delivery is a JSON POST with these headers:
| Header | Value |
|---|---|
X-CF-Event | The event name |
X-CF-Signature | t=<unix seconds>,v1=<hex>, where the hex is HMAC-SHA256 of <t>.<raw body> keyed with your signing secret |
X-CF-Signature: t=…,v1=… header. The workspace webhooks under Developers (see REST API) use separate X-CF-Timestamp and X-CF-Signature: sha256=… headers. Verify each with its own scheme.{
"event": "request.approved",
"sentAt": "2026-11-20T09:14:03.000Z",
"request": {
"id": "VR-7KQ2M9",
"title": "Personal loan application",
"reference": "LN-2026-04417",
"externalId": "LN-2026-04417",
"status": "approved",
"customer": { "userId": "cust_88213", "name": "Noura Al-Harbi" },
"submittedAt": "2026-11-19T17:02:41.000Z",
"closedAt": "2026-11-20T09:14:03.000Z",
"deleteAt": "2027-02-18T09:14:03.000Z",
"items": [
{ "key": "national_id", "label": "National ID", "status": "approved" },
{ "key": "salary_certificate", "label": "Salary certificate", "status": "approved" }
]
},
"files": [
{
"id": "6741c0…",
"itemKey": "national_id",
"name": "id-front.jpg",
"mime": "image/jpeg",
"size": 482113,
"sha256": "9f2c…",
"downloadUrl": "https://app.contentflow.click/v/_f/…",
"downloadExpiresAt": "2026-11-21T09:14:03.000Z"
}
]
}
Each downloadUrl works for 24 hours and at most 3 times, so fetch the files when the event arrives and check each against its sha256. Answer with any 2xx within 10 seconds. A failed delivery is tried 3 times in total; after that the request shows Your system did not accept this request, and an admin or editor can send it again from the request page once your endpoint is fixed.
// Node.js: verify a Vault webhook. Use the raw request body, not re-serialised JSON.
const crypto = require('crypto');
function verifyVault(rawBody, header, secret, toleranceSec = 300) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const a = Buffer.from(expected, 'hex');
const b = Buffer.from(parts.v1 || '', 'hex');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
When it doesn't work
| What you see | Why, and the fix |
|---|---|
| The customer never got the code | The code goes to the phone or email on the request. Check the number (for example +966 5X XXX XXXX) and that the workspace has an SMS, WhatsApp or email provider connected. The activity log shows The code could not be sent when sending failed. After several codes in a short time the customer has to wait before asking for another. |
| The customer says the link does not work | It has expired, been cancelled or been closed. Use Give 7 more days or Send the link again on the request. |
| A file was refused | It is not a JPEG, PNG, WebP, HEIC or PDF, is larger than 10 MB, or is a PDF with scripts or embedded files. Ask the customer for a photo or a plain PDF export. |
| "The vault is being set up on this server" | Vault is not available yet on this workspace's server. Try again in a few minutes, and contact ContentFlow support if it continues. |
| The webhook shows Failed | Check that the address is public and uses https://, does not redirect, and answers 2xx within 10 seconds. Fix it, then use Send a test and send the request again from its page. |
| Files were not deleted on the date shown | The request is on legal hold. Release the hold to let the schedule run. |
Next
- Audience & privacy: profiles, consent and PDPL.
- Approvals: how sign-off works for the rest of the workspace.