Rechercher des inspections (par immatriculation ou transport_id)
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/inspections \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/inspections"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/inspections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/inspections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/inspections"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/inspections")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/inspections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"offer_id": "<string>",
"status": "pending",
"inspection_type": "one_way",
"source": "med",
"vehicle": {
"plate": "<string>",
"brand": "<string>",
"model": "<string>",
"vin": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"pdf": {
"depart": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
},
"arrivee": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
}
},
"phases": {
"depart": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
},
"arrivee": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
}
}
}
]
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "Provide at least ?plate= or ?transport_id=."
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Inspection
Rechercher des inspections (par immatriculation ou transport_id)
Renvoie les rapports d’inspection correspondant à une immatriculation
et/ou un transport_id, scopés au groupe de la clé. La réponse est
toujours un tableau (data: []), même pour un seul résultat — et vide
si aucune correspondance. Au moins un des deux filtres est requis.
- L’immatriculation est normalisée (casse et séparateurs ignorés) :
AB-123-CD,ab 123 cdetAB123CDciblent le même véhicule. - Chaque élément a la même structure que
GET /transports/{id}/inspection. - Les liens PDF sont des URLs signées fraîches (TTL 24h) ; les photos des liens Firebase tokenisés. Résultats limités à 200, triés par date de création décroissante.
GET
/
inspections
Rechercher des inspections (par immatriculation ou transport_id)
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/inspections \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/inspections"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/inspections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/inspections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/inspections"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/inspections")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/inspections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"offer_id": "<string>",
"status": "pending",
"inspection_type": "one_way",
"source": "med",
"vehicle": {
"plate": "<string>",
"brand": "<string>",
"model": "<string>",
"vin": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"pdf": {
"depart": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
},
"arrivee": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
}
},
"phases": {
"depart": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
},
"arrivee": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
}
}
}
]
}{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "Provide at least ?plate= or ?transport_id=."
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Autorisations
Clé API liée à un groupe (med_live_… en production, med_test_… en test).
Fournie en clair une seule fois à la création depuis le profil client.
Paramètres de requête
Immatriculation du véhicule (normalisée, casse et séparateurs ignorés). Alias de paramètre accepté — immatriculation.
Identifiant de mission (offer_id).
Restreint chaque inspection à une seule phase.
Options disponibles:
depart, arrivee Inclure le détail des champs (phases.*.fields). Défaut true.
Réponse
Tableau d'inspections (éventuellement vide).
Show child attributes
Show child attributes
