Quickstart
This guide signs in with an email account and lists the containers visible to that account. It uses curl, but any HTTP client works.
Every endpoint lives under the /v1 prefix, for example https://api.cargovision.app/v1/containers. The health probes /health and /ready are the only unversioned routes.
Get an account
Accounts are invite-only. Ask a Cargovision administrator for an invite, accept it, and set a password. Google sign-in is also available through the web dashboard.
Sign in
Send your credentials to the login endpoint and keep the returned session cookie.
A successful login returns 200 with your email and role, and sets an HttpOnly token cookie that holds your JWT:
List your containers
Send the cookie back on the next request:
The response uses the standard { success, data } envelope:
Use a bearer token in scripts
Server-side scripts can send the same JWT as a bearer token instead of a cookie. Read the token value from cookies.txt and pass it in the Authorization header:
Bearer requests skip the browser-origin check that applies to cookie-authenticated writes. See Authentication.
