POST /v1/integration-importRequête
{
"external_job_id": "BATCH-001",
"title": "Morning Deliveries",
"driver_email": "driver@example.com",
"stops": [
{
"external_stop_id": "STOP-1",
"address": "1 George St, Brisbane QLD 4000",
"label": "Customer A",
"parcel_count": 2
}
]
}Réponse
{
"job_id": "e7ad097b-...",
"optimization": {
"total_distance_km": 12.4,
"total_duration_minutes": 25
},
"stops": [ /* optimized order */ ],
"warnings": [...]
}Obtenir les identifiants
Générez votre identifiant et votre secret client depuis les réglages du tableau de bord RouteMate.
Demander un jeton
Échangez vos identifiants contre un jeton bearer valable une heure.
Appeler l'API
Ajoutez le jeton dans l'en-tête Authorization des requêtes suivantes.
Flux d'identifiants client
L'API RouteMate utilise OAuth2 avec identifiants client. Échangez votre identifiant et votre secret contre un jeton temporaire.
01
Obtenir les identifiants
Générez votre identifiant et votre secret client depuis les réglages du tableau de bord RouteMate.
02
Demander un jeton
Échangez vos identifiants contre un jeton bearer valable une heure.
03
Appeler l'API
Ajoutez le jeton dans l'en-tête Authorization des requêtes suivantes.
Core API Endpoints
These endpoints cover the most common delivery workflow integration tasks.
/v1/integration-tokenGet Access Token
Exchange client credentials for a short-lived access token valid for 1 hour.
Request
{
"client_id": "rm_ci_your_client_id",
"client_secret": "rm_cs_your_client_secret"
}Response
{
"access_token": "rm_at_e5988dd1b91a...",
"token_type": "Bearer",
"expires_in": 3600
}/v1/integration-importImport Job & Optimize Route
Import a job with stops, geocode addresses, optimize the route, and assign the driver.
Request
{
"external_job_id": "BATCH-001",
"title": "Morning Deliveries",
"driver_email": "driver@example.com",
"stops": [
{
"external_stop_id": "STOP-1",
"address": "1 George St, Brisbane QLD 4000",
"label": "Customer A",
"parcel_count": 2
}
]
}Response
{
"job_id": "e7ad097b-...",
"optimization": {
"total_distance_km": 12.4,
"total_duration_minutes": 25
},
"stops": [ /* optimized order */ ],
"warnings": [...]
}/v1/integration-jobsQuery Job Status
Check job and stop status, including delivery progress and counts.
Request
// GET requestResponse
{
"job_id": "e7ad097b-...",
"status": "assigned",
"stop_count": 3,
"status_counts": {
"pending": 2,
"completed": 1
},
"stops": [...]
}Get started in minutes
Use the examples below to authenticate, import jobs, and check delivery status.
curl -X POST https://api.routemate.app/v1/integration-token \
-H "Content-Type: application/json" \
-d '{"client_id":"rm_ci_your_client_id","client_secret":"rm_cs_your_client_secret"}'const tokenRes = await fetch("https://api.routemate.app/v1/integration-token", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
client_id: "rm_ci_your_client_id",
client_secret: "rm_cs_your_client_secret",
}),
});import requests
token_res = requests.post(
"https://api.routemate.app/v1/integration-token",
json={
"client_id": "rm_ci_your_client_id",
"client_secret": "rm_cs_your_client_secret",
},
)Production-ready from day one
Designed for reliable delivery workflows, retries, and downstream operations.