FleetTrained API

Connect driver training to your TMS, HR, onboarding or safety software. Add drivers, assign courses, send reminders, track status and pull certificates and signed acknowledgment forms, all from your own system.

The API is included with the Full Library plan. Create keys on the API page of your dashboard.

Authentication

Send your key in the Authorization header on every request. Keys start with ft_live_ and are shown once when you create them. Keep them on your server: a key can read and change all of your training records. If a key leaks, revoke it on the API page and create a new one.

curl https://fleettrained.com/api/v1/account \
  -H "Authorization: Bearer ft_live_xxxxxxxxxxxxxxxxxxxxxxxx"

Base URL: https://fleettrained.com/api/v1. Requests and responses are JSON (send Content-Type: application/json). Times are ISO-8601 in UTC, like 2026-11-17T15:00:00Z. Wherever you pass a time you can also use Unix seconds.

How a training works

assignedDriver got a link
→
passedWatched and passed the quiz, signature still due
→
completedSigned. Certificate and acknowledgment issued

An open assignment (assigned or passed) can be cancelled. The assignment id is the token in the driver's training link. The usual integration: add or sync drivers, assign courses when someone is hired or gets a violation, listen for assignment.completed, then store the certificate JPEG and acknowledgment PDF in the driver's file.

Errors

Errors use normal HTTP status codes and always have this shape:

{"error": {"code": "driver_not_found", "message": "No driver 99 on your roster."}}
400Something in the request is missing or invalid
401Missing, invalid or revoked API key
403plan_required: the company isn't on the Full Library plan (any more)
404Not found, or it belongs to another company
409Not possible in the current state, e.g. cancelling a completed training
429Rate limit, reminder too soon, or assignment cap. Wait for Retry-After seconds.

Limits & pagination

120 requests per minute per key. Up to 200 assignments per request, 400 per hour and 800 per day. Loading a big fleet for the first time? Email orders@fleettrained.com and we'll raise it.

List endpoints take limit (1 to 200, default 50) and offset, and return total and has_more.

Account

Your account

GET/api/v1/account
The company the key belongs to, its branding and your rate limits. Handy as a first call to check a key works.
Response
{
  "company": {"id": 36, "name": "Acme Freight LLC", "email": "safety@acme.com", "usdot": "1234567",
              "plan": "library", "brand": {"color": "#FF7A1A", "logo_url": "https://fleettrained.com/app/logo/36"}},
  "limits": {"requests_per_minute": 120, "assignments_per_hour": 400,
             "assignments_per_day": 800, "assignments_per_request": 200}
}

Training stats

GET/api/v1/stats
Fleet-wide numbers for a dashboard tile: open, overdue, awaiting signature, completed, completion rate and average score. An assignment is overdue when it's still open 7 days after it was assigned.
Response
{
  "drivers": 48,
  "assignments": {"total": 212, "open": 19, "awaiting_signature": 2, "overdue": 6, "completed": 193, "cancelled": 11},
  "completion_rate": 91.0,
  "completed_last_30_days": 37,
  "average_score_pct": 92.4
}

Courses

List courses

GET/api/v1/courses
Every video you can assign: the full FleetTrained library (in every language it exists in), plus your own ordered and uploaded videos. Use a course's id when assigning.
qSearch title or topic
languageVideo language, e.g. English, Russian
sourcefleettrained, own (videos you ordered) or upload
categorye.g. HOS Compliance
limit, offsetPaging (see Pagination)
Request
curl "https://fleettrained.com/api/v1/courses?q=brake&language=English" \
  -H "Authorization: Bearer $FT_KEY"
Response
{
  "courses": [
    {"id": "lib_brake-systems", "title": "Brake Systems", "topic": "brake-systems",
     "language": "English", "category": "Vehicle Maintenance", "source": "fleettrained"},
    {"id": "ord_23_4", "title": "Accident Scene", "topic": "accident-scene",
     "language": "English", "category": "Your videos", "source": "own"}
  ],
  "total": 2, "limit": 50, "offset": 0, "has_more": false
}

Get a course

GET/api/v1/courses/{course_id}
One course by id.

Quiz languages

GET/api/v1/languages
Languages a quiz can be given in. Any course can be quizzed in any of these, whatever language the video is in.
Response
{"quiz_languages": ["English", "Russian", "Ukrainian", "Spanish", "Polish", "Punjabi", "..."]}

Drivers

List drivers

GET/api/v1/drivers
Your roster with each driver's training counts. Filter with q (name or email) or email (exact).
Request
curl https://fleettrained.com/api/v1/drivers -H "Authorization: Bearer $FT_KEY"
Response
{
  "drivers": [ {
    "id": 412,
    "name": "Ivan Petrenko",
    "email": "ivan@example.com",
    "created_at": "2026-10-02T16:20:00Z",
    "last_assigned_at": "2026-11-10T14:02:11Z",
    "training": {"assigned": 6, "completed": 5, "awaiting_signature": 0, "open": 1, "overdue": 0}
  } ],
  "total": 48, "limit": 50, "offset": 0, "has_more": false
}

Add a driver

POST/api/v1/drivers
Adds a driver to your roster. Nothing is sent to the driver. If the same person is already on the roster (same email, or same name in any word order), you get that driver back with "created": false instead of a duplicate, so it's safe to call on every sync. Returns 201 when created, 200 when it already existed.
Request
curl -X POST https://fleettrained.com/api/v1/drivers \
  -H "Authorization: Bearer $FT_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Ivan Petrenko", "email": "ivan@example.com"}'
Response
{"id": 412, "name": "Ivan Petrenko", "email": "ivan@example.com",
 "created_at": "2026-11-17T15:00:00Z", "last_assigned_at": null, "created": true}

Get a driver

GET/api/v1/drivers/{driver_id}
One driver with their training counts.
Response
{
  "id": 412,
  "name": "Ivan Petrenko",
  "email": "ivan@example.com",
  "created_at": "2026-10-02T16:20:00Z",
  "last_assigned_at": "2026-11-10T14:02:11Z",
  "training": {"assigned": 6, "completed": 5, "awaiting_signature": 0, "open": 1, "overdue": 0}
}

Update a driver

PATCH/api/v1/drivers/{driver_id}
Change name and/or email. A new email is also applied to the driver's open assignments, so reminders reach the new address.
Request
curl -X PATCH https://fleettrained.com/api/v1/drivers/412 \
  -H "Authorization: Bearer $FT_KEY" -H "Content-Type: application/json" \
  -d '{"email": "ivan.p@newmail.com"}'

Remove a driver

DELETE/api/v1/drivers/{driver_id}
Removes the driver from your roster. Their completed trainings and certificates are always kept. Add ?cancel_open=true to also cancel their unfinished assignments (for a driver who left), which stops those training links from working.
Request
curl -X DELETE "https://fleettrained.com/api/v1/drivers/412?cancel_open=true" \
  -H "Authorization: Bearer $FT_KEY"
Response
{"deleted": true, "id": 412, "cancelled_assignments": 1, "note": "Training records and certificates are kept."}

A driver's assignments

GET/api/v1/drivers/{driver_id}/assignments
Every assignment for one driver, newest first.

Assignments

Assign training

POST/api/v1/assignments
Assign one or more courses to one or more drivers in one call. One assignment is made per driver per course (at most 200 per request). Each driver gets one email with their link(s) unless you send "notify": false.
course_id or course_idsCourse id(s) from List courses. Required.
driver_id, driver or driversA roster id, a {"name", "email"} object (added to your roster automatically), or a list mixing both: [{"id": 412}, {"name": "Ana Ruiz", "email": "ana@x.com"}]
quiz_languageOptional. Defaults to the video's language.
notifyOptional, default true: email the driver their link. With false, send the training_url yourself (SMS, your app...).
external_idOptional, your own id. Sending the same external_id again returns the original assignments instead of creating new ones, so retries are safe.
If a driver already has the same course open, that assignment is returned with "already_open": true rather than a duplicate. Returns 201 if anything was created.
Request
curl -X POST https://fleettrained.com/api/v1/assignments \
  -H "Authorization: Bearer $FT_KEY" -H "Content-Type: application/json" \
  -d '{
    "drivers": [{"id": 412}, {"name": "Ana Ruiz", "email": "ana@example.com"}],
    "course_ids": ["lib_hos", "lib_pretrip-dvir"],
    "quiz_language": "Spanish",
    "external_id": "onboarding-2026-11-17"
  }'
Response
{
  "assignments": [ { ...assignment, "already_open": false }, ... ],
  "created": 4
}

List assignments

GET/api/v1/assignments
All assignments, newest first. Filters:
statusassigned, passed, completed, cancelled, or the shortcuts open (assigned + passed) and overdue
driver_id / driver_emailOne driver
course_idOne course
external_idAssignments you created with that id
created_sinceISO-8601 or Unix time
updated_sinceAnything created, passed, completed or cancelled since then. Best for syncing.
Request
curl "https://fleettrained.com/api/v1/assignments?status=completed&updated_since=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer $FT_KEY"

Get an assignment

GET/api/v1/assignments/{assignment_id}
One assignment with its status, score and, once completed, certificate and acknowledgment links.
Response
{
  "id": "q3Xk9w...",
  "status": "completed",
  "type": "training",
  "driver": {"id": 412, "name": "Ivan Petrenko", "email": "ivan@example.com"},
  "course": {"id": "lib_hos", "title": "Hours of Service", "topic": "hos", "language": "English"},
  "quiz_language": "Ukrainian",
  "score": 9, "total": 10,
  "training_url": "https://fleettrained.com/t/q3Xk9w...",
  "external_id": "tms-7781",
  "created_at": "2026-11-10T14:02:11Z",
  "passed_at": "2026-11-11T09:40:03Z",
  "completed_at": "2026-11-11T09:41:27Z",
  "cancelled_at": null,
  "last_reminded_at": null,
  "overdue": false,
  "certificate": {
    "reference": "FT-Q3XK9W..",
    "view_url": "https://fleettrained.com/t/q3Xk9w.../cert",
    "image_url": "https://fleettrained.com/api/v1/assignments/q3Xk9w.../certificate.jpg",
    "verify_url": "https://fleettrained.com/verify"
  },
  "acknowledgment": {
    "reference": "FT-Q3XK9W..",
    "view_url": "https://fleettrained.com/t/q3Xk9w.../acknowledgment",
    "pdf_url": "https://fleettrained.com/api/v1/assignments/q3Xk9w.../acknowledgment.pdf"
  }
}

Send a reminder

POST/api/v1/assignments/{assignment_id}/remind
Emails the driver a reminder. If they already passed the quiz and only the signature is missing, the email asks them to sign. One reminder per assignment per hour (429 with Retry-After otherwise). FleetTrained also nudges drivers who passed but never signed, automatically after 2 and 7 days.
Request
curl -X POST https://fleettrained.com/api/v1/assignments/q3Xk9w.../remind -H "Authorization: Bearer $FT_KEY"
Response
{"sent": true, "to": "ivan@example.com", "reminded_at": "2026-11-17T15:10:00Z"}

Cancel an assignment

POST/api/v1/assignments/{assignment_id}/cancel
Cancels an unfinished assignment. The driver's link stops working. Completed trainings can't be cancelled (409): a certificate is a permanent record. Cancelling twice is harmless.

Certificates & forms

List certificates

GET/api/v1/certificates
Completed trainings, newest completion first. Filter with since (ISO-8601 or Unix) and driver_id.

Certificate details

GET/api/v1/assignments/{assignment_id}/certificate
Reference number and links for a completed training. 409 if the driver hasn't finished yet.
Response
{"reference": "FT-Q3XK9W..", "view_url": "https://fleettrained.com/t/q3Xk9w.../cert",
 "image_url": "https://fleettrained.com/api/v1/assignments/q3Xk9w.../certificate.jpg",
 "verify_url": "https://fleettrained.com/verify"}

Download certificate (JPEG)

GET/api/v1/assignments/{assignment_id}/certificate.jpg
The branded certificate as a high-resolution JPEG, the same image as the certificate page's download button. Add ?download=1 to get it as a file attachment. The first request can take a few seconds; later ones are instant.
Request
curl -o certificate.jpg https://fleettrained.com/api/v1/assignments/q3Xk9w.../certificate.jpg \
  -H "Authorization: Bearer $FT_KEY"

Acknowledgment details

GET/api/v1/assignments/{assignment_id}/acknowledgment
Links to the driver's signed training acknowledgment form.

Download acknowledgment (PDF)

GET/api/v1/assignments/{assignment_id}/acknowledgment.pdf
The signed acknowledgment form as an A4 PDF, ready for the driver qualification file. ?download=1 makes it an attachment.
Request
curl -o acknowledgment.pdf https://fleettrained.com/api/v1/assignments/q3Xk9w.../acknowledgment.pdf \
  -H "Authorization: Bearer $FT_KEY"

Webhook

Get webhook settings

GET/api/v1/webhook
Your webhook URL, events and signing secret.
Response
{"url": "https://acme.com/hooks/fleettrained", "events": ["assignment.passed", "assignment.completed"],
 "secret": "whsec_...", "last_status": "200", "last_delivery_at": "2026-11-17T15:12:40Z"}

Set webhook

PUT/api/v1/webhook
Sets the URL (public https:// only) and optionally which events to send (all by default). A signing secret is created the first time. You can also do this on the API page of your dashboard.
Request
curl -X PUT https://fleettrained.com/api/v1/webhook \
  -H "Authorization: Bearer $FT_KEY" -H "Content-Type: application/json" \
  -d '{"url": "https://acme.com/hooks/fleettrained", "events": ["assignment.completed"]}'

Remove webhook

DELETE/api/v1/webhook
Stops all webhook deliveries.

Send a test event

POST/api/v1/webhook/test
Sends a ping event right away and tells you what your endpoint answered.
Response
{"delivered": true, "response_status": "200"}

Receiving webhooks

When an assignment changes we POST JSON to your URL. Events: assignment.created, assignment.passed, assignment.completed, assignment.cancelled (plus ping from a test). data is the full assignment object, so you rarely need a follow-up call. Events fire for assignments made in the dashboard too, not just through the API.

POST /hooks/fleettrained
FT-Event: assignment.completed
FT-Delivery: evt_8c1f0a...
FT-Signature: t=1763392887,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

{"id": "evt_8c1f0a...", "type": "assignment.completed", "created_at": "2026-11-17T15:21:27Z", "data": { ...assignment } }

Verify the signature before trusting a request: compute HMAC-SHA256 of {t}.{raw body} with your signing secret and compare it with v1. Reject it if t is more than 5 minutes old.

# Python
import hmac, hashlib, time
def verify(secret, header, raw_body):
    parts = dict(p.split("=", 1) for p in header.split(","))
    expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"]) and abs(time.time() - int(parts["t"])) < 300
// Node.js
const crypto = require("crypto");
function verify(secret, header, rawBody) {
  const p = Object.fromEntries(header.split(",").map(s => s.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${p.t}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(p.v1)) && Math.abs(Date.now() / 1000 - p.t) < 300;
}

Answer with any 2xx within 15 seconds. If you don't, we retry for about 9 hours (10 s, 1 min, 5 min, 30 min, 1 h, 2 h, 6 h). The same event keeps its FT-Delivery id on every retry, so use it to ignore duplicates.

Objects

Assignment

status is assigned, passed, completed or cancelled. type is training, or watch_only for the ELP prep video (no quiz or certificate). certificate and acknowledgment are null until the training is completed.

{
  "id": "q3Xk9w...",
  "status": "completed",
  "type": "training",
  "driver": {"id": 412, "name": "Ivan Petrenko", "email": "ivan@example.com"},
  "course": {"id": "lib_hos", "title": "Hours of Service", "topic": "hos", "language": "English"},
  "quiz_language": "Ukrainian",
  "score": 9, "total": 10,
  "training_url": "https://fleettrained.com/t/q3Xk9w...",
  "external_id": "tms-7781",
  "created_at": "2026-11-10T14:02:11Z",
  "passed_at": "2026-11-11T09:40:03Z",
  "completed_at": "2026-11-11T09:41:27Z",
  "cancelled_at": null,
  "last_reminded_at": null,
  "overdue": false,
  "certificate": {
    "reference": "FT-Q3XK9W..",
    "view_url": "https://fleettrained.com/t/q3Xk9w.../cert",
    "image_url": "https://fleettrained.com/api/v1/assignments/q3Xk9w.../certificate.jpg",
    "verify_url": "https://fleettrained.com/verify"
  },
  "acknowledgment": {
    "reference": "FT-Q3XK9W..",
    "view_url": "https://fleettrained.com/t/q3Xk9w.../acknowledgment",
    "pdf_url": "https://fleettrained.com/api/v1/assignments/q3Xk9w.../acknowledgment.pdf"
  }
}

Driver

training is included when you get or list drivers.

{
  "id": 412,
  "name": "Ivan Petrenko",
  "email": "ivan@example.com",
  "created_at": "2026-10-02T16:20:00Z",
  "last_assigned_at": "2026-11-10T14:02:11Z",
  "training": {"assigned": 6, "completed": 5, "awaiting_signature": 0, "open": 1, "overdue": 0}
}

Questions or need an endpoint we don't have yet? Email orders@fleettrained.com.