Make a delivery
POST /api/v1/deliveries
Makes a delivery: a client’s campaign, whose every file will be judged on the placements of the platforms it will run on. One per campaign.
Scope · deliveries:write Takes an Idempotency-Key
Request body
clientstring required- The client, 200 characters at most.
campaignstring required- The campaign, 200 characters at most.
platformsarray of string required- Where the campaign will run, at least one platform, written exactly as Platforms returns it, accents included:
Vidéo, notVideo. Each file is judged on these platforms’ placements. campaignRefstring | null optional- Your own id for the campaign, to find it again with
GET /deliveries?campaignRef=. Folded to lower case, 128 characters at most, amonga-z,0-9,.,_,:,/and-, the first a letter or a digit:Bynder:4471is kept asbynder:4471, and a space or an accent is refused. It goes as it is in webhooks: put nothing in it that a mistyped address must not receive.
What the response holds · 201
deliverydelivery- The delivery made.
The fields of delivery
iduuid- The delivery’s id.
clientstring- The client, as you gave it.
campaignstring- The campaign, as you gave it.
platformsarray of string | null- The campaign’s platforms, in the order of
GET /platforms, ornullfor a delivery started in ValidFile before its Campaign step: each of its files is judged on the whole catalogue. campaignRefstring | null- Your campaign reference, folded to lower case, or
null. closedboolean- True once the delivery is closed: by
POST …/close, or by your client when it says on its drop link that its delivery is complete. A closed delivery still takes files. createdAtdate-time- When it was made.
keptUntildate-time- The day it will be erased if nothing happens to it before, by your plan’s retention. It moves later with each activity. Once erased, it answers
404. For a test delivery: 24 h after its making or its last file. testboolean- True for a delivery made with a test key (
vf_test_): its files cost nothing and are erased after 24 h, and ValidFile shows it nowhere. Authentication.
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. |
| 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.
With an Idempotency-Key, a call sent again because its response was lost returns the same delivery rather than making a second one. Limits and errors says how.
curl https://validfile.ca/api/v1/deliveries \
-H "Authorization: Bearer $VALIDFILE_KEY" \
-H "Idempotency-Key: bynder-4471" \
-H "Content-Type: application/json" \
-d '{
"client": "Fromagerie Boivin",
"campaign": "Noël 2026",
"platforms": ["Meta", "Display"],
"campaignRef": "bynder:4471"
}'
{
"delivery": {
"id": "0b6c2f4e-8d1a-4c7b-9f3e-5a2d1c8b7e60",
"client": "Fromagerie Boivin",
"campaign": "Noël 2026",
"platforms": ["Meta", "Display"],
"campaignRef": "bynder:4471",
"closed": false,
"createdAt": "2026-10-28T18:40:02.114Z",
"keptUntil": "2027-10-28T18:42:10.531Z",
"test": false
}
}