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>'
{
  "data": [
    {
      "id": "<string>",
      "offer_id": "<string>",
      "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>",
              "damage_type": "<string>",
              "positions": [
                {
                  "x": 123,
                  "y": 123,
                  "type": "<string>"
                }
              ]
            }
          ],
          "fields": [
            {
              "id": "<string>",
              "label": "<string>",
              "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>",
              "damage_type": "<string>",
              "positions": [
                {
                  "x": 123,
                  "y": 123,
                  "type": "<string>"
                }
              ]
            }
          ],
          "fields": [
            {
              "id": "<string>",
              "label": "<string>",
              "value": "<string>"
            }
          ]
        }
      }
    }
  ]
}

Autorisations

X-Api-Key
string
header
requis

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

plate
string

Immatriculation du véhicule (normalisée, casse et séparateurs ignorés). Alias de paramètre accepté — immatriculation.

transport_id
string

Identifiant de mission (offer_id).

phase
enum<string>

Restreint chaque inspection à une seule phase.

Options disponibles:
depart,
arrivee
include_form
boolean
défaut:true

Inclure le détail des champs (phases.*.fields). Défaut true.

Réponse

Tableau d'inspections (éventuellement vide).

data
object[]
requis