POST /v1/routes/by-port orPOST /v1/routes/by-unlocode.route_id. Store it: you pass it toPOST /v1/voyages to optimise the route for a vessel and departure time.route_points must not be empty.latitude (-90 to 90) and longitude (-180 to 180).type is soft (the default) or hard.tag, if present, must be a GUID.leg.type is Loxodrome (rhumb line) or Orthodrome (great circle). It is allowed only when verifiedtrue.create-routecurl --location 'https://route-api.polestar-production.com/v1/routes' \
--header 'Content-Type: application/json' \
--data '{
"description": "Rotterdam to Singapore via Suez",
"verified": true,
"route_points": [
{
"position": 0,
"latitude": 51.95,
"longitude": 4.14,
"type": "hard",
"leg": {
"type": "Loxodrome"
}
},
{
"position": 1,
"latitude": 36,
"longitude": -5.6,
"type": "soft",
"leg": {
"type": "Orthodrome"
}
},
{
"position": 2,
"latitude": 1.26,
"longitude": 103.84,
"type": "hard"
}
]
}'{
"meta": {
"request_id": "2f6b1c7e-9a3d-4e58-b1f2-6c7d8e9f0a1b",
"request_timestamp": "2026-11-05T10:15:30.1234567Z"
},
"data": {
"route_id": "9e8d7c6b-5a49-4382-a1b0-c9d8e7f6a5b4",
"description": "Rotterdam to Singapore via Suez",
"verified": true,
"tag": null,
"route_points": [
{
"latitude": 51.95,
"longitude": 4.14,
"position": 0,
"leg": {
"type": "Loxodrome"
},
"tag": null,
"port_codes": null,
"type": "hard"
},
{
"latitude": 36,
"longitude": -5.6,
"position": 1,
"leg": {
"type": "Orthodrome"
},
"tag": null,
"port_codes": null,
"type": "soft"
},
{
"latitude": 1.26,
"longitude": 103.84,
"position": 2,
"leg": null,
"tag": null,
"port_codes": null,
"type": "hard"
}
]
}
}