Make a drop link
POST /api/v1/deliveries/{id}/drop-link
Makes the campaign’s drop link and returns its address, to send your client with your brief. It drops its files there with no account, sees each one’s verdict and fixes the refused ones before your team opens the delivery.
Scope · drop-links:write Takes an Idempotency-Key
Path parameters
iduuid required- The delivery, as
POST /deliveriesreturned it.
Request body
maxFilesinteger optional- The link’s ceiling: how many files it may take in all, from 1 to 2000. Without it, what your agency offers for a new link in ValidFile (100 if it set nothing).
daysinteger optional- How many days it takes files, from 1 to 90. Without it, what your agency offers (14 if it set nothing).
allowedEmailsarray of string optional- Who may open the link: from 1 to 50 addresses, one per person, never a domain. Each types their address on the page and receives a 6-digit code. Without this field, the link opens to whoever has the address.
replaceboolean optionaltrueto cut the link the campaign already has and make a new one: the old address no longer answers your client.falseby default: the call is then refused,409 link_exists.
What the response holds · 201
dropLinkdropLink- The link made.
The fields of dropLink
iduuid- The link. A new link of the same campaign has another
id. statestring- Where it stands.
open: it takes files.full: its ceiling is reached.paused: the agency’s plan, or the ceiling it set for all its links, does not let it take any for now; it starts again by itself.expired: its date has passed; for 30 days, a person of the agency can extend it in ValidFile, and it takes files again at the same address.cut: cut, or replaced by a new link; it stays cut.maker_left: the person who made it, or who made the key that made it, left the agency; it works again, at the same address, if they come back. In these three, your client’s page no longer answers andurlisnull. openfullpausedexpiredcutmaker_leftmaxFilesinteger- Its ceiling: how many files it may take in all.
usedinteger- The files it has taken. A file your client withdrew still counts; a copy of a file already in the delivery does not.
accessstringcode: it asks each person for a code sent to their address, among those the agency allowed.link: it opens to whoever has the address. The addresses allowed are never in a response.linkcodeoriginstring- Who made it: an API key (
api), or a person of the agency in ValidFile (agency). apiagencycreatedAtdate-time- When it was made.
expiresAtdate-time- When it stops taking files.
urluri | null- The address to send your client. It is the link: keep it as you keep a key.
nullonly in a response replayed for anIdempotency-Key, if the link was cut since.
Errors
| 400 | invalid | Fix the request: a field is missing, too long or of another type, or the JSON is malformed. |
| 403 | scope | The key does not have the scope the route asks for: a read-only key tried to write, or a key without drop-links:write tried to make or cut a drop link. |
| 404 | not_found | A delivery or file unknown, deleted, or erased at the end of its retention; or an address the API does not have. |
| 403 | no_drop_links | The agency’s plan gives it no drop link: a price the catalogue does not name, or a site without drop links. Every plan sold gives at least one, Free included. |
| 409 | link_exists | The campaign already has a link that is neither cut nor expired: read it with GET, or send the call again with replace: true, which cuts the old one. |
| 409 | too_many_links | The agency already has as many links working as its plan allows; limit says how many. Cut one, or wait for a link to expire. |
| 409 | codes_off | This site cannot send a code by e-mail: make the link without allowedEmails. |
| 409 | idempotency_mismatch | The same Idempotency-Key with another body: take a new one. |
| 409 | idempotency_in_progress | The first call is still running: try again in a moment, with the same key. |
And those of any call, in Limits and errors.
Only a key whose scope includes the drop links (drop-links:write) makes a link, and only an owner gives that scope, when the key is made: Authentication. A test key never has it.
Each file dropped counts on the agency’s plan, as a file announced does, under the link’s ceiling and under the one the agency set for all its links. It does not count under the key’s ceiling. Agency allows 25 links working at once, the Custom offer as many as needed.
Each file your client drops sends file.received, with origin: "client", then file.judged: Webhooks. Its files are read like the others with Read a delivery.
In ValidFile, the link carries the key’s name, and your client’s page is signed with the agency’s name. It works as long as the person who made the key is part of the agency, even once the key is cut. Reminders to the client are set in ValidFile, on the link’s card, and take no replies. Drop e-mails go to the people of the agency who follow all its links.
With an Idempotency-Key, a call sent again because its response was lost returns the same link and its address, rather than stopping on link_exists.
curl https://validfile.ca/api/v1/deliveries/$DELIVERY/drop-link \
-H "Authorization: Bearer $VALIDFILE_KEY" \
-H "Content-Type: application/json" \
-d '{
"maxFiles": 40,
"days": 21,
"allowedEmails": ["marie.boivin@fromagerieboivin.example"]
}'
{
"dropLink": {
"id": "5f0c7c1e-2a9b-4d3e-b8f1-6c4a0e7d9b25",
"state": "open",
"maxFiles": 40,
"used": 0,
"access": "code",
"origin": "api",
"createdAt": "2026-10-28T18:40:09.300Z",
"expiresAt": "2026-11-18T18:40:09.300Z"
},
"url": "https://validfile.ca/depot#Q2xhaXJlLWV0LW5ldHRl…"
}