Veriframe

Conversion API

Create a job, point it at your export, poll until it is ready, download standard MP4. Four calls, one credential, no SDK. The same pipeline the browser uses.

You will need a key, and you can make one yourself. Sign in and go to API keys: create one, label it, and revoke any key instantly — including a leaked one — without asking us or waiting on anybody. No request, no approval, nothing to arrange. All requests carry the key as Authorization: Bearer vfk_… over HTTPS. Base URL https://veriframe.co.uk.

New to it? The API guide walks through a complete integration, with a working program, before you need any of the detail below.

1. Create a job

curl -X POST https://veriframe.co.uk/job \
  -H "Authorization: Bearer $VERIFRAME_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "claim 4471", "ttl_hours": 48}'

label is your own reference, shown in your account and on the job page. ttl_hours is optional; it defaults to your account's retention period and is clamped server-side to the maximum, so a mistyped value cannot retain footage longer than we promise. Responds 201:

{"job_token": "…", "url": "https://veriframe.co.uk/job/<token>",
 "ref": "a1b2c3d4", "expires_after_hours": 48}

The job token is a bearer secret and is returned once. It is the credential for every call below and for the job page you can give to whoever needs to watch the footage — they need no account and nothing installed. We store only a hash of it, so if you lose it we cannot recover it; ref is the safe identifier to log and quote to us.

2. Give it the footage

Either hand us a link and we will fetch it:

curl -X POST https://veriframe.co.uk/job/$TOKEN/source \
  -H "Content-Type: application/json" \
  -d '{"source_url": "https://your-storage.example/export.zip"}'

…or upload the bytes yourself, in chunks, at declared offsets:

# each chunk: PUT with its offset. The FIRST chunk fixes the filename.
curl -X PUT https://veriframe.co.uk/job/$TOKEN/upload \
  -H "X-Upload-Offset: 0" -H "X-Upload-Name: export.zip" \
  --data-binary @chunk-000

# when every chunk is in, declare the total so we can refuse a gap
curl -X POST https://veriframe.co.uk/job/$TOKEN/upload/done \
  -H "Content-Type: application/json" -d '{"total": 5368709120}'

Chunks may be sent in any order and in parallel, and a failed chunk can simply be resent — the offset is what places it, not the arrival order. upload/done compares what we hold against the total you declare and returns 409 with the byte ranges received if anything is missing, rather than converting a truncated recording. GET /job/$TOKEN/upload/status tells you what has arrived, which is what makes a resumed upload cheap. Read its received as the offset to resume from rather than a count of bytes held: it is the contiguous run from zero, so while a parallel upload has gaps behind it received deliberately sits still and ranges is the field that shows everything we hold.

3. Poll until it is ready

curl https://veriframe.co.uk/job/$TOKEN/status
{"ref": "a1b2c3d4", "state": "converting", "cameras": 16, "bytes_in": 4617089024,
 "bytes_out": 0, "error": null, "ready_at": null,
 "expires_at": 1793058000.0, "downloadable": false,
 "progress": ["demux: 3,210 file(s) -> 16 camera(s)", "…"]}

state moves through received, fetching or uploading, queued, converting, then ready — or failed, with the reason in error. progress is the same human-readable log the job page shows. Poll status rather than the job URL; it is cheap and it is in a rate-limit bucket sized for it.

4. Collect the result

# the zip is packed on first request. 202 means "not yet" -- poll, then ask again.
curl -OJ -w '%{http_code}
' https://veriframe.co.uk/job/$TOKEN/download   # zip: MP4s + player.html
curl https://veriframe.co.uk/job/$TOKEN/download/status                  # {"ready": true, ...}
curl -O https://veriframe.co.uk/job/$TOKEN/certificate                   # the conversion certificate
curl -X POST -H "Accept: application/json"      https://veriframe.co.uk/job/$TOKEN/delete                           # delete now, rather than waiting

Check the status code on the download. The zip is built in the background the first time it is asked for, because packing twenty cameras is not something to do while a connection waits. Until it exists the download answers 202 — with JSON if you asked for JSON — and download/status reports the progress. A client that writes the body of a 202 to disk will save a page, not a recording. Every call below and above honours Accept: application/json; without it the job endpoints answer a browser, since the same URLs are the ones you can hand to someone who has no account.

One MP4 per camera, plus a single self-contained player.html that puts every camera on one timeline with the recorder's clock over the picture and, where the recording carried them, the GPS track and vehicle inputs. The certificate records a digest of the coded picture data before and after conversion; because conversion is a container change rather than a re-encode the two match, and the verification method is published so anyone can repeat it with ffmpeg.

Downloading brings deletion forward. Everything is deleted automatically when the retention period ends whether you collected it or not, and the deletion is logged.

5. Or send it straight to a storage folder

If whoever needs the footage has given you an upload link — a Box or Dropbox “File Request” — we can put every camera, the player and the certificate directly into that folder, so nothing is downloaded and uploaded again.

curl -X POST https://veriframe.co.uk/job/$TOKEN/send   -H "Content-Type: application/json"   -d '{"link": "https://app.box.com/f/…", "accept_terms": true}'

The answer is 202 with the job's status. Progress is in the push field of /status: {"state": "sending", "sent": 1073741824, "total": 3919000000}, ending in sent or failed with a note saying what happened. Every file is checked against our checksum as it arrives. A completed send counts as collecting the job, so deletion is brought forward exactly as after a download. We do not store the link. A job holding several recordings in separate folders cannot be sent this way (409); download the zip instead.

6. Be told, instead of polling

Give a callback_url when you create the job and we will POST to it when the job changes, so your system does not have to ask.

curl -X POST https://veriframe.co.uk/job   -H "Authorization: Bearer $VERIFRAME_KEY"   -H "Content-Type: application/json"   -d '{"label": "claim 4471", "callback_url": "https://your-system.example/veriframe"}'

The response gains a callback_secret (whsec_…), returned once like the job token. Each event is a small JSON body:

{"event": "job.ready", "ref": "a1b2c3d4", "label": "claim 4471", "state": "ready",
 "cameras": 16, "bytes_out": 3919000000, "error": null, "at": 1793058000}
EventWhen
job.readyConversion finished; the result can be collected.
job.failedConversion did not complete. error says why; nothing was charged.
job.sentA send to a storage folder finished and every file was verified.
job.send_failedA send did not complete. The job is unchanged; /status has the reason.
job.deletedThe footage has been deleted, on the timer or at your request.

Verify the signature before you act on an event. Each request carries X-Veriframe-Timestamp and X-Veriframe-Signature, which is sha256= followed by the HMAC-SHA256, keyed with your callback_secret, of the timestamp, a full stop, and the raw body:

import hashlib, hmac
expected = "sha256=" + hmac.new(secret.encode(),
    timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
ok = hmac.compare_digest(expected, signature_header)

7. List your jobs and check your balance

Two read-only calls, both with your API key.

curl -H "Authorization: Bearer $VERIFRAME_KEY" "https://veriframe.co.uk/jobs?limit=50"
{"jobs": [{"ref": "a1b2c3d4", "label": "claim 4471", "state": "ready",
   "created": 1793050000.0, "ready_at": 1793050400.0, "collected_at": null,
   "expires_at": 1793136800.0, "deleted_at": null, "cameras": 16,
   "bytes_in": 4617089024, "bytes_out": 3919000000, "error": null, "push": null}],
 "next_before": null}

Newest first. limit is up to 200. Narrow it with state=failed or with label= and your own reference. When next_before is not null there are more: pass it back as before= for the next page. A job whose footage has been deleted has the state purged and a deleted_at time. The list is for reconciling your records against ours. It cannot open a job: the job token is returned once, at creation, and we keep only a hash of it, so a key that leaks exposes references and labels and no footage.

curl -H "Authorization: Bearer $VERIFRAME_KEY" https://veriframe.co.uk/account
{"organisation": "Example Ltd", "balance_mb": 26624, "balance": "26 GB",
 "unlimited": false, "can_start_job": true, "retention_hours": 24}

The balance is data: balance_mb in megabytes (1 GB = 1024), and balance the same figure written for a person. Each job uses its upload's size, rounded up to the next 10 MB. can_start_job is the same test POST /job applies, so check it before a batch and top up in your account if it is false.

Errors, and what they mean

CodeMeaning
202Asked for the download before the zip was packed. Nothing is wrong; poll download/status and ask again.
401No key, an unknown or revoked key, or a suspended account. Deliberately the same response for all four — which it is is not something an unauthenticated caller should be able to learn.
402The data balance is empty. Refused at creation rather than after you have uploaded several gigabytes.
409The job has already been started, or an upload is incomplete. The body says which, and for an incomplete upload it lists the byte ranges we hold.
429Rate limited, or this job link has been retried too many times. Respect Retry-After.
503Admission control refused the job — the service is at capacity or low on disk. Retry later; nothing was charged.

Things worth knowing before you build against it

Not sure whether yours will convert? Send us one export that has given you trouble. We will tell you whether it converts, usually the same day, and there is no charge for finding out.

Try it — first 1 GB free   or email enquiries@veriframe.co.uk

Questions

Does Veriframe have an API?

Yes. A key-authenticated HTTP API: create a job, give it a source link or upload to it, poll until it is ready, then download the MP4s, the player and the certificate. It is the same pipeline the web interface uses, so there is no second-class path.

How do I get an API key?

You make it yourself, on the API keys page of your account — no request, no approval and no waiting on us. Label it, see when each key was last used, hold several at once, and revoke any of them on the spot. A key gives a pipeline nothing a signed-in person does not already have: the same balance check before anything uploads, the same admission control, the same retention period, the same suspension if the account is stopped. It is the same account without a browser, so there is nothing for us to vet that we did not vet when you opened the account. Creating or revoking a key emails the account's superusers, naming the key and who did it, so a key cannot appear or disappear quietly — including when we issue one for you. If you would rather we issued it, or you cannot get into the portal, email enquiries@veriframe.co.uk and we will.

How is the key presented?

Authorization: Bearer vfk_... and only that. We do not accept it in an X-Api-Key header or in a query string, deliberately: proxies, CDNs and logging libraries redact Authorization by default and do not redact a header somebody invented. Our own access log was measured doing exactly that before this route opened.

What happens if a key leaks?

You revoke it yourself, from your own account, and it stops working immediately. Sign in and go to API keys: every key on the account is listed with when it was last used, and any member can revoke any of them on the spot. You do not have to tell us first and you are not waiting on us — an exposed credential is measured in minutes, and a support queue is not an answer to it. Do it in this order: issue the replacement first, deploy it, confirm a call works, then revoke the old key. Keys are independent, so nothing of yours stops working while you fix it; revoking first takes your own pipeline down until the new key is in place. A superuser or manager can issue the replacement from the same page. We store only a hash of each key, so a copy of our database yields no working credential — which is also why we can never show you a key again after it is issued. Every creation and revocation is emailed to your superusers and written to our operator log with who did it, so there is a record of the whole episode without anyone having to ask us for it.

Can we rotate keys on a schedule, without asking you?

Yes, from the API keys page on your account — that is the same mechanism as the breach case and we would rather you used it routinely. You can hold several live keys at once (ten), so a rotation is: issue, deploy, verify, revoke the old one, with no window where nothing works. Each key carries a label and a last-used time, so a key nothing has touched for a month is visible as such before you remove it. Every key on the account is yours to create and revoke, the first one included.

Are API jobs billed differently?

No. A job created by API belongs to your organisation and uses its data at the same rate as one started in the browser, and it takes your account's retention period rather than the default. Pricing is on the pricing page.

Does the API let me skip anything the web interface enforces?

No, and that is by design. Admission control, the balance check, the retention clamp and automatic deletion all apply identically. If the API could bypass them it would be the way round our own retention promise.