Gangway AISGangway AISby Motto Marine International
DOCS · API v1
CoverageHomeSign inGet API key
Get started

Errors

Errors use standard HTTP status codes and a JSON body that says what went wrong and how to fix it. Errors never cost credits.

StatusWhen
400A parameter is missing or out of range. The body names it.
401No key, or the key is not valid or has been revoked. With no key at all the answer is one line: {"error": "A key is needed. Get one at https://gangwayais.com/account/"}
402No credits left in this period, or paid_plan_required: a full report or a CSV or GPX export asked for on the free API allowance (for a report the body gives the address of its free preview).
404No such vessel, port or route.
422The request is valid but cannot be answered here (for example a route beyond 85° latitude).
429Too many requests. Wait for Retry-After seconds.
503A source or the route planner is busy. Retry with backoff.
{
  "status": 401,
  "error": "unauthorized",
  "detail": "this API key is not valid",
  "param": null
}