Sandbox

Testez l'API gratuitement avec des clés otg_test_…. Aucun achat, jamais débité.

Limites

ParamTypeDescription
Arrêts par appeloptional≤ 10Limite dure — 400 sandbox_limit au-delà.
Appels par minuteoptional≤ 20429 avec Retry-After si dépassé.
Stops par jouroptional≤ 200Jour calendaire Paris. 429 si dépassé.
Lieuxoptionallat/lng seulementPas d'adresses texte — géocodage désactivé en sandbox.
MoteuroptionalVROOMPeut différer légèrement de la production (pas de repli Google).

Exemple

curl https://app.otiggo.com/api/v1/optimize \
  -H "Authorization: Bearer otg_test_..." \
  -H "Content-Type: application/json" \
  -d '{
  "start": { "latitude": 48.8566, "longitude": 2.3522 },
  "end": { "latitude": 48.8566, "longitude": 2.3522 },
  "stops": [
    { "id": "A", "latitude": 48.87, "longitude": 2.30 },
    { "id": "B", "latitude": 48.86, "longitude": 2.33 }
  ]
}'
200
{
  "order": ["B", "A"],
  "waypoints": [
    { "id": "B", "order": 1, "latitude": 48.86, "longitude": 2.33 },
    { "id": "A", "order": 2, "latitude": 48.87, "longitude": 2.30 }
  ],
  "totalDistanceKm": 6.1,
  "estimatedTimeMin": 32,
  "schedule": [
    { "colisId": "B", "arrivee": "2026-10-20T05:40:00Z" },
    { "colisId": "A", "arrivee": "2026-10-20T05:52:00Z" }
  ],
  "departAt": "2026-10-20T05:30:00Z",
  "returnAt": "2026-10-20T06:02:00Z",
  "lateStops": null,
  "stopsCharged": 0,
  "sandbox": true,
  "sandboxStopsRemainingToday": 198
}

Erreurs spécifiques sandbox

  • 400 sandbox_limit — trop d'arrêts dans un appel
  • 400 sandbox_addresses_unsupported — adresse au lieu de coordonnées
  • 429 sandbox_rate_limited — plafond minute ou jour atteint
  • 503 sandbox_unavailable — moteur momentanément indisponible