Reading a verdict
Read a file returns a file’s verdict; Read a delivery, those of the whole delivery, with the link to its review in ValidFile, where your team approves and exports.
curl https://validfile.ca/api/v1/deliveries/$DELIVERY/files/$FILE \
-H "Authorization: Bearer $VALIDFILE_KEY"
Publish on ready
ready: true means ValidFile’s export would send this file as it is. A file can pass its specs and still be held: a platform the campaign did not tick, a placement ValidFile chose among several. heldReason says why, with the export page’s own reasons.
heldReason | Why the file is held |
|---|---|
refused | It breaks a rule of its placement: checks says which. |
no_format | No format of the catalogue takes it. |
to_confirm | ValidFile chose its placement among several, or set aside the one your team had chosen: someone must confirm. |
outside | It goes to a platform the campaign did not tick. |
named_elsewhere | Its name names another platform than the one it was judged on. |
wrong_box | Your client dropped it in another platform’s box, which refuses it: it is judged on the one that takes it, until your client says which it is for. |
not_ordered | Its placement is not in the delivery’s order. |
unchecked | Part of the file could not be checked, a cut-off image for instance. |
unseen | Nothing shows it decodes: no preview could be made of it, or the review could not play the video. |
waiting | It is not measured yet. |
unreadable | Our reader could not read it. |
duplicate | A file with the same bytes, name, placement and ad text is already in the delivery: the export sends one of them. Two files of one name that differ in any of these both go out. If the agency files its exports as the client sent them, the zip, Google Drive and OneDrive also send such a file kept in another of the client’s folders: the API says what the export by platform sends. |
scanning | The antivirus has not scanned it yet. |
infected | The antivirus recognised a known threat in it: it will never go out. |
not_checked | An HTML5 banner measured by the version of ValidFile that, in November 2026, set banners aside without checking them: opening its review in ValidFile again measures and judges it. |
Verdicts
verdict says what the specs think of the file.
verdict | What it means | What to do |
|---|---|---|
pass | It meets its placement’s specs. | Publish it if it is ready. |
warn | It passes, with a recommendation not met. | Publish it if it is ready, or have it fixed. |
fail | A rule of the placement is broken. | Send it back to the studio with the lines of fix, unless doubtful is true there. |
no_format | No format of the catalogue takes it. nearest gives the nearest. | Check the platform aimed at, or ask for the format in ValidFile. |
needs_placement | Several placements take it, and they do not all judge it alike; candidates lists them. When they are one platform’s placements, the delivery has no order, each gives it the same verdict, and the file itself carries no warning (an EXIF orientation, an extension naming another type), it has that verdict, on the placement the tool took. | Choose one with Choose a placement, or in the review. |
pending | Not measured yet. | Wait for the webhook, or read it again with wait. |
unreadable | Our reader could not read it. Its credit is given back. | Send it again; if it happens again, write to support. |
infected | The antivirus recognised a known threat in it, named in antivirus.threat. It is not judged. | Do not open it; ask whoever sent it for a new version. |
not_checked | An HTML5 banner measured by the version of ValidFile that, in November 2026, set banners aside without checking them. It is not judged, and counts no credit; a banner already counted before that version keeps its credit. A banner measured since is judged like any file, and never has this verdict. | Open its review in ValidFile again: it is measured again and judged, with no further credit. |
Checks
checks gives each rule of the placement, what it asks for (expected) and what ValidFile measured (actual).
status | What it means |
|---|---|
pass | The rule is met. |
warn | A recommendation is not met: the file passes all the same. |
fail | The rule is broken: the file is refused, unless accepted is true. |
skipped | ValidFile could not make the check, and says so rather than count it as good. unmeasured says why. |
note | A remark, with no effect on the verdict: the advised delivery size, for instance. |
Each check has its key, key. A key can come twice, for a rule and for a recommendation, or for several rules of an HTML5 banner. A new key can be added when ValidFile learns a check: your script should take it.
key | What it checks |
|---|---|
mime | The file’s format, read from its bytes: JPEG, PNG, MP4… |
maxBytes | The file’s weight, at most. |
minBytes | The file’s weight, at least: a file too light for its placement. |
dimensions | The width and height, in pixels. |
aspectRatio | The width-to-height ratio. |
duration | The length of a video or a sound. |
fps | A video’s frames per second. |
videoCodec | The video codec. |
audioCodec | The audio codec. |
audio | The audio track: asked for, or refused. |
bitrate | The bitrate. |
audioSampleRate | The sound’s sample rate. |
audioChannels | The sound’s channels: mono or stereo. |
colorSpace | An image’s colour space: sRGB, CMYK… |
alpha | An image’s transparency. |
animationLength | An animated image’s (GIF) length, loops included, as a browser plays it; an HTML5 banner’s, watched as it plays. For a banner, a warning only; note, “Not judged”, when it could not be watched. |
animationFps | An animated image’s frames per second. |
animationPlays | How many times an animated image plays. |
adSize | HTML5 banner: the size its ad.size tag declares. |
clickTag | HTML5 banner: a clickTag the ad server can read. |
clickOpens | HTML5 banner: a click on the banner, played in a browser, opens its clickTag. A warning only; note, “Not judged”, when it could not be played or what its click opens could not be followed. |
hardcodedUrls | HTML5 banner: no click address written into the code. |
bannerFiles | HTML5 banner: the zip’s files, their number, types and names. |
pageAtRoot | HTML5 banner: the page is at the top of the zip, not in a folder. A warning in the base catalogue. |
bannerReferences | HTML5 banner: each file the page loads is in the zip. |
bannerExtras | HTML5 banner: no file the computer added (__MACOSX, .DS_Store). |
browserStorage | HTML5 banner: no storage in the browser. |
secureLoads | HTML5 banner: everything loads over https. |
externalLoads | HTML5 banner: the files loaded from outside the zip. |
initialLoad | HTML5 banner: what it loads before its page’s load event, then after it, gzipped, as the IAB weighs it. A warning only; note, “Not judged”, when it could not be measured. |
backupImage | HTML5 banner: a backup image in the zip, and its weight. No format asks for one for now, the base catalogue no more than another. |
- A
skippedcheck did not pass.unmeasured: truemeans a measurement was missing;false, that there was nothing to check, an absent audio track for instance. accepted: truemarks a rule your team let through in ValidFile, with “Accept anyway”: it staysfail, but no longer holds the file.messageis ValidFile’s sentence in English, as its check writes it;textsays it in French and in English, in the site’s words, which can differ. To automate, readkey,statusandheldReason, which will not change.
The words to show
key, status and heldReason are made for a script. For a person, each check carries text and each file fix: what ValidFile says of it in its review, in French (fr) and in English (en) in the same answer. Show them as they are, without summing them up.
{
"file": {
"id": "3d8f1b6e-52a4-4c0f-b7e9-6a1c4d2f8b05",
"name": "Display_FR_300x250-noel.jpg",
"size": 333596,
"ready": false,
"heldReason": "refused",
"verdict": "fail",
"placement": { "id": "display.300x250", "platform": "Display", "label": "Medium Rectangle 300x250", "rulesToConfirm": false, "pageChanged": false },
"nearest": null,
"checks": [
{ "key": "mime", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null,
"text": {
"fr": { "rule": "Format de fichier", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null },
"en": { "rule": "File format", "expected": "JPG, PNG, GIF", "actual": "JPG", "message": null }
},
"status": "pass" },
{ "key": "maxBytes", "expected": "≤ 150 KB", "actual": "334 KB", "message": "334 KB is over the 150 KB limit. This limit is set by Google Ads: Campaign Manager 360 takes up to 9.50 MB.",
"text": {
"fr": { "rule": "Poids", "expected": "≤ 150 Ko", "actual": "334 Ko", "message": "Fichier de 334 Ko. Maximum recommandé : 150 Ko. C’est la limite de Google Ads : Campaign Manager 360 accepte jusqu’à 9,5 Mo." },
"en": { "rule": "File size", "expected": "≤ 150 KB", "actual": "334 KB", "message": "File is 334 KB. Recommended maximum: 150 KB. This limit is set by Google Ads: Campaign Manager 360 takes up to 9.50 MB." }
},
"status": "warn", "accepted": false },
{ "key": "dimensions", "expected": "300x250 or 600x500", "actual": "300x250", "message": null,
"text": {
"fr": { "rule": "Dimensions", "expected": "300x250 ou 600x500", "actual": "300x250", "message": null },
"en": { "rule": "Dimensions", "expected": "300x250 or 600x500", "actual": "300x250", "message": null }
},
"status": "pass" },
{ "key": "colorSpace", "expected": "sRGB, Greyscale", "actual": "CMYK", "message": "CMYK will shift colours on delivery — convert to sRGB.",
"text": {
"fr": { "rule": "Espace colorimétrique", "expected": "sRGB, Niveaux de gris", "actual": "CMYK", "message": "Image en CMYK. Ce format demande sRGB, Niveaux de gris. Convertissez-la en sRGB." },
"en": { "rule": "Colour space", "expected": "sRGB, Greyscale", "actual": "CMYK", "message": "Image in CMYK. This placement requires sRGB, Greyscale. Convert it to sRGB." }
},
"status": "fail", "accepted": false }
],
"fix": {
"required": true,
"doubtful": false,
"fr": [
"Espace colorimétrique : reçu CMYK, attendu sRGB, Niveaux de gris.",
"Poids : ≤ 150 Ko si possible (reçu 334 Ko)."
],
"en": [
"Colour space: received CMYK, expected sRGB, Greyscale.",
"File size: ≤ 150 KB if possible (received 334 KB)."
]
},
"antivirus": { "state": "clean", "threat": null, "reason": null, "signatures": "2026-11-11T09:27:01.000Z" },
"origin": "api",
"replaces": null,
"declaredPlatform": null,
"judgedAt": "2026-11-11T15:02:43.904Z",
"catalogue": { "version": "2026.11.10.1", "agencyVersion": 0 }
},
"reviewUrl": "https://validfile.ca/livraisons/0b6c2f4e-8d1a-4c7b-9f3e-5a2d1c8b7e60/revue"
}
textgives the rule’s name (rule), what it asks for (expected), what was measured (actual) and ValidFile’s sentence (message), written as the review writes them: “≤ 150 KB”, “Greyscale”. The fields of the same name on the check itself do not change.fixsays what to change, line by line: what your team writes to your client from the review, with “Message to the client”.required: falseis a remark: the file can go as it is.doubtful: true: do not ask for a new file yet. The refusal may come from a placement the campaign did not buy, or from the platform its name names while another takes it, and the file may be right; your team settles it in the review, atreviewUrl.fix: nulldoes not mean ready. There is no change to ask for: the file goes as it is, is not judged yet, or waits for your team to check it.readyis what says whether it goes.- An
infectedfile has nofixeither, and that one is to be asked for again: there is nothing to change in it, a clean version is what is needed. Its verdict says so, with the threat inantivirus.threat. - A file ValidFile cannot use at all, empty, cut short or of an unknown type, is refused with no check at all:
checksis empty, and its reason is infix. - Do not compare these sentences in a script: they may be reworded. A sentence ValidFile cannot say in French yet stays in English under
fr.
The verdict read is the one that holds
A file is judged again at every read, with the day’s specs: its verdict can change after a catalogue update, or when your team accepts a rule or chooses a placement in ValidFile. judgedAt and catalogue say what it was judged with. Read it again just before publishing.
- Reading measures nothing. A
pendingfile stays so until the measuring queue has measured it; reading every few seconds speeds nothing up. A script that cannot receive a webhook reads withwait=: the read waits for the verdict, up to 60 seconds, and answers as soon as it is there. unreadableis not always the last word. If ValidFile measures the file again, when its review is opened for instance, the next read gives the verdict found, andfile.judgedgoes out again.
Antivirus
Every file received is scanned by ValidFile’s antivirus, ClamAV, in Montréal. antivirus says where it stands, and a file is ready only once scanned. file.judged waits for the antivirus too.
cleanmeans “no known threat found”, with the signatures dated insignatures. Not “no virus”: an antivirus only recognises what it knows.unscannedis neverclean.reasonsays why nobody looked:too_large(past 2,047 MiB, the most the antivirus reads of one file),limits(an archive past what the antivirus opens),encrypted(password-protected),failed(the antivirus did not answer),before(received before the antivirus). The file can go out; yours to judge.infectednever goes out, and nobody can let it through in ValidFile.
What the API does not do
The API measures a video, its dimensions, duration, codecs and bit rate, but does not play it. If ValidFile’s review could not play it, it is held (unseen), by the API too; a video nobody opened was only measured. Watch it before you publish it.