Eine einzelne Farbe nach ihrer color_id aus /api/colors. 0 ist default, die Originallackierung. Unbekannte oder inaktive ID → 404; eine Farbe, die Ihr Plan nicht erlaubt → 403.
Pfadparameter Name Typ Beschreibung color_id erforderlich Ganzzahl Die eindeutige ID der Farbe.
Anfragen
curl "https://api.vehicleimagery.com/api/colors/color_id" \
-H "x-api-key: YOUR_API_KEY" 200 · Die Farbe.
{
"color_id": 1544,
"color_name": "Fern Green Metallic",
"color_make": "BMW"
} 401 · Fehlender oder ungültiger `x-api-key`.
{
"error": "Invalid API key"
} 403 · Planbeschränkung (Funktion, Format oder Marke nicht erlaubt) oder blockierter Anfrage.
{
"error": "Mirroring is not allowed by your plan."
} 404 · Keine Daten für den angeforderten Pfad.
{
"error": "Brand 'Xyz' not found — check /api/brands for valid brands."
}