---
title: "Run a route simulation"
method: POST
path: "/vessels/simulations"
tags: ["vessels"]
---

# Run a route simulation

`POST /vessels/simulations`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/vessels/simulations`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- object
  - `vesselId` integer, required
  - `origin` string, required
  - `destination` string, required
  - `departureAt` string, date-time
  - `speedKnots` number

## Response `201`

Simulation created

- VesselSimulation
  - `id` integer, required
  - `vesselId` integer, required
  - `origin` string, required
  - `destination` string, required
  - `departureAt` string, date-time, nullable
  - `estimatedArrivalAt` string, date-time, nullable
  - `distanceNm` number, nullable
  - `fuelEstimateMT` number, nullable
  - `status` 'pending' | 'running' | 'completed' | 'failed', required
  - `result` object, nullable
  - `createdAt` string, date-time, required

## Other responses

- `401`: Unauthorized

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/vessels/simulations/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
