# Techvia Docs (full text)
> Every page of https://techvia.software/docs in one file.
# Techvia Docs
> Documentation for Techvia products. Start with the Techvia TMS API, the MCP server for AI assistants, and step-by-step guides.
Source: https://techvia.software/docs/
Build on Techvia, or let your AI assistant run it. Guides, the API reference and one-click AI setup, in one place.
".
2. Ask me for my Techvia API key (it starts with tms_). Never print the key back, never log it,
never write it into a file that is committed to git. Keep it in an environment variable
(TECHVIA_TMS_KEY) or in the client's secret store, and reference it from the config.
3. Install it for the client you are running in:
- Claude Code: keep the default local scope (never use --scope project: it would write the key into a .mcp.json that gets committed). Run claude mcp add --transport http techvia-tms https://tms-api.techvia.software/mcp --header "Authorization: Bearer $TECHVIA_TMS_KEY"
- Cursor: add to ~/.cursor/mcp.json under mcpServers: "techvia-tms": { "url": "https://tms-api.techvia.software/mcp", "headers": { "Authorization": "Bearer ${env:TECHVIA_TMS_KEY}" } }
4. Verify: list the tools of the techvia-tms server and show me only their names. If the server answers
401, the key is wrong or revoked: tell me, and do not retry with a different key.
```
### By hand
**Claude Code**
```bash
claude mcp add --transport http techvia-tms https://tms-api.techvia.software/mcp \
--header "Authorization: Bearer tms_YOUR_KEY"
```
**Cursor**
Put this in `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project. Cursor reads `${env:NAME}` from the environment, so the key stays out of the file:
```json
{
"mcpServers": {
"techvia-tms": {
"url": "https://tms-api.techvia.software/mcp",
"headers": { "Authorization": "Bearer ${env:TECHVIA_TMS_KEY}" }
}
}
}
```
Or paste the key itself in place of `${env:TECHVIA_TMS_KEY}`, as `Bearer tms_YOUR_KEY`, in a file you never commit.
**VS Code**
Set the environment variable `TECHVIA_TMS_KEY` to your key before you start VS Code. Then add the server to the portable Copilot configuration: `~/.copilot/mcp-config.json` for all workspaces, or `.mcp.json` at the workspace root to share it with a team (leave the key out of that file; it only names the variable):
```json
{
"mcpServers": {
"techvia-tms": {
"type": "http",
"url": "https://tms-api.techvia.software/mcp",
"headers": { "Authorization": "Bearer ${TECHVIA_TMS_KEY}" }
}
}
}
```
Use the braced `${NAME}` form. Source: [VS Code MCP configuration reference](https://code.visualstudio.com/docs/copilot/reference/mcp-configuration). The older `.vscode/mcp.json` format is deprecated by VS Code and is not covered here.
**claude.ai and Claude Desktop**
Claude calls the server as a custom connector.
1. In Claude, open **Settings > Connectors > Add custom connector**.
2. Name: `Techvia TMS`. URL: `https://tms-api.techvia.software/mcp`.
3. In **Request headers** add `Authorization` with the value `Bearer tms_YOUR_KEY`.
Claude calls the server from Anthropic's cloud, not from your computer, so the per-IP limit (3000 requests a minute) is shared with everyone calling from that vendor; it is far above one customer's use. See [MCP tools, scopes and limits](/docs/tms/ai/tools/).
**n8n**
1. Add an **MCP Client Tool** node to your AI agent.
2. Endpoint: `https://tms-api.techvia.software/mcp`. Transport: **HTTP Streamable**.
3. Authentication: **Header Auth**, name `Authorization`, value `Bearer tms_YOUR_KEY`.
**Other clients**
Any MCP client that supports the Streamable HTTP transport and custom request headers works:
- URL: `https://tms-api.techvia.software/mcp`
- Header: `Authorization: Bearer tms_YOUR_KEY`
## 3. Check it works
Ask your assistant: "List the tools of techvia-tms." Then try "Show my last five loads." Without a valid key the server answers `401`.
## What the AI can and cannot do
**It can**
- Find, create and update loads, and change their status
- Add notes and record arrival and departure at stops
- Assign a carrier to a load
- Look up and update customers, carriers and facilities
- Work with quotes and open load documents
**It cannot**
- Make payments, invoices or settlements
- Delete anything
## Safety
- **Scoped keys.** A key only does what you tick when you make it, and you can revoke it at any time.
- **History shows who did it.** Changes made by an assistant show as "API key: name" in the load's history.
- **Duplicate checks.** A repeated create is recognised and does not make a second load.
- **Invoiced loads are protected.** Customer, rate, charges, references and stops cannot be changed once a load is invoiced.
- **Safe retries.** Repeating a request after a dropped connection does not repeat the change.
:::caution[Your data goes to your AI provider]
When you connect an AI tool, data you request through it is sent to that AI provider under your own account and their terms; Techvia is not responsible for how the provider handles it.
:::
## What you can ask for
| Area | Examples |
|---|---|
| Loads | Search loads and read one load in full. Create a load or change one. Change the status of a load. Add a note to a load. Record when a truck arrived at or left a stop. Assign a carrier to a load, or take the carrier off. |
| Quotes | List and read quotes. Create a quote, change its status, or turn it into a load. |
| Documents | List the documents on a load. Get a short-lived link to open one. |
| Customers, carriers and facilities | Find and read customers and carriers. Create or update a customer, a carrier or a facility. Search facilities. |
| Fleet and people | List and read drivers, trucks and trailers. List dispatchers. |
Every tool, the scope it needs and the limits are on [MCP tools, scopes and limits](/docs/tms/ai/tools/). A worked example is [Run dispatch from Claude](/docs/tms/use-cases/run-dispatch-from-claude/).
---
# MCP tools, scopes and limits
> Every tool of the Techvia TMS MCP server, the scope each needs, and what to know about errors, quota, shared IPs and your data.
Source: https://techvia.software/docs/tms/ai/tools/
`https://tms-api.techvia.software/mcp` is a [Model Context Protocol](https://modelcontextprotocol.io) server
(Streamable HTTP, stateless). An AI assistant connected to it can find and read your loads, customers, carriers and fleet, create and change loads
(assign a carrier, record arrivals, add notes), create and update customers, carriers and facilities, and work with quotes, with the same key, scopes, limits and rules as the REST API. Make a key for it ([Get a key](/docs/tms/concepts/authentication/)) with only
the scopes it needs, and send it in the `Authorization` header.
To let an assistant manage loads, give the key `loads.read`, `loads.write`, `directory.read` and (to create customers,
carriers or facilities) `directory.write`; add `loads.rates` or `billing.read` only for rates and carrier cost. In the app,
**Settings > Connect your AI** shows these steps with your workspace's own URL.
| Tool | Same as | Scope |
|---|---|---|
| `search_loads` | `GET /api/public/v1/loads` | `loads.read` |
| `get_load` | `GET /api/public/v1/loads/{id}` | `loads.read` |
| `update_load_status` | `PATCH /api/public/v1/loads/{id}/status` | `loads.write` |
| `create_load` | `POST /api/public/v1/loads` | `loads.write` (`rate`, `otherCharges`: also `loads.rates`) |
| `update_load` | `PATCH /api/public/v1/loads/{id}` | `loads.write` (`rate`, `addCharges`, `removeChargeIds`: also `loads.rates`) |
| `add_load_note` | `POST /api/public/v1/loads/{id}/notes` | `loads.write` |
| `record_stop_arrival`, `record_stop_departure` | `PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival`, `.../departure` | `loads.write` |
| `assign_load`, `unassign_load` | `PUT /api/public/v1/loads/{id}/assignment`, `DELETE .../assignment` | `loads.write` (`carrierCost`: also `loads.rates`) |
| `list_quotes`, `get_quote` | `GET /api/public/v1/quotes`, `.../{id}` | `loads.rates` |
| `create_quote`, `set_quote_status`, `convert_quote_to_load` | `POST /api/public/v1/quotes`, `PATCH .../{id}/status`, `POST .../{id}/convert` | `loads.rates` |
| `list_load_documents`, `get_document_link` | `GET /api/public/v1/loads/{id}/documents`, `GET /api/public/v1/documents/{id}/link` | `loads.read` (`RateCon`, `CarrierInvoice`: also `loads.rates`) |
| `list_customers`, `get_customer` | `GET /api/public/v1/customers`, `.../{id}` | `directory.read` |
| `list_carriers`, `get_carrier` | `GET /api/public/v1/carriers`, `.../{id}` | `directory.read` |
| `list_drivers`, `get_driver` | `GET /api/public/v1/drivers`, `.../{id}` | `directory.read` |
| `list_trucks`, `get_truck` | `GET /api/public/v1/trucks`, `.../{id}` | `directory.read` |
| `list_trailers`, `get_trailer` | `GET /api/public/v1/trailers`, `.../{id}` | `directory.read` |
| `list_dispatchers` | `GET /api/public/v1/dispatchers` | `directory.read` |
| `search_facilities` | `GET /api/public/v1/facilities` | `directory.read` |
| `create_customer`, `update_customer` | `POST /api/public/v1/customers`, `PATCH .../{id}` | `directory.write` |
| `create_carrier`, `update_carrier` | `POST /api/public/v1/carriers`, `PATCH .../{id}` | `directory.write` |
| `create_facility`, `update_facility` | `POST /api/public/v1/facilities`, `PATCH .../{id}` | `directory.write` |
Arguments have the names of the REST query parameters and body fields, and a tool returns the same JSON as its REST
twin (rates only with `billing.read` or `loads.rates`). `update_load` also takes `customerId`, `dispatcherId`,
`carrierId`, `carrierCost` and `otherCharges` only to refuse them, as REST does. The tool descriptions tell the assistant
to show `scheduledLocal`, not the UTC time. The assistant sees only the tools your key's scopes allow. The read tools are
marked read-only. No write tool is marked destructive. `update_load_status`, `record_stop_arrival`,
`record_stop_departure`, `assign_load`, `unassign_load` and the `update_*` directory tools are marked idempotent (repeating them changes nothing);
`update_load` is not (its `rowVersion` refuses a repeat). `create_load`, `add_load_note`, the `create_*` directory
tools and the quote write tools (`create_quote`, `set_quote_status`, `convert_quote_to_load`) are not marked idempotent;
the creates take a `client_request_id` ([Idempotency](/docs/tms/concepts/idempotency/)) that makes a retry safe.
## What to know
- **Your data goes to your AI vendor.** When you ask an assistant about your loads, the data a tool returns is sent to
that assistant's vendor (Anthropic, OpenAI, Cursor and so on) under your own account with them, on their terms.
Techvia does not send it anywhere else. Give the key only the scopes the assistant needs.
- **Errors** of a tool call come back as tool errors (the assistant reads them), not HTTP errors: a missing scope
names the scope; the workspace limit and the monthly quota say which one and how long to wait; an argument that
cannot be read names the argument and what it must be; a validation failure lists the fields with the same messages
as the REST `422`; "No load with this id in your workspace" is the REST `404`; "Conflict: ..." is the REST `409`; a duplicate is
"Conflict: <sentence>" followed by "Details:" and the REST fields as JSON (`code`, `canOverride`, `existingId`,
`candidates`), and its override needs a new `client_request_id`; an
unknown tool name is "Unknown tool". A tool error never repeats a value you sent. An unknown JSON-RPC method is the
protocol error `-32601` "Method not found.", whatever was sent.
- **HTTP errors** come before any tool runs: a missing, wrong or revoked key is `401`; the per-key and per-IP limits
are `429` with `Retry-After`; a body that is not `Content-Type: application/json` (UTF-8) is `415`; an `Origin` that is
not allowed is `403` (below); a body that is not one JSON-RPC message (unreadable JSON, or a batch array) is `400`; a body over 256 KB is `413`.
These protocol-level answers come from the MCP library and may quote part of what was sent.
- **Limits and quota** are shared with your REST calls ([Rate limits and quota](/docs/tms/concepts/rate-limits/)): one tool call is one request. A tool error raised
before the tool did any work (arguments that cannot be read, a validation failure, a missing scope or a limit) uses no
quota; once the tool started (it looked up the load), the unit is used whatever the answer.
- **Shared IP.** Hosted assistants (for example Claude connectors) call from their vendor's shared servers. The per-IP
limit (3000 per minute) is far above one customer's use, but everyone calling from that vendor shares it.
- **Browser-based clients are not supported yet.** Clients that call from a server or a command line (Claude
connectors, Claude Code, Cursor, n8n) send no `Origin` header and are accepted. A request from a web page carries an
`Origin` header and is refused (`403`); the server sends no CORS headers for `/mcp`.
- Loads created and changed, notes, stop times and status changes made over MCP show in the load's timeline and History
as "API key: <key name>", like REST.
---
# Changelog
> Changes to the Techvia TMS public API, MCP server and these docs.
Source: https://techvia.software/docs/tms/changelog/
Changes to the public API (`v1`), the MCP server and these docs are listed here, newest first.
## 2026-11-27
- The API documentation, the AI guide and the developer reference moved to this site, [techvia.software/docs](https://techvia.software/docs/). The API itself did not change.
- New: the [API reference](/docs/tms/reference/) is generated from the live OpenAPI description, and every page is available as Markdown.
---
# Concepts
> Authentication and scopes, idempotency, statuses, wire conventions, errors, rate limits and quota of the Techvia TMS public API.
Source: https://techvia.software/docs/tms/concepts/
The ideas that apply to every call of the Techvia TMS public API and its MCP server.
- [Authentication, keys and scopes](/docs/tms/concepts/authentication/)
- [Status values](/docs/tms/concepts/statuses/)
- [Idempotency and safe retries](/docs/tms/concepts/idempotency/)
- [Wire conventions, dates and ids](/docs/tms/concepts/conventions/)
- [Errors](/docs/tms/concepts/errors/)
- [Rate limits and quota](/docs/tms/concepts/rate-limits/)
---
# Authentication, keys and scopes
> Create a Techvia TMS API key, choose its scopes and send it in the Authorization header.
Source: https://techvia.software/docs/tms/concepts/authentication/
1. API access comes with the Pro AI plan. On any other plan Techvia switches it on per workspace; ask your account
contact if you do not see it.
2. A workspace admin (Organization admin or Admin) opens **Settings > API keys**, names the key, picks its scopes and,
optionally, an expiry date.
3. The full key (`tms_` followed by 43 characters) is shown **once**. Store it in your secret manager. Techvia keeps
only a hash and cannot show it again. The key list shows its first 12 characters so you can tell keys apart.
| Scope | Allows |
|---|---|
| `loads.read` | List loads, read one load |
| `loads.write` | Create and change a load, its status, notes, stop times and assignment (carrier or own fleet) |
| `billing.read` | Adds the customer rate, final rate and other charges to load responses |
| `directory.read` | List and read customers, carriers, drivers, trucks and trailers; list dispatchers and facilities |
| `directory.write` | Create and change customers, carriers and facilities ([Create and update customers, carriers and facilities](/docs/tms/guides/directory-write/)). Reading them still needs `directory.read` |
| `loads.rates` | Set the customer rate and other charges on a load, set the carrier cost when assigning a carrier (never shown back), every quote action (create, read, set status, convert to a load; [Quotes](/docs/tms/guides/quotes/)), and see a load's rate documents (`RateCon`, `CarrierInvoice`); never invoices, settlements or payments. A load's rate, final rate and charge lines are shown to a key with `loads.rates` or `billing.read` |
A key belongs to one workspace and sees only that workspace's data. It stops working on the next request when it is
revoked or expires, when API access is switched off for the workspace, or when the admin who made it is no longer an
admin there. When API access is switched off, in a rare case a key can keep working for up to 5 minutes before it
stops; revoking the key itself always takes effect on the next request.
Carrier cost, carrier charges, margin and driver or dispatcher pay are never returned to a key (a `loads.rates` key may set
the carrier cost on `assign_load`, but never reads it).
## Send the key
Send the key in the `Authorization` header on every request:
```
Authorization: Bearer tms_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```
Never put the key in a URL or query string. Keys work only under `/api/public/` and on the MCP endpoint `/mcp`; the
app's own API refuses them.
---
# Wire conventions, dates and ids
> JSON, ids, money, ISO 8601 dates, local stop times and problem details in the Techvia TMS public API.
Source: https://techvia.software/docs/tms/concepts/conventions/
JSON with camelCase property names; enum values are their names as strings (`"EnRoute"`, not a number); ids are
UUIDs; money is a decimal number in USD; dates are ISO 8601. Every error (every 4xx and 5xx) is an RFC 7807 problem
details body (`application/problem+json`) with `type`, `title`, `status`, `traceId`, and, for validation errors, an
`errors` object keyed by field. `instance` is the route template, for example `/api/public/v1/loads/{id:guid}`, and is
left out when no route matched. An error never repeats the value you sent (a duplicate's `candidates` show
your stored records). Quote the `traceId` when you contact
support. Two edges: if your `Accept` header excludes JSON, an error body may be plain text or empty; and a request
refused before it reaches the API (for example a NUL byte in the URL path, or anything a proxy rejects) gets that
server's own response, not problem details.
## Ids you send
Every id in a write (customer, dispatcher, facility, driver, truck, trailer, carrier, carrier driver or truck) must name
a record in your workspace, else `422` with `errors` under that field, for example
`"customerId": ["No customer with this id in your workspace."]`. Names are always taken from your records, never from
the request.
---
# Errors
> Every HTTP status the Techvia TMS public API returns, with the RFC 7807 error body and the duplicate fields.
Source: https://techvia.software/docs/tms/concepts/errors/
| Status | When |
|---|---|
| `400` | The request cannot be read: a body that is not a JSON object, a `rowVersion` that is not a whole number, a malformed id, date or number in the query. `errors` names the query parameter, the body field (`status`, `rowVersion`) or `body`, with "This value could not be read." |
| `401` | No key, or the key is malformed, unknown, revoked, expired or not active. One body for every reason |
| `403` | The key lacks the scope this call needs (`scope` names it), the call is not open to API keys, or your plan does not include the feature (`code` `capability_required`, `capability` names it; the same rule as in the app) |
| `404` | No such load in your workspace, or no such route (a bad id in the URL is a plain 404) |
| `405` | The route exists but not with this HTTP method (the `Allow` header lists the right one) |
| `415` | A body sent without `Content-Type: application/json` |
| `409` | `rowVersion` is not current: the record changed since you read it (read it again); or a duplicate (below) |
| `422` | Validation failed: a missing, unknown or not-allowed `status` (body or list filter), a missing `rowVersion`, `pageSize` outside 1 to 50, `page` outside 1 to 42949672, a date outside 1900-01-01 to 9999-12-31 or a "from" after its "to", a `search` that is too long or has control characters, or one of the app's own rules (for example `Covered` needs a carrier, truck or driver; reported under `status`) |
| `400`, `409`, `422` with an `idempotency-key-*` code | See "Retrying a create safely" in [Idempotency](/docs/tms/concepts/idempotency/) |
| `409` with `type` `https://api.techvia.com/errors/duplicate` | The record probably exists already. Extra fields, camelCase: `code` (for example `duplicate_load`), `canOverride` (`true`: send again with `allowDuplicate: true` (customers, carriers and facilities: `confirmNew: true`) and a new `Idempotency-Key`; `false`: it can never be created twice), `existingId` (the matching record, when there is one) and `candidates` (`id`, `name`, `detail` of up to 5 of your records; `detail` is one key field such as a city, a reference, or a USDOT/MC number written as its digits without leading zeros) |
| `429` | A rate limit or the monthly quota is used up (`code` `rate-limited` or `quota-exceeded`). Wait the number of seconds in the `Retry-After` header ([Rate limits and quota](/docs/tms/concepts/rate-limits/)) |
```json
{
"type": "https://api.techvia.com/errors/validation",
"title": "Validation failed",
"status": 422,
"detail": "One or more fields are invalid.",
"instance": "/api/public/v1/loads/{id:guid}/status",
"errors": { "status": ["An API key can set only these statuses: Open, Covered, AtPickup, EnRoute, AtDelivery, Delivered."] },
"traceId": "00-201617448d0826ae478563b5b2154d17-a2178041e7b5b3b9-00"
}
```
---
# Idempotency and safe retries
> Retry a create safely with the Idempotency-Key header in the Techvia TMS API: what each case returns.
Source: https://techvia.software/docs/tms/concepts/idempotency/
Every create (`POST`) takes an optional `Idempotency-Key` header: any text of 1 to 255 characters, a fresh UUID per
new record is best. Send the same key again when you retry the same request (a timeout, a dropped connection), and a
new key for a new record. Keys are per workspace and kept 7 days; after that a key counts as unused.
| You send | You get |
|---|---|
| A key we have not seen | The request runs as usual |
| The same key and the same request (method, path, query and body, byte for byte) | The first answer again, with `Idempotent-Replayed: true`. No second record, no quota unit |
| The same key with a different request | `422` `idempotency-key-reused`. Use a new key |
| The same key while the first request is still running | `409` `idempotency-key-in-progress`, `Retry-After: 1`. A request still "running" after 5 minutes is treated as dead and the same request runs again |
| The same key after the first request failed on our side once it had started | `409` `idempotency-key-failed`: the record may exist. Look it up before you retry with a new key |
| A body over 256 KB (or the endpoint's own limit) | `413` `payload-too-large`, nothing kept |
| The first answer was over 256 KB | You get it in full, but it is not kept: a retry with the same key is `409` `idempotency-answer-too-large`: the request finished, only its answer was too large to replay, so look the record up |
| An empty key, more than 255 characters, control characters or two `Idempotency-Key` headers | `400` `idempotency-key-invalid` |
The first answer is kept when it is a success or an answer about your data (a `404`, a duplicate `409`, an unknown
reference `422`). So after a duplicate `409`, a retry with the same key gets the same `409`: to override it with
`allowDuplicate`, use a new key. When the request was refused before it ran (a `400`, a validation `422`, a rate limit) nothing is
kept: fix the request and send it again with the same key. Once a request has started its work the key stays bound
to it: a failure on our side is kept as `idempotency-key-failed`. If your connection dropped before the answer arrived,
a create that finished keeps its answer as usual, so the retry gets the record it made; while it is still running the
key answers `409` in progress, and after 5 minutes the same request runs again. Only when our server died after saving
the record but before saving the answer is a second record possible after the 5 minutes. The same is true of a create that really runs for more than 5 minutes: a retry after that time counts as
a new attempt and runs while the first is still going (no create takes that long in normal use). In both cases the
duplicate checks on customers, carriers and loads with a reference still apply. Without the header nothing is kept and a retry
runs again. Over MCP the create tools take the same thing as a `client_request_id` argument (same rules; a replayed
result carries `_meta.idempotentReplayed: true`); a REST key and an MCP id share your workspace's keys.
---
# Rate limits and quota
> Per-IP, per-key and per-workspace rate limits and the monthly request quota of the Techvia TMS public API.
Source: https://techvia.software/docs/tms/concepts/rate-limits/
Every request meets these limits, in this order. A request refused by one does not run.
| Limit | Default | Applies to |
|---|---|---|
| Per IP | 3000 per minute | Every request to `/api/public/` and `/mcp` from one IP address, whatever the key. A flood ceiling, far above what one customer needs |
| Per key | 60 per minute | Each key on its own, every HTTP request (on `/mcp` too) |
| Per workspace | 120 per minute | All your workspace's keys together. More keys, or a new key in place of a revoked one, add no allowance |
| Monthly quota | Your plan's `api.requests` number (Pro 10,000, Pro AI 100,000) | All your workspace's keys together, per calendar month (UTC). Resets at 00:00 UTC on the 1st |
- `GET /api/public/v1/me` shows the quota used, the limit, the reset time and the rate limits that apply to you. It
uses no unit itself.
- One request uses one unit of quota. Over MCP, one tool call uses one unit and meets the workspace limit; listing
the tools and connecting use none (they meet the per-IP and per-key limits only). A request refused before it does any work uses none: a bad key (`401`), a
missing scope or a feature not on your plan (`403`), a rate limit (`429`), a request that cannot be read (`400`,
`406`, `415`), and a request that fails validation (`422` with `errors` for your input, for example an unknown
`status` filter). Once the request starts its work, the unit is used whatever the answer: a `404` or `409`, a `422`
from a rule about the current data (for example "This load is Completed"), or a server error.
- A replayed create (same `Idempotency-Key` or `client_request_id`, [Idempotency](/docs/tms/concepts/idempotency/)) uses no unit; it still meets the
rate limits.
- At most 50 rows per page.
- The minute windows are fixed (they start on the minute). If our server restarts, a minute window can start over;
the monthly quota cannot.
- Your account manager can set a different quota for your workspace.
Over a rate limit: `429` with `Retry-After` (seconds until the window ends). Back off and retry after that time.
```json
{
"type": "https://api.techvia.com/errors/rate-limited",
"title": "Too many requests",
"status": 429,
"detail": "This workspace's API rate limit (120 requests per 60 seconds, across all its keys) is used up. Retry after the indicated delay.",
"instance": "/api/public/v1/loads",
"code": "rate-limited",
"scope": "workspace", "limit": 120, "windowSeconds": 60,
"traceId": "00-..."
}
```
The per-key and per-IP limits answer before the key is checked, with the same `type` and `Retry-After` and no `code`
or `scope`.
Over the monthly quota: `429` with `Retry-After` (seconds until the reset). When your plan has no API requests at all
(quota 0), the `detail` says so: "This workspace's plan includes no API requests (monthly quota 0). Ask your
administrator to change the plan." That answer has no `Retry-After` and no `resetsAt`: waiting does not help.
```json
{
"type": "https://api.techvia.com/errors/quota-exceeded",
"title": "Quota exceeded",
"status": 429,
"detail": "This workspace's monthly API quota (10,000 requests) is used up. It resets at 2026-12-01T00:00:00Z.",
"instance": "/api/public/v1/loads",
"code": "quota-exceeded",
"quota": "api.requests", "limit": 10000, "used": 10000, "resetsAt": "2026-12-01T00:00:00+00:00",
"traceId": "00-..."
}
```
---
# Status values
> The load status values of the Techvia TMS API and which of them an API key may set.
Source: https://techvia.software/docs/tms/concepts/statuses/
`PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`,
`TONU`.
| A key may set | A key may not set (money or billing consequences) |
|---|---|
| `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered` | `PreBook`, `Cancelled`, `TONU`, `Completed`, `Invoiced` |
A key also cannot change the status of a load that is already `Completed`, `Invoiced`, `Cancelled` or `TONU`. Those
changes are made in the TMS app.
---
# Guides
> The rules behind the Techvia TMS public API for loads, directory records and quotes, with examples and edge cases.
Source: https://techvia.software/docs/tms/guides/
Each guide explains one area of the Techvia TMS public API: what the calls do, every field and limit, and what is refused. For a quick lookup of one endpoint use the [API reference](/docs/tms/reference/).
- [Loads](/docs/tms/guides/loads/): list, create, read, change, assign, add notes, record arrivals and departures.
- [Customers, carriers, drivers, trucks, trailers, dispatchers and facilities](/docs/tms/guides/directory/): read-only lists.
- [Create and update customers, carriers and facilities](/docs/tms/guides/directory-write/): writes and the duplicate rules.
- [Quotes](/docs/tms/guides/quotes/): create, price, win and convert to a load.
---
# Customers, carriers, drivers, trucks, trailers, dispatchers and facilities
> Read your customers, carriers, drivers, trucks, trailers, dispatchers and facilities with the Techvia TMS public API (scope directory.read).
Source: https://techvia.software/docs/tms/guides/directory/
Read only. Five resources, each with a list and a read-one:
| Resource | List | One |
|---|---|---|
| Customers | `GET /api/public/v1/customers` | `GET /api/public/v1/customers/{id}` |
| Carriers | `GET /api/public/v1/carriers` | `GET /api/public/v1/carriers/{id}` |
| Drivers | `GET /api/public/v1/drivers` | `GET /api/public/v1/drivers/{id}` |
| Trucks | `GET /api/public/v1/trucks` | `GET /api/public/v1/trucks/{id}` |
| Trailers | `GET /api/public/v1/trailers` | `GET /api/public/v1/trailers/{id}` |
Every list is sorted by name (last, then first name for drivers; unit number for trucks and trailers) and takes:
| Query | Meaning |
|---|---|
| `search` | Text, at most 100 characters, no control characters. Case-insensitive "contains" on the name (customers and carriers also on their MC number, carriers also on their DOT; trucks and trailers on the unit number). Only fields the API returns are searched. Otherwise `422` |
| `page` | 1 or more. Default 1 |
| `pageSize` | 1 to 50. Default 50. More is a `422` |
The list body is `{ "items": [...], "page", "pageSize", "total", "hasMore", "sort" }`. An id that does not exist and an
id from another workspace give the same `404`. Fields that are not stored are `null`.
| Resource | Fields (and nothing else) |
|---|---|
| Customer | `id`, `name`, `mcType`, `mcNumber`, `city`, `state`, `status`, `contactName`, `phone`, `email` (the primary contact; city and state of the physical address), `rowVersion` |
| Carrier | `id`, `name`, `mcNumber`, `dotNumber`, `status`, `insuranceExpiry` (the earliest expiry among the liability, auto and cargo certificates), `phone`, `email` (the primary contact), `scac`, `rowVersion` |
| Driver | `id`, `name`, `status`, `phone`, `currentTruck`, `currentLoadNumber` |
| Truck | `id`, `unitNumber`, `type`, `status`, `currentDriverName` |
| Trailer | `id`, `unitNumber`, `type`, `status` |
Two more lists, with the same `search`, `page` and `pageSize` and no read-one, so you can fill in a load:
| Resource | List | Fields | `search` matches |
|---|---|---|---|
| Dispatchers | `GET /api/public/v1/dispatchers` | `id`, `name`, `status` | the name |
| Facilities | `GET /api/public/v1/facilities` | `id`, `name`, `code`, `street`, `city`, `state`, `zip`, `timeZoneId`, `status`, `rowVersion` | the name, the facility code or the city |
`currentTruck` and `currentLoadNumber` (drivers) and `currentDriverName` (trucks) come from the load the driver or truck
is on now: a load that is `Covered`, `AtPickup`, `EnRoute` or `AtDelivery`. They are `null` when there is none. With more
than one, the most recently changed of those loads is used (on a tie, the newest load). `currentDriverName` is that
load's primary driver, or one of its drivers when none is marked primary. Licence, date of birth, address, SSN, pay,
advances and documents are never returned.
---
# Create and update customers, carriers and facilities
> Create and change customers, carriers and facilities through the Techvia TMS public API (scope directory.write), with the duplicate rules.
Source: https://techvia.software/docs/tms/guides/directory-write/
| Call | Does |
|---|---|
| `POST /api/public/v1/customers` | Create a customer |
| `PATCH /api/public/v1/customers/{id}` | Change a customer |
| `POST /api/public/v1/carriers` | Create a carrier |
| `PATCH /api/public/v1/carriers/{id}` | Change a carrier |
| `POST /api/public/v1/facilities` | Create a facility from an address |
| `PATCH /api/public/v1/facilities/{id}` | Rename a facility or change its code |
A create is `201` with the new record (as the read endpoints show it, plus its `rowVersion`) and takes an
`Idempotency-Key` ([Idempotency](/docs/tms/concepts/idempotency/)). A change sends only the fields that change: a field left out stays, an empty text
clears it, and `rowVersion` (from your last read, list or create answer) is required. A `rowVersion` that is no longer
current is `409` "changed since you read it": read again and retry. An unknown id, or another workspace's, is `404`.
Names and numbers are checked the way the TMS app checks them, so a record you create from the API and one a person
creates by hand follow the same duplicate rules.
A change cannot leave a carrier with neither a USDOT nor an MC number (`422` on `dotNumber`). A record whose stored values the app
no longer accepts (a retired payment-terms choice, an invalid billing e-mail) cannot be changed with a key: the answer is `422` on `body`,
"This record has values the app must fix first; edit it in TMS." A person fixes it in the TMS app.
Bodies (every field is optional on the wire; the ones marked required are refused with `422` when missing):
| Resource | Fields you can send |
|---|---|
| Customer | `name` (required on create, at most 200, with a letter or digit), `mcType`, `mcNumber`, `street`, `city`, `state`, `zip`, `country`, `contactName`, `phone`, `email`, `confirmNew` |
| Carrier | `name` (required on create), `dotNumber` and `mcNumber` (digits; one of the two required on create), `scac`, `contactName`, `phone`, `email`, `liabilityExpiry`, `autoExpiry`, `cargoExpiry` (dates, `YYYY-MM-DD`, 2000 to 2100) |
| Facility, create | `name`, `street`, `city`, `state` (all required), `zip`, `country`, `code`, `confirmNew` |
| Facility, change | `name`, `code`, `confirmNew`. The address cannot be changed with a key: create the new site instead |
Never settable with a key, and ignored if sent: credit limit, payment terms, billing e-mail and address, currency, the
blacklist flag, status, notes, a carrier's tax id, WSIB, payment terms, auto-accept flag, insurance company, policy
number and amount, a facility's contact, coordinates, time zone and detention time. Their values on an existing
record are kept when you change it.
**Duplicates** (the same rules as the app; the fields are in [Errors](/docs/tms/concepts/errors/)):
| Resource | Refused with `409` and `existingId`, no override | `409` with `candidates`, send `confirmNew: true` (and a new `Idempotency-Key`) to add it anyway |
|---|---|---|
| Customer | the same name (case, spaces, punctuation and endings such as Inc or LLC ignored): `duplicate_customer` | a similar name: `possible_duplicate_customer` |
| Carrier | the same USDOT number or the same MC number (digits only, leading zeros and prefixes such as `MC-` ignored): `duplicate_carrier`. The sentence shows the number once, as its digits | none |
| Facility | the same name (inner spaces ignored) in the same city and state: `duplicate_facility`. Two creates of it at the same moment with different `Idempotency-Key`s can both succeed; there is no database index behind this rule | the same address under another name, or a similar name within 100 m: `possible_duplicate_facility` |
**Creating a facility** looks the address up (as `create_load` does for a stop given by address): it needs the
street, takes one unit of your workspace's address-lookup allowance (the plan's monthly limit, the same allowance the app's
address search uses), and sets the coordinates and the time zone. The checks that need no lookup (same name, same
address) run first, so a duplicate costs nothing; "a similar name within 100 m" is known only after the lookup, which is
then used. A lookup that fails on our side gives its unit back, uses no request quota and leaves the `Idempotency-Key`
free: try again with the same key. An address that is not found is `422` (the lookup is used). When the allowance is
used up the answer is `422` with your workspace's own numbers (used, limit, reset date), or "not included in your
plan" when your plan has none.
---
# Loads
> List, create, read, change, assign and track loads with the Techvia TMS public API: filters, stops, documents, status, notes, arrival and departure.
Source: https://techvia.software/docs/tms/guides/loads/
## List loads: `GET /api/public/v1/loads` (scope `loads.read`)
Newest first. All filters are optional and can be combined.
| Query | Meaning |
|---|---|
| `status` | One status name, exactly as written in [Status values](/docs/tms/concepts/statuses/) (for example `EnRoute`; case matters). Anything else is a `422` |
| `customerId`, `driverId`, `carrierId` | TMS ids |
| `pickupFrom`, `pickupTo` | First pickup on or after / on or before this date (`YYYY-MM-DD`, UTC days). 1900-01-01 to 9999-12-31; `9999-12-31` works as "no end date". For no start date, leave the "from" filter out (`0001-01-01` is a `422`). A "from" after its "to" is a `422` |
| `deliveryFrom`, `deliveryTo` | Last delivery on or after / on or before this date (`YYYY-MM-DD`, UTC days). Same range and rule as the pickup dates |
| `search` | Part of the load number or work order number. At most 100 characters, no control characters |
| `page` | Page number, from 1 (default 1) up to 42949672 |
| `pageSize` | 1 to 50 (default 50) |
```
curl -H "Authorization: Bearer $TMS_KEY" \
"https://tms-api.techvia.software/api/public/v1/loads?status=Covered&pickupFrom=2026-12-01&pageSize=2"
```
```json
{
"items": [
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"equipment": "Reefer",
"customerName": "Acme Foods",
"dispatcherName": "Dana Ruiz",
"origin": "Acme DC Dallas",
"destination": "FreshMart Phoenix",
"pickupDate": "2026-12-01T15:00:00+00:00",
"pickupLocal": "2026-12-01T09:00:00-06:00",
"pickupTimeZoneId": "America/Chicago",
"deliveryDate": "2026-12-02T16:00:00+00:00",
"deliveryLocal": "2026-12-02T09:00:00-07:00",
"deliveryTimeZoneId": "America/Phoenix",
"assignmentMode": "Driver",
"assignedTo": "Sam Lee",
"rowVersion": 825,
"isSample": false,
"finalRate": 2475.00
}
],
"page": 1, "pageSize": 2, "total": 1, "hasMore": false, "sort": []
}
```
`finalRate` is present only for a key with `billing.read` or `loads.rates`. `pickupDate`/`deliveryDate` are UTC;
`pickupLocal`/`deliveryLocal` are the same instants as the wall clock at the facility, with its offset (null when the
facility has no time zone): show those to people. `isSample` is `true` only for the sample load a new
workspace starts with (number `SAMPLE-1`); skip it if your script should see only your own loads.
## Create a load: `POST /api/public/v1/loads` (scope `loads.write`)
The new load starts `Open` (no carrier, driver or truck yet). Send an `Idempotency-Key` header ([Idempotency](/docs/tms/concepts/idempotency/)) so a
retry never makes a second load.
```
curl -X POST -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2a52-3d0e-4d7e-9b5e-1f0c8d1e2a77" \
-d '{
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"workOrderNumber": "WO-4471",
"equipment": "Reefer",
"stops": [
{ "facilityId": "01a20943-7600-7c11-8a2e-111111111111", "type": "Shipper",
"scheduledDate": "2026-12-01T09:00:00-06:00", "commodity": "Produce", "weightLbs": 38000 },
{ "address": { "name": "FreshMart Phoenix", "street": "9 Market St", "city": "Phoenix", "state": "AZ", "zip": "85001" },
"type": "Consignee", "scheduledDate": "2026-12-02T09:00:00-07:00" }
]
}' \
https://tms-api.techvia.software/api/public/v1/loads
```
| Field | Meaning |
|---|---|
| `customerId` | Required. One of your customers (`GET /api/public/v1/customers`), active and not blacklisted |
| `dispatcherId` | One of your dispatchers (`GET /api/public/v1/dispatchers`). Left out: the workspace's default dispatcher, the oldest active one (the owner's, unless it was made inactive). An inactive dispatcher, or no active dispatcher at all, is a `422` |
| `workOrderNumber` | The customer's reference or PO number, at most 100 characters |
| `equipment` | `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck` or `Other` (exact case) |
| `type` | `Spot` (default), `Dedicated` or `Contract` (exact case) |
| `stops` | Required, 2 to 50, in the order the truck visits them: the first a `Shipper` (pickup), the last a `Consignee` (delivery). A stop may not be scheduled before the stop before it |
| `stops[].facilityId` or `stops[].address` | Exactly one. `facilityId` is one of your active facilities (`GET /api/public/v1/facilities`). `address` (`name`, `city`, `state` required, state at most 50 characters; `street`, `zip`, `country`), at most 10 per call: matched to one of your facilities (the same name, city and state; or the same street, city, ZIP and state; or the same place on the map) and a new facility is created only when none matches. Without a `street` only the exact name, city and state can match. Finding the place on the map is one address lookup from your workspace's monthly allowance (the plan's place lookups, the same allowance the app's address search uses); when it is used up (or your plan has none) the stop is refused and nothing is looked up; a lookup that fails on the map provider's side gives its unit back, uses no request quota and keeps no answer on your `Idempotency-Key`, so retrying with the same key looks the address up again (lookups made for earlier stops of that call were billed and stay used; the message says how many). An address that cannot be found, has no street and no exact match, or would need a lookup past the allowance is a `422` on `stops[n].address` |
| `stops[].type` | `Shipper` or `Consignee` (exact case) |
| `stops[].scheduledDate` | Required. The appointment, ISO 8601, between 2000 and 2100. With an offset (`2026-12-01T09:00:00-06:00`, `...Z`) it is that instant. Without one (`2026-12-01T09:00:00`, or a date alone = midnight) it is the local time at that stop's facility, in the facility's time zone; a facility with no time zone needs the offset (`422`). Each stop must be at or after the stop before it |
| `stops[].appointmentConfirmed`, `commodity`, `quantity`, `weightLbs`, `referenceNumber`, `notes` | Optional |
| `rate` | Customer rate in USD, 0 to 99,999,999.99, at most 2 decimals. Needs `loads.rates` |
| `otherCharges` | `[{ "type", "description", "amount" }]`, `type` one of your workspace's load charge types (for example `OtherCharge`, `Detention`), `amount` 0 to 99,999,999.99 with at most 2 decimals; at most 50. Needs `loads.rates` |
| `allowDuplicate` | `true` to create it although this customer already has a load with this `workOrderNumber` |
- The answer is `201` with a `Location` header and the new load as `GET /api/public/v1/loads/{id}` returns it, but
never with `rate`, `finalRate` or `otherCharges` (a retry can replay it to another key of your workspace). Read the
load with a `billing.read` key to see them.
- Names (customer, dispatcher, facility) are always taken from your records, never from the request.
- A blacklisted or inactive customer, an inactive dispatcher and an inactive facility are refused (`422` "This customer is
blacklisted in your workspace..."): a person books those in the TMS app.
- Everything is checked before anything is saved: a refused create leaves no new facility behind. The body is at most
256 KB (`413`).
- `rate` or `otherCharges` without `loads.rates` is a `422` naming the scope; nothing is created and no quota is used.
- **Duplicate reference.** When this customer already has a load (not cancelled) with the same `workOrderNumber`
(case and spaces ignored), the answer is `409` with `code` `duplicate_load`, `canOverride: true`, `existingId` (that
load) and `candidates` (up to 5: `id`, `name` = load number, `detail` = its stored reference). To create it anyway,
send the request again with `"allowDuplicate": true` and a **new** `Idempotency-Key` (the old key is bound to the
refused request).
- The load's timeline and History show "API key: <key name>" as the creator, and a facility made from an address shows
the key in that facility's History.
## Read one load: `GET /api/public/v1/loads/{id}` (scope `loads.read`)
```
curl -H "Authorization: Bearer $TMS_KEY" https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516
```
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Reefer",
"customer": { "id": "01a20943-75ec-78ad-9764-7a1d1cc95684", "name": "Acme Foods" },
"dispatcherName": "Dana Ruiz",
"assignment": { "mode": "Driver", "driverNames": ["Sam Lee"], "truck": "T-101", "trailer": "R-22", "carrierName": null },
"rowVersion": 825,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1, "type": "Shipper", "facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00", "scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago", "appointmentConfirmed": true,
"commodity": "Produce", "quantity": 22, "weightLbs": 38000.00, "referenceNumber": "PO-88123",
"notes": "Check in at gate 4", "arrivedAt": null, "departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2, "type": "Consignee", "facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00", "scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix", "appointmentConfirmed": false,
"commodity": null, "quantity": null, "weightLbs": null, "referenceNumber": null,
"notes": null, "arrivedAt": null, "departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-11-23T16:35:45.886322+00:00",
"isSample": false,
"notes": [
{ "id": "01a20943-7700-7a00-9309-8c400cddd700", "createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude", "text": "Driver called: 30 min late" }
],
"rate": 2400.00,
"finalRate": 2575.00,
"otherCharges": [ { "id": "01a20943-7800-7b00-9309-8c400cddd801", "type": "Lumper", "description": "Lumper at pickup", "amount": 75.00 } ],
"autoCharges": [ { "id": "01a20943-7800-7b00-9309-8c400cddd802", "type": "Detention", "description": "Detention at Acme DC Dallas — 2.0h over 2.0h free", "amount": 100.00 } ]
}
```
- `rate`, `finalRate`, `otherCharges` and `autoCharges` are present for a key with `billing.read` or `loads.rates` (a key
that may change the rate and charges sees them).
`otherCharges` are the charges people added, in the order they were added; `autoCharges` are made by the TMS
(detention worked out from the stop times) and are never added or removed by a key. `finalRate` is the rate plus both.
A charge `id` names a line for `removeChargeIds`; ids change whenever the load's charges are saved, so read the load
again before the next change (its `rowVersion` makes a stale call a `409` anyway). Carrier-side charges and cost are
never shown.
- Each stop has its `id`, for `update_load` and the arrival/departure calls.
- `notes` are the notes added with `add_load_note` (the newest 100, oldest first): when, by which key, and the text. The
load's own notes field in the TMS app is not part of the API.
- Times are UTC instants. `scheduledDate` is an appointment at the facility; `scheduledLocal` is the same instant as
the wall clock at the facility with its offset (`2026-12-01T09:00:00-06:00` is 9 in the morning in Chicago), in the
stop's `timeZoneId` (an IANA zone name). Show people `scheduledLocal`, never the UTC hour. Both are null when the
facility has no time zone. `arrivedAt` and `departedAt` are when the truck actually arrived and left (UTC).
- `assignment`: in `Carrier` mode the carrier, its drivers and its truck; in `Driver` mode your drivers and truck.
- `isSample`: `true` for the sample load a new workspace starts with, as in the list.
- An id from another workspace and an id that does not exist both return the same `404`.
## Documents of a load (scope `loads.read`)
Read only (no upload). `GET /api/public/v1/loads/{id}/documents` lists the documents of a load, newest first, 200 at
most: `id`, `loadId`, `category` (`BOL`, `POD`, `RateCon`, `CarrierInvoice`, `Receipt`, `Other`), `fileName`, `contentType`,
`sizeBytes`, `source` and `createdAt`. `GET /api/public/v1/documents/{id}/link` returns `{ "url": ..., "expiresAt": ... }`,
a presigned download link that lives 2 minutes at most. Ask again when it has expired. Treat the link as a secret: we do not
log it, and you should not either.
- Only `BOL`, `POD`, `Receipt` and `Other` documents are open to every `loads.read` key. `RateCon` and `CarrierInvoice` carry the carrier's pay, and any category added later is treated the same way: without `loads.rates` on the key they are not in the
list, and a link request for one is the same `404` as for a document that does not exist.
- A load or document of another workspace, an unknown id and a file still being uploaded are all `404`.
## Change the status: `PATCH /api/public/v1/loads/{id}/status` (scope `loads.write`)
Send the new status and the `rowVersion` from your last read of the load. Both are required. `status` must be one of
the six names a key may set ([Status values](/docs/tms/concepts/statuses/)), written exactly (case matters). Any other value (an unknown or not-allowed
name, a different case, a number, `null`) is a `422` whose `errors.status` lists the allowed values.
```
curl -X PATCH -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"status":"AtPickup","rowVersion":825}' \
https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516/status
```
```json
{ "id": "01a20943-75ec-7d91-9309-8c400cddd516", "loadNumber": "LD-2026-000123", "status": "AtPickup", "rowVersion": 828 }
```
- The change follows the same rules as the TMS app (for example, `Covered` needs a carrier, truck or driver on the
load) and has the same effects: the load's timeline and History show it as made by "API key: <key name>", and
marking a load `Delivered` notifies your dispatchers.
- Use the returned `rowVersion` for your next change. A `rowVersion` that is no longer current returns `409`, so a
call that is retried after it succeeded is not applied twice. On a `409`, read the load again and decide.
- Sending the status the load already has is accepted (`200`) and changes nothing: the response carries the same
`rowVersion`, and nothing is added to the timeline. The `rowVersion` must still be current.
## Change a load: `PATCH /api/public/v1/loads/{id}` (scope `loads.write`)
Send the `rowVersion` from your last read and only the fields you want to change; everything you leave out stays as it
is (including what a key cannot see, such as the carrier cost, and the load's status and assignment).
```
curl -X PATCH -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"rowVersion":825,"equipment":"Flatbed","stops":[
{"id":"01a20943-7611-7d01-9309-8c400cddd601","referenceNumber":"PO-88124"},
{"facilityId":"01a20943-7600-7c11-8a2e-333333333333","type":"Shipper","scheduledDate":"2026-12-01T14:00:00"},
{"id":"01a20943-7611-7d01-9309-8c400cddd602"}]}' \
https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516
```
| Field | Meaning |
|---|---|
| `rowVersion` | Required, from your last read. Not current: `409` (read the load again). Missing or `0`: `422` |
| `workOrderNumber` | At most 100 characters; `""` clears it. A reference this customer already uses on another load is a `409` `duplicate_load` (as on create); send `"allowDuplicate": true` to keep it |
| `equipment`, `type` | As on create |
| `stops` | When sent, the **whole** new stop list in visiting order (2 to 50, first a `Shipper`, last a `Consignee`, each at or after the one before); a stop left out is removed. An existing stop by its `id` (from the read) with only the fields to change: `facilityId`, `type`, `scheduledDate`, `appointmentConfirmed`, `commodity`, `quantity`, `weightLbs`, `referenceNumber`, `notes` (text `""` clears). A new stop has no `id` and needs `facilityId`, `type` and `scheduledDate`. Dates as on create (no offset = local time at that stop's facility). A new stop takes a `facilityId` only (addresses are for `create_load`). An existing stop keeps its recorded arrival and departure unless it moves to another facility |
| `rate` | Needs `loads.rates`, as on create |
| `addCharges` | Needs `loads.rates`. New lines `[{ "type", "description", "amount" }]` (as on create, at most 50), added after the stored ones. A line of a type the TMS already bills by itself on this load (for example `Detention` once an automatic detention line exists) is a `422`, whatever its description, so it is never billed twice |
| `removeChargeIds` | Needs `loads.rates`. Ids of lines from `otherCharges` to remove (at most 50). An id that is not a line people added on this load (an `autoCharges` line, another load's, unknown) is a `422` |
| `otherCharges` | Not accepted (`422`): a key never replaces the whole charge list. Every line not named in `removeChargeIds` stays exactly as stored, deductions (negative amounts) included |
| `status` | Not changed here: any value is a `422` pointing to `PATCH .../status` |
| `customerId`, `dispatcherId` | Not changed with a key: any value is a `422` (a person changes the customer and dispatcher in the TMS app). Other unknown fields are ignored |
| `carrierId`, `carrierCost` | Not changed here: any value is a `422` pointing to `PUT .../assignment` (`assign_load`) |
- The change runs through the same rules as an edit in the TMS app, and History shows "API key: <key name>".
- The answer is the load as `GET` returns it, with the new `rowVersion`. A body with only `rowVersion` changes nothing.
- A billed load (status `Invoiced`, or an invoice issued for it) keeps its customer, rate, charges, references and stops:
changing them is a `422` that says why (the same rule as the app), keyed on the fields you sent (`rate`,
`workOrderNumber`, `stops`, `addCharges`, `removeChargeIds`).
## Assign a load: `PUT /api/public/v1/loads/{id}/assignment` (scope `loads.write`)
Who carries the load: **either** a carrier **or** your own fleet. The assignment you send replaces the one the load had.
```
curl -X PUT -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"rowVersion":825,"carrierId":"01a20943-7a00-7c11-8a2e-444444444444",
"carrierDriverIds":["01a20943-7a00-7c11-8a2e-555555555555"],"carrierCost":1850.00}' \
https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516/assignment
```
| Field | Meaning |
|---|---|
| `rowVersion` | Required, from your last read. Not current: `409`. Missing or `0`: `422` |
| `carrierId` | A carrier of your workspace (`list_carriers`). Another workspace's or an unknown id is a `422`. A **blacklisted** or **inactive** carrier is a `422`; a carrier with **expired insurance** is the `422` `carrier_insurance_expired`, which only a person can override in the TMS app |
| `carrierDriverIds`, `carrierTruckId` | Optional, with `carrierId`: that carrier's drivers (the first is the primary driver, at most 10) and truck. An id of another carrier is a `422` |
| `carrierCost` | Optional, with `carrierId`: what you pay the carrier, USD, 0 to 99,999,999.99, at most 2 decimals. Needs `loads.rates` (`422` otherwise). Left out: the stored cost stays. It is never shown in any answer |
| `driverIds`, `truckId`, `trailerId` | Your own fleet instead: `truckId` and at least one driver (the first is the primary driver, at most 10) are required, `trailerId` is optional |
- Sending both a carrier and own-fleet fields, or neither, is a `422`.
- An `Open` load becomes `Covered`. A load that is `Completed`, `Invoiced`, `Cancelled` or `TONU` keeps its assignment (`422`).
- The change runs through the TMS app's own load edit, so its rules apply and the timeline and History show "API key:
<key name>". Re-sending the carrier a load already has does not check it again (so a carrier blacklisted later never
blocks changing its drivers). The answer is the load as `GET` returns it.
## Remove the assignment: `DELETE /api/public/v1/loads/{id}/assignment?rowVersion=825` (scope `loads.write`)
No carrier, driver, truck or trailer afterwards; a `Covered` load goes back to `Open`. `rowVersion` is required in the
query (`422` without it, `409` when not current). The stored carrier cost stays (send `carrierCost` on the next assign).
A load carried by no one is answered as it is, with nothing changed. A load already in transit (`AtPickup`, `EnRoute`,
`AtDelivery`, `Delivered`) or `Completed`, `Invoiced`, `Cancelled` or `TONU` keeps its assignment: `422` on `status`
("A person must change the carrier on a load already in transit; use TMS."). The TMS app can still change it.
## Add a note: `POST /api/public/v1/loads/{id}/notes` (scope `loads.write`)
```
curl -X POST -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 5d0c2b41-1b7e-4f1a-9a77-0c2c1e5f9b10" \
-d '{"text":"Driver called: 30 min late"}' \
https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516/notes
```
`201` with `{ "id", "createdAt", "by", "text" }`. `text` is required, at most 990 characters. Notes are never changed
or removed: each one is added to the load's timeline (shown in the TMS app with its time and "API key: <key name>")
and listed in `notes` when you read the load. Adding a note does not change the load's `rowVersion`. Send an
`Idempotency-Key` so a retry does not add it twice.
## Record arrival and departure: `PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival` and `.../departure` (scope `loads.write`)
```
curl -X PUT -H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"at":"2026-12-01T09:05:00"}' \
https://tms-api.techvia.software/api/public/v1/loads/01a20943-75ec-7d91-9309-8c400cddd516/stops/01a20943-7611-7d01-9309-8c400cddd601/arrival
```
- `at` is optional: left out (or an empty body) is now. With an offset it is that instant; without one, the local time
at the stop's facility. More than a day ahead is a `422`.
- The same rules as the TMS app's arrival and departure buttons: the earliest arrival wins (a later one changes
nothing), a stop has one departure (a second changes nothing), and detention is worked out from the two times by your
workspace's detention settings (shown in `autoCharges`). A departure before any arrival, or before the arrival, is a
`422`, so nothing is silently skipped.
- The load's timeline shows "Arrived @ <facility> (API key: <key name>)". The answer is the load as `GET` returns it.
An unknown stop or load is `404`. A call that collides with another change of the same load at that moment is a `409`
("Retry the call"); these calls take no `rowVersion`.
---
# Quotes
> List, create, price, win, lose and convert quotes into loads with the Techvia TMS public API (scope loads.rates).
Source: https://techvia.software/docs/tms/guides/quotes/
A quote is money (the rate you offer a customer, and the load it becomes), so **every** quote call needs `loads.rates`; a key
without it gets `403` naming the scope and uses no quota.
| Call | Does |
|---|---|
| `GET /api/public/v1/quotes` | List, newest first. Filters `status` (`Draft`, `Sent`, `Won`, `Lost`, `Expired`, exact case), `customerId`, `search` (quote number, customer, lane city), `page`, `pageSize` (1 to 50) |
| `GET /api/public/v1/quotes/{id}` | One quote with its `rowVersion` |
| `POST /api/public/v1/quotes` | Create a quote (a `Draft`). Takes an `Idempotency-Key` ([Idempotency](/docs/tms/concepts/idempotency/)) |
| `PATCH /api/public/v1/quotes/{id}/status` | Set `Draft`, `Sent`, `Won` or `Lost` |
| `POST /api/public/v1/quotes/{id}/convert` | Turn a `Won` quote into a load |
**Create** body: `customerId`, `originCity`, `originState`, `destCity`, `destState`, `quotedRate` are required. Optional:
`dispatcherId` (left out: the workspace's default dispatcher), `originFacilityId` and `destFacilityId` (your facilities, from
`GET /api/public/v1/facilities`), `equipment` (`DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, exact case),
`commodity`, `weightLbs`, `miles`, `pickupDate`, `deliveryDate`, `validUntil` (dates as `YYYY-MM-DD`, 2000 to 2100;
`validUntil` from today on, left out = your workspace's default validity), `notes`. `quotedRate` is USD, 0 to 99,999,999.99, at most
2 decimals. The names (customer, dispatcher, facilities) are taken from your records, never from the request; coordinates,
status, the suggested rate and the margin cannot be sent (they are ignored). A blacklisted or inactive customer, an inactive
dispatcher and an inactive facility are refused with `422` (a person uses them in the TMS app). The answer is `201` with the quote
(its `rowVersion` included); margin floor and the buy-rate basis behind it are never shown.
**Status**: send `status` and the `rowVersion` from your last read (`409` "changed since you read it" when it is no longer current).
`Lost` needs `lostReason`, one of your workspace's lost reasons (for example `Price`, `Capacity`, `Timing`, `NoResponse`), and
may have `lostNotes`; `lostReason` and `lostNotes` with any other status are a `422`. `Expired` is set by the system and a key
cannot set it. A quote already converted to a load keeps its status (`422`). Sending the status it already has changes nothing.
**Convert** runs the app's own idempotent conversion: converting twice is one load. The first call answers `201`
`{ "outcome": "Created", "load": { ... } }`, every later one `200` with `"outcome": "AlreadyConverted"` and the same load.
The load is `Open`, starts as a `Spot` load at the quoted rate and is shown as `GET /api/public/v1/loads/{id}` shows it, but
never with `rate`, `finalRate` or `otherCharges`. The public rules of [Loads](/docs/tms/guides/loads/) apply: the quote must be `Won` and have a pickup or
delivery date (`422` otherwise); a blacklisted or inactive customer or an inactive facility is refused; and both ends of the
lane must be facilities of yours (`originFacilityId` and `destFacilityId` on the quote, or a facility named exactly
"City, ST"). A lane of only a city and state is not looked up or created from a key (no address lookup is taken from your allowance): `422`
on `originCity` / `destCity`, and a person converts it in the TMS app. A quote converted before keeps answering with its load.
---
# Quickstart
> Make a Techvia TMS API key and read your first loads in five minutes with curl, JavaScript or Python.
Source: https://techvia.software/docs/tms/quickstart/
You need a Techvia TMS workspace with API access (see the [overview](/docs/tms/)) and admin rights in it.
## 1. Make a key
1. Open **Settings > API keys** in the TMS app and name the key.
2. Tick the scopes: `loads.read` and `directory.read` are enough for this page. See [scopes](/docs/tms/concepts/authentication/) for the rest.
3. Optionally set an expiry date, then copy the key. It starts with `tms_` and is shown **once**. Store it in your secret manager; Techvia keeps only a hash and cannot show it again.
Put it in an environment variable. Never put a key in a URL or query string, and never commit it.
```bash
export TMS_KEY=tms_YOUR_KEY
```
## 2. Check your key
`GET /api/public/v1/me` answers for any valid key, with no scope needed.
**curl**
```bash
curl -H "Authorization: Bearer $TMS_KEY" https://tms-api.techvia.software/api/public/v1/me
```
**JavaScript**
```js
const res = await fetch('https://tms-api.techvia.software/api/public/v1/me', {
headers: { Authorization: `Bearer ${process.env.TMS_KEY}` },
});
console.log(await res.json());
```
**Python**
```python
res = requests.get(
"https://tms-api.techvia.software/api/public/v1/me",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
print(res.json())
```
```json
{
"tenantName": "Acme Logistics", "keyName": "Zapier", "scopes": ["loads.read", "loads.write", "billing.read"], "expiresAt": null,
"quota": { "meter": "api.requests", "used": 1204, "limit": 10000, "remaining": 8796, "resetsAt": "2026-12-01T00:00:00+00:00" },
"rateLimits": [
{ "scope": "key", "limit": 60, "windowSeconds": 60 },
{ "scope": "workspace", "limit": 120, "windowSeconds": 60 },
{ "scope": "ip", "limit": 3000, "windowSeconds": 60 }
]
}
```
`quota` is your workspace's monthly request quota. `rateLimits` are the limits your requests meet ([rate limits](/docs/tms/concepts/rate-limits/)). `/me`
uses no quota, so it still answers when the quota is used up; it does count against the rate limits.
A `401` means the key is missing, malformed, unknown, revoked or expired. See [Errors](/docs/tms/concepts/errors/).
## 3. Read your first loads
`GET /api/public/v1/loads` needs `loads.read` and returns the newest loads first.
**curl**
```bash
curl -H "Authorization: Bearer $TMS_KEY" \
"https://tms-api.techvia.software/api/public/v1/loads?pageSize=2"
```
**JavaScript**
```js
const res = await fetch('https://tms-api.techvia.software/api/public/v1/loads?pageSize=2', {
headers: { Authorization: `Bearer ${process.env.TMS_KEY}` },
});
const { items, hasMore } = await res.json();
console.log(items.map((l) => `${l.loadNumber} ${l.status}`), hasMore);
```
**Python**
```python
res = requests.get(
"https://tms-api.techvia.software/api/public/v1/loads",
params={"pageSize": 2},
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
body = res.json()
print([f"{l['loadNumber']} {l['status']}" for l in body["items"]], body["hasMore"])
```
The answer is `{ "items": [...], "page", "pageSize", "total", "hasMore", "sort" }`. A new workspace starts with one sample load (number `SAMPLE-1`, `isSample: true`). All filters and the full response are in the [Loads guide](/docs/tms/guides/loads/).
## Next steps
- Create a load: [Loads guide](/docs/tms/guides/loads/) and always send an [`Idempotency-Key`](/docs/tms/concepts/idempotency/).
- Pick a job: [use cases](/docs/tms/use-cases/).
- Let an AI do it: [Use with your AI](/docs/tms/ai/).
- Stay inside the [rate limits](/docs/tms/concepts/rate-limits/): 60 requests a minute per key.
---
# API reference
> Every endpoint of the Techvia TMS public API v1 (36 operations), grouped by resource, generated from the OpenAPI description.
Source: https://techvia.software/docs/tms/reference/
Base URL `https://tms-api.techvia.software`. Every call is HTTPS with `Authorization: Bearer tms_...`. The machine-readable description is at [https://tms-api.techvia.software/openapi/public.json](https://tms-api.techvia.software/openapi/public.json); import it into Postman, Insomnia or a code generator.
This reference lists 36 operations and is generated from that description (version `v1`). The [guides](/docs/tms/guides/loads/) explain the rules behind each field, and [Concepts](/docs/tms/concepts/authentication/) cover authentication, errors, idempotency and rate limits.
| Resource | Operations |
|---|---|
| [Your key](/docs/tms/reference/key/) | 1 |
| [Loads](/docs/tms/reference/loads/) | 10 |
| [Load documents](/docs/tms/reference/documents/) | 2 |
| [Quotes](/docs/tms/reference/quotes/) | 5 |
| [Customers](/docs/tms/reference/customers/) | 4 |
| [Carriers](/docs/tms/reference/carriers/) | 4 |
| [Facilities](/docs/tms/reference/facilities/) | 3 |
| [Drivers](/docs/tms/reference/drivers/) | 2 |
| [Trucks](/docs/tms/reference/trucks/) | 2 |
| [Trailers](/docs/tms/reference/trailers/) | 2 |
| [Dispatchers](/docs/tms/reference/dispatchers/) | 1 |
---
# Carriers API reference
> Carriers endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/carriers/
4 endpoints. Rules, limits and edge cases are in the [Carriers guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List carriers](/docs/tms/reference/carriers/list-carriers/) | `GET /api/public/v1/carriers` | `directory.read` |
| [Create a carrier](/docs/tms/reference/carriers/create-a-carrier/) | `POST /api/public/v1/carriers` | `directory.write` |
| [Get a carrier](/docs/tms/reference/carriers/get-a-carrier/) | `GET /api/public/v1/carriers/{id}` | `directory.read` |
| [Change a carrier](/docs/tms/reference/carriers/change-a-carrier/) | `PATCH /api/public/v1/carriers/{id}` | `directory.write` |
---
# Change a carrier
> PATCH /api/public/v1/carriers/{id}, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/carriers/change-a-carrier/
`PATCH /api/public/v1/carriers/{id}`
**Scope:** `directory.write`. **MCP tool:** `update_carrier`. Rules and edge cases: [Carriers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Carriers guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `rowVersion` | integer | no | |
| `name` | string | no | |
| `dotNumber` | string | no | |
| `mcNumber` | string | no | |
| `scac` | string | no | |
| `contactName` | string | no | |
| `phone` | string | no | |
| `email` | string | no | |
| `liabilityExpiry` | string (date) | no | |
| `autoExpiry` | string (date) | no | |
| `cargoExpiry` | string (date) | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicCarrier` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcNumber` | string | |
| `dotNumber` | string | |
| `status` | enum CarrierStatus | One of `Active`, `Inactive` |
| `insuranceExpiry` | string (date) | |
| `phone` | string | |
| `email` | string | |
| `scac` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/carriers/$ID" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"rowVersion": 512,
"cargoExpiry": "2027-09-30"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/carriers/${id}`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rowVersion": 512,
"cargoExpiry": "2027-09-30"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/carriers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"rowVersion": 512,
"cargoExpiry": "2027-09-30"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000040",
"name": "Ironhorse Transport",
"mcNumber": "992344",
"dotNumber": "2841937",
"status": "Active",
"insuranceExpiry": "2027-03-31",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"scac": "IRHT",
"rowVersion": 513
}
```
Illustrative values.
---
# Create a carrier
> POST /api/public/v1/carriers, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/carriers/create-a-carrier/
`POST /api/public/v1/carriers`
**Scope:** `directory.write`. **MCP tool:** `create_carrier`. Rules and edge cases: [Carriers guide](/docs/tms/guides/directory/).
## Request body
Content type `application/json`. Limits and rules for each field are in the [Carriers guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `name` | string | no | |
| `dotNumber` | string | no | |
| `mcNumber` | string | no | |
| `scac` | string | no | |
| `contactName` | string | no | |
| `phone` | string | no | |
| `email` | string | no | |
| `liabilityExpiry` | string (date) | no | |
| `autoExpiry` | string (date) | no | |
| `cargoExpiry` | string (date) | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicCarrier` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcNumber` | string | |
| `dotNumber` | string | |
| `status` | enum CarrierStatus | One of `Active`, `Inactive` |
| `insuranceExpiry` | string (date) | |
| `phone` | string | |
| `email` | string | |
| `scac` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/carriers" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Ironhorse Transport",
"dotNumber": "2841937",
"mcNumber": "992344",
"scac": "IRHT",
"contactName": "Mark Bell",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"liabilityExpiry": "2027-03-31",
"autoExpiry": "2027-03-31",
"cargoExpiry": "2027-06-30"
}'
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/carriers`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Ironhorse Transport",
"dotNumber": "2841937",
"mcNumber": "992344",
"scac": "IRHT",
"contactName": "Mark Bell",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"liabilityExpiry": "2027-03-31",
"autoExpiry": "2027-03-31",
"cargoExpiry": "2027-06-30"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/carriers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Ironhorse Transport",
"dotNumber": "2841937",
"mcNumber": "992344",
"scac": "IRHT",
"contactName": "Mark Bell",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"liabilityExpiry": "2027-03-31",
"autoExpiry": "2027-03-31",
"cargoExpiry": "2027-06-30"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000040",
"name": "Ironhorse Transport",
"mcNumber": "992344",
"dotNumber": "2841937",
"status": "Active",
"insuranceExpiry": "2027-03-31",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"scac": "IRHT",
"rowVersion": 512
}
```
Illustrative values. insuranceExpiry is the earliest of the liability, auto and cargo expiries.
---
# Get a carrier
> GET /api/public/v1/carriers/{id}, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/carriers/get-a-carrier/
`GET /api/public/v1/carriers/{id}`
**Scope:** `directory.read`. **MCP tool:** `get_carrier`. Rules and edge cases: [Carriers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicCarrier` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcNumber` | string | |
| `dotNumber` | string | |
| `status` | enum CarrierStatus | One of `Active`, `Inactive` |
| `insuranceExpiry` | string (date) | |
| `phone` | string | |
| `email` | string | |
| `scac` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/carriers/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/carriers/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/carriers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000040",
"name": "Ironhorse Transport",
"mcNumber": "992344",
"dotNumber": "2841937",
"status": "Active",
"insuranceExpiry": "2027-03-31",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"scac": "IRHT",
"rowVersion": 512
}
```
Illustrative values.
---
# List carriers
> GET /api/public/v1/carriers, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/carriers/list-carriers/
`GET /api/public/v1/carriers`
**Scope:** `directory.read`. **MCP tool:** `list_carriers`. Rules and edge cases: [Carriers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicCarrier` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicCarrier[] | |
| `items[].id` | string (uuid) | |
| `items[].name` | string | |
| `items[].mcNumber` | string | |
| `items[].dotNumber` | string | |
| `items[].status` | enum CarrierStatus | One of `Active`, `Inactive` |
| `items[].insuranceExpiry` | string (date) | |
| `items[].phone` | string | |
| `items[].email` | string | |
| `items[].scac` | string | |
| `items[].rowVersion` | integer | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/carriers" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/carriers`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/carriers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000040",
"name": "Ironhorse Transport",
"mcNumber": "992344",
"dotNumber": "2841937",
"status": "Active",
"insuranceExpiry": "2027-03-31",
"phone": "214-555-0188",
"email": "dispatch@ironhorse.example",
"scac": "IRHT",
"rowVersion": 512
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Customers API reference
> Customers endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/customers/
4 endpoints. Rules, limits and edge cases are in the [Customers guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List customers](/docs/tms/reference/customers/list-customers/) | `GET /api/public/v1/customers` | `directory.read` |
| [Create a customer](/docs/tms/reference/customers/create-a-customer/) | `POST /api/public/v1/customers` | `directory.write` |
| [Get a customer](/docs/tms/reference/customers/get-a-customer/) | `GET /api/public/v1/customers/{id}` | `directory.read` |
| [Change a customer](/docs/tms/reference/customers/change-a-customer/) | `PATCH /api/public/v1/customers/{id}` | `directory.write` |
---
# Change a customer
> PATCH /api/public/v1/customers/{id}, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/customers/change-a-customer/
`PATCH /api/public/v1/customers/{id}`
**Scope:** `directory.write`. **MCP tool:** `update_customer`. Rules and edge cases: [Customers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Customers guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `rowVersion` | integer | no | |
| `name` | string | no | |
| `mcType` | string | no | |
| `mcNumber` | string | no | |
| `street` | string | no | |
| `city` | string | no | |
| `state` | string | no | |
| `zip` | string | no | |
| `country` | string | no | |
| `contactName` | string | no | |
| `phone` | string | no | |
| `email` | string | no | |
| `confirmNew` | boolean | no | Default `false` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicCustomer` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcType` | string | |
| `mcNumber` | string | |
| `city` | string | |
| `state` | string | |
| `status` | enum CustomerStatus | One of `Active`, `Inactive` |
| `contactName` | string | |
| `phone` | string | |
| `email` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/customers/$ID" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"rowVersion": 311,
"phone": "602-555-0199"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/customers/${id}`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rowVersion": 311,
"phone": "602-555-0199"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/customers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"rowVersion": 311,
"phone": "602-555-0199"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000030",
"name": "FreshMart Stores",
"mcType": "MC",
"mcNumber": "MC-773120",
"city": "Phoenix",
"state": "AZ",
"status": "Active",
"contactName": "Lena Ortiz",
"phone": "602-555-0199",
"email": "ap@freshmart.example",
"rowVersion": 312
}
```
Illustrative values.
---
# Create a customer
> POST /api/public/v1/customers, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/customers/create-a-customer/
`POST /api/public/v1/customers`
**Scope:** `directory.write`. **MCP tool:** `create_customer`. Rules and edge cases: [Customers guide](/docs/tms/guides/directory/).
## Request body
Content type `application/json`. Limits and rules for each field are in the [Customers guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `name` | string | no | |
| `mcType` | string | no | |
| `mcNumber` | string | no | |
| `street` | string | no | |
| `city` | string | no | |
| `state` | string | no | |
| `zip` | string | no | |
| `country` | string | no | |
| `contactName` | string | no | |
| `phone` | string | no | |
| `email` | string | no | |
| `confirmNew` | boolean | no | Default `false` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicCustomer` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcType` | string | |
| `mcNumber` | string | |
| `city` | string | |
| `state` | string | |
| `status` | enum CustomerStatus | One of `Active`, `Inactive` |
| `contactName` | string | |
| `phone` | string | |
| `email` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/customers" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "FreshMart Stores",
"mcType": "MC",
"mcNumber": "MC-773120",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"contactName": "Lena Ortiz",
"phone": "602-555-0142",
"email": "ap@freshmart.example"
}'
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/customers`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"name": "FreshMart Stores",
"mcType": "MC",
"mcNumber": "MC-773120",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"contactName": "Lena Ortiz",
"phone": "602-555-0142",
"email": "ap@freshmart.example"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/customers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "FreshMart Stores",
"mcType": "MC",
"mcNumber": "MC-773120",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"contactName": "Lena Ortiz",
"phone": "602-555-0142",
"email": "ap@freshmart.example"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000030",
"name": "FreshMart Stores",
"mcType": "MC",
"mcNumber": "MC-773120",
"city": "Phoenix",
"state": "AZ",
"status": "Active",
"contactName": "Lena Ortiz",
"phone": "602-555-0142",
"email": "ap@freshmart.example",
"rowVersion": 311
}
```
Illustrative values.
---
# Get a customer
> GET /api/public/v1/customers/{id}, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/customers/get-a-customer/
`GET /api/public/v1/customers/{id}`
**Scope:** `directory.read`. **MCP tool:** `get_customer`. Rules and edge cases: [Customers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicCustomer` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `mcType` | string | |
| `mcNumber` | string | |
| `city` | string | |
| `state` | string | |
| `status` | enum CustomerStatus | One of `Active`, `Inactive` |
| `contactName` | string | |
| `phone` | string | |
| `email` | string | |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/customers/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/customers/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/customers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods",
"mcType": null,
"mcNumber": null,
"city": "Dallas",
"state": "TX",
"status": "Active",
"contactName": "Jordan Price",
"phone": "214-555-0101",
"email": "logistics@acmefoods.example",
"rowVersion": 310
}
```
Illustrative values.
---
# List customers
> GET /api/public/v1/customers, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/customers/list-customers/
`GET /api/public/v1/customers`
**Scope:** `directory.read`. **MCP tool:** `list_customers`. Rules and edge cases: [Customers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicCustomer` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicCustomer[] | |
| `items[].id` | string (uuid) | |
| `items[].name` | string | |
| `items[].mcType` | string | |
| `items[].mcNumber` | string | |
| `items[].city` | string | |
| `items[].state` | string | |
| `items[].status` | enum CustomerStatus | One of `Active`, `Inactive` |
| `items[].contactName` | string | |
| `items[].phone` | string | |
| `items[].email` | string | |
| `items[].rowVersion` | integer | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/customers" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/customers`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/customers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods",
"mcType": null,
"mcNumber": null,
"city": "Dallas",
"state": "TX",
"status": "Active",
"contactName": "Jordan Price",
"phone": "214-555-0101",
"email": "logistics@acmefoods.example",
"rowVersion": 310
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Dispatchers API reference
> Dispatchers endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/dispatchers/
1 endpoint. Rules, limits and edge cases are in the [Dispatchers guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List dispatchers](/docs/tms/reference/dispatchers/list-dispatchers/) | `GET /api/public/v1/dispatchers` | `directory.read` |
---
# List dispatchers
> GET /api/public/v1/dispatchers, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/dispatchers/list-dispatchers/
`GET /api/public/v1/dispatchers`
**Scope:** `directory.read`. **MCP tool:** `list_dispatchers`. Rules and edge cases: [Dispatchers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicDispatcher` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicDispatcher[] | |
| `items[].id` | string (uuid) | |
| `items[].name` | string | |
| `items[].status` | enum DispatcherStatus | One of `Active`, `Inactive` |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/dispatchers" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/dispatchers`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/dispatchers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000090",
"name": "Dana Ruiz",
"status": "Active"
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Load documents API reference
> Load documents endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/documents/
2 endpoints. Rules, limits and edge cases are in the [Load documents guide](/docs/tms/guides/loads/).
| Endpoint | Call | Scope |
|---|---|---|
| [List the documents of a load](/docs/tms/reference/documents/list-the-documents-of-a-load/) | `GET /api/public/v1/loads/{id}/documents` | `loads.read` |
| [Get a document link](/docs/tms/reference/documents/get-a-document-link/) | `GET /api/public/v1/documents/{id}/link` | `loads.read` |
---
# Get a document link
> GET /api/public/v1/documents/{id}/link, scope loads.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/documents/get-a-document-link/
`GET /api/public/v1/documents/{id}/link`
**Scope:** `loads.read` (`RateCon` and `CarrierInvoice` documents: also `loads.rates`). **MCP tool:** `get_document_link`. Rules and edge cases: [Load documents guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicDocumentLink` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `url` | string | |
| `expiresAt` | string (date-time) | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/documents/$ID/link" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/documents/${id}/link`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/documents/{id}/link",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"url": "https://files.example.com/pod-LD-2026-000123.pdf?X-Amz-Expires=120&X-Amz-Signature=...",
"expiresAt": "2026-12-02T18:20:00+00:00"
}
```
Illustrative values. Illustrative URL. The link lives 2 minutes at most; treat it as a secret.
---
# List the documents of a load
> GET /api/public/v1/loads/{id}/documents, scope loads.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/documents/list-the-documents-of-a-load/
`GET /api/public/v1/loads/{id}/documents`
**Scope:** `loads.read` (`RateCon` and `CarrierInvoice` documents: also `loads.rates`). **MCP tool:** `list_load_documents`. Rules and edge cases: [Load documents guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicDocument[]` |
| `404` | Not Found | `ProblemDetails` |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/loads/$ID/documents" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/documents`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/documents",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
[
{
"id": "01a20943-7a10-7c11-8a2e-000000000070",
"loadId": "01a20943-75ec-7d91-9309-8c400cddd516",
"category": "POD",
"fileName": "pod-LD-2026-000123.pdf",
"contentType": "application/pdf",
"sizeBytes": 482113,
"source": "Uploaded",
"createdAt": "2026-12-02T18:12:09.331004+00:00"
},
{
"id": "01a20943-7a10-7c11-8a2e-000000000071",
"loadId": "01a20943-75ec-7d91-9309-8c400cddd516",
"category": "BOL",
"fileName": "bol-LD-2026-000123.pdf",
"contentType": "application/pdf",
"sizeBytes": 215890,
"source": "Uploaded",
"createdAt": "2026-12-01T16:02:47.120555+00:00"
}
]
```
Illustrative values. RateCon and CarrierInvoice documents are listed only for a key with loads.rates.
---
# Drivers API reference
> Drivers endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/drivers/
2 endpoints. Rules, limits and edge cases are in the [Drivers guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List drivers](/docs/tms/reference/drivers/list-drivers/) | `GET /api/public/v1/drivers` | `directory.read` |
| [Get a driver](/docs/tms/reference/drivers/get-a-driver/) | `GET /api/public/v1/drivers/{id}` | `directory.read` |
---
# Get a driver
> GET /api/public/v1/drivers/{id}, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/drivers/get-a-driver/
`GET /api/public/v1/drivers/{id}`
**Scope:** `directory.read`. **MCP tool:** `get_driver`. Rules and edge cases: [Drivers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicDriver` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `status` | enum DriverStatus | One of `Active`, `Inactive`, `OnLeave`, `Terminated` |
| `phone` | string | |
| `currentTruck` | string | |
| `currentLoadNumber` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/drivers/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/drivers/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/drivers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000019",
"name": "Sam Lee",
"status": "Active",
"phone": "469-555-0123",
"currentTruck": "T-101",
"currentLoadNumber": "LD-2026-000123"
}
```
Illustrative values.
---
# List drivers
> GET /api/public/v1/drivers, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/drivers/list-drivers/
`GET /api/public/v1/drivers`
**Scope:** `directory.read`. **MCP tool:** `list_drivers`. Rules and edge cases: [Drivers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicDriver` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicDriver[] | |
| `items[].id` | string (uuid) | |
| `items[].name` | string | |
| `items[].status` | enum DriverStatus | One of `Active`, `Inactive`, `OnLeave`, `Terminated` |
| `items[].phone` | string | |
| `items[].currentTruck` | string | |
| `items[].currentLoadNumber` | string | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/drivers" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/drivers`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/drivers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000019",
"name": "Sam Lee",
"status": "Active",
"phone": "469-555-0123",
"currentTruck": "T-101",
"currentLoadNumber": "LD-2026-000123"
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Facilities API reference
> Facilities endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/facilities/
3 endpoints. Rules, limits and edge cases are in the [Facilities guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List facilities](/docs/tms/reference/facilities/list-facilities/) | `GET /api/public/v1/facilities` | `directory.read` |
| [Create a facility](/docs/tms/reference/facilities/create-a-facility/) | `POST /api/public/v1/facilities` | `directory.write` |
| [Change a facility](/docs/tms/reference/facilities/change-a-facility/) | `PATCH /api/public/v1/facilities/{id}` | `directory.write` |
---
# Change a facility
> PATCH /api/public/v1/facilities/{id}, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/facilities/change-a-facility/
`PATCH /api/public/v1/facilities/{id}`
**Scope:** `directory.write`. **MCP tool:** `update_facility`. Rules and edge cases: [Facilities guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Facilities guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `rowVersion` | integer | no | |
| `name` | string | no | |
| `code` | string | no | |
| `confirmNew` | boolean | no | Default `false` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicFacility` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `code` | string | |
| `street` | string | |
| `city` | string | |
| `state` | string | |
| `zip` | string | |
| `timeZoneId` | string | |
| `status` | enum FacilityStatus | One of `Active`, `Inactive` |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/facilities/$ID" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"rowVersion": 208,
"code": "FM-PHX-1"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/facilities/${id}`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rowVersion": 208,
"code": "FM-PHX-1"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/facilities/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"rowVersion": 208,
"code": "FM-PHX-1"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000050",
"name": "FreshMart Phoenix",
"code": "FM-PHX-1",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"timeZoneId": "America/Phoenix",
"status": "Active",
"rowVersion": 209
}
```
Illustrative values.
---
# Create a facility
> POST /api/public/v1/facilities, scope directory.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/facilities/create-a-facility/
`POST /api/public/v1/facilities`
**Scope:** `directory.write`. **MCP tool:** `create_facility`. Rules and edge cases: [Facilities guide](/docs/tms/guides/directory/).
## Request body
Content type `application/json`. Limits and rules for each field are in the [Facilities guide](/docs/tms/guides/directory/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `name` | string | no | |
| `street` | string | no | |
| `city` | string | no | |
| `state` | string | no | |
| `zip` | string | no | |
| `country` | string | no | |
| `code` | string | no | |
| `confirmNew` | boolean | no | Default `false` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicFacility` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `name` | string | |
| `code` | string | |
| `street` | string | |
| `city` | string | |
| `state` | string | |
| `zip` | string | |
| `timeZoneId` | string | |
| `status` | enum FacilityStatus | One of `Active`, `Inactive` |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/facilities" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"code": "FM-PHX"
}'
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/facilities`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"code": "FM-PHX"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/facilities",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"code": "FM-PHX"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000050",
"name": "FreshMart Phoenix",
"code": "FM-PHX",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"timeZoneId": "America/Phoenix",
"status": "Active",
"rowVersion": 208
}
```
Illustrative values. The time zone comes from the address lookup.
---
# List facilities
> GET /api/public/v1/facilities, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/facilities/list-facilities/
`GET /api/public/v1/facilities`
**Scope:** `directory.read`. **MCP tool:** `search_facilities`. Rules and edge cases: [Facilities guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicFacility` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicFacility[] | |
| `items[].id` | string (uuid) | |
| `items[].name` | string | |
| `items[].code` | string | |
| `items[].street` | string | |
| `items[].city` | string | |
| `items[].state` | string | |
| `items[].zip` | string | |
| `items[].timeZoneId` | string | |
| `items[].status` | enum FacilityStatus | One of `Active`, `Inactive` |
| `items[].rowVersion` | integer | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/facilities" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/facilities`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/facilities",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000050",
"name": "FreshMart Phoenix",
"code": "FM-PHX",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001",
"timeZoneId": "America/Phoenix",
"status": "Active",
"rowVersion": 208
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Your key API reference
> Your key endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/key/
1 endpoint. Rules, limits and edge cases are in the [Your key guide](/docs/tms/quickstart/).
| Endpoint | Call | Scope |
|---|---|---|
| [Check your key](/docs/tms/reference/key/check-your-key/) | `GET /api/public/v1/me` | none |
---
# Check your key
> GET /api/public/v1/me. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/key/check-your-key/
`GET /api/public/v1/me`
**Scope:** any valid key, no scope needed. Rules and edge cases: [Your key guide](/docs/tms/quickstart/).
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicMeDto` |
| `401` | Unauthorized | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `tenantName` | string | |
| `keyName` | string | |
| `scopes` | string[] | |
| `expiresAt` | string (date-time) | |
| `quota` | PublicApiQuota | |
| `quota.meter` | string | |
| `quota.used` | integer (int64) | |
| `quota.limit` | integer (int64) | |
| `quota.remaining` | integer (int64) | |
| `quota.resetsAt` | string (date-time) | |
| `rateLimits` | PublicApiRateLimit[] | |
| `rateLimits[].scope` | string | |
| `rateLimits[].limit` | integer | |
| `rateLimits[].windowSeconds` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/me" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/me`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/me",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"tenantName": "Acme Logistics",
"keyName": "Zapier",
"scopes": [
"loads.read",
"loads.write",
"billing.read"
],
"expiresAt": null,
"quota": {
"meter": "api.requests",
"used": 1204,
"limit": 10000,
"remaining": 8796,
"resetsAt": "2026-12-01T00:00:00+00:00"
},
"rateLimits": [
{
"scope": "key",
"limit": 60,
"windowSeconds": 60
},
{
"scope": "workspace",
"limit": 120,
"windowSeconds": 60
},
{
"scope": "ip",
"limit": 3000,
"windowSeconds": 60
}
]
}
```
Illustrative values. The rate limits are the real ones (each per 60 seconds); the quota limit depends on your plan.
---
# Loads API reference
> Loads endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/loads/
10 endpoints. Rules, limits and edge cases are in the [Loads guide](/docs/tms/guides/loads/).
| Endpoint | Call | Scope |
|---|---|---|
| [List loads](/docs/tms/reference/loads/list-loads/) | `GET /api/public/v1/loads` | `loads.read` |
| [Create a load](/docs/tms/reference/loads/create-a-load/) | `POST /api/public/v1/loads` | `loads.write` |
| [Get a load](/docs/tms/reference/loads/get-a-load/) | `GET /api/public/v1/loads/{id}` | `loads.read` |
| [Change a load](/docs/tms/reference/loads/change-a-load/) | `PATCH /api/public/v1/loads/{id}` | `loads.write` |
| [Change the status](/docs/tms/reference/loads/change-the-status/) | `PATCH /api/public/v1/loads/{id}/status` | `loads.write` |
| [Assign a load](/docs/tms/reference/loads/assign-a-load/) | `PUT /api/public/v1/loads/{id}/assignment` | `loads.write` |
| [Remove the assignment](/docs/tms/reference/loads/remove-the-assignment/) | `DELETE /api/public/v1/loads/{id}/assignment` | `loads.write` |
| [Add a note](/docs/tms/reference/loads/add-a-note/) | `POST /api/public/v1/loads/{id}/notes` | `loads.write` |
| [Record arrival at a stop](/docs/tms/reference/loads/record-arrival-at-a-stop/) | `PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival` | `loads.write` |
| [Record departure from a stop](/docs/tms/reference/loads/record-departure-from-a-stop/) | `PUT /api/public/v1/loads/{id}/stops/{stopId}/departure` | `loads.write` |
---
# Add a note
> POST /api/public/v1/loads/{id}/notes, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/add-a-note/
`POST /api/public/v1/loads/{id}/notes`
**Scope:** `loads.write`. **MCP tool:** `add_load_note`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `text` | string | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicLoadNote` |
| `404` | Not Found | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `createdAt` | string (date-time) | |
| `by` | string | |
| `text` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/loads/$ID/notes" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"text": "Driver called: 30 min late"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/notes`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"text": "Driver called: 30 min late"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/notes",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"text": "Driver called: 30 min late"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
```
Illustrative values.
---
# Assign a load
> PUT /api/public/v1/loads/{id}/assignment, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/assign-a-load/
`PUT /api/public/v1/loads/{id}/assignment`
**Scope:** `loads.write` (`carrierCost`: also `loads.rates`). **MCP tool:** `assign_load`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `rowVersion` | integer | no | |
| `carrierId` | string (uuid) | no | |
| `carrierDriverIds` | string (uuid)[] | no | |
| `carrierTruckId` | string (uuid) | no | |
| `carrierCost` | number | no | |
| `driverIds` | string (uuid)[] | no | |
| `truckId` | string (uuid) | no | |
| `trailerId` | string (uuid) | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PUT "https://tms-api.techvia.software/api/public/v1/loads/$ID/assignment" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"rowVersion": 825,
"driverIds": [
"01a20943-7a10-7c11-8a2e-000000000019"
],
"truckId": "01a20943-7a10-7c11-8a2e-000000000020"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/assignment`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rowVersion": 825,
"driverIds": [
"01a20943-7a10-7c11-8a2e-000000000019"
],
"truckId": "01a20943-7a10-7c11-8a2e-000000000020"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PUT",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/assignment",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"rowVersion": 825,
"driverIds": [
"01a20943-7a10-7c11-8a2e-000000000019"
],
"truckId": "01a20943-7a10-7c11-8a2e-000000000020"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "Driver",
"driverNames": [
"Sam Lee"
],
"truck": "T-101",
"trailer": null,
"carrierName": null
},
"rowVersion": 826,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-12-01T17:40:12.204118+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
]
}
```
Illustrative values. An Open load becomes Covered. With billing.read or loads.rates also the billing fields (as on Get a load).
---
# Change a load
> PATCH /api/public/v1/loads/{id}, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/change-a-load/
`PATCH /api/public/v1/loads/{id}`
**Scope:** `loads.write` (`rate`, `addCharges`, `removeChargeIds`: also `loads.rates`). **MCP tool:** `update_load`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `rowVersion` | integer | no | |
| `workOrderNumber` | string | no | |
| `equipment` | string | no | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other` |
| `type` | string | no | One of `Spot`, `Dedicated`, `Contract` |
| `rate` | number | no | |
| `stops` | PublicLoadStopPatch[] | no | |
| `stops[].id` | string (uuid) | no | |
| `stops[].facilityId` | string (uuid) | no | |
| `stops[].type` | string | no | One of `Shipper`, `Consignee` |
| `stops[].scheduledDate` | any (ISO 8601 date-time) | no | |
| `stops[].appointmentConfirmed` | boolean | no | |
| `stops[].commodity` | string | no | |
| `stops[].quantity` | integer | no | |
| `stops[].weightLbs` | number | no | |
| `stops[].referenceNumber` | string | no | |
| `stops[].notes` | string | no | |
| `allowDuplicate` | boolean | no | Default `false` |
| `addCharges` | PublicLoadChargeInput[] | no | |
| `addCharges[].type` | string | no | |
| `addCharges[].description` | string | no | |
| `addCharges[].amount` | number | no | |
| `removeChargeIds` | string (uuid)[] | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/loads/$ID" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"rowVersion": 825,
"equipment": "Flatbed"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rowVersion": 825,
"equipment": "Flatbed"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"rowVersion": 825,
"equipment": "Flatbed"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Flatbed",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "Driver",
"driverNames": [
"Sam Lee"
],
"truck": "T-101",
"trailer": "R-22",
"carrierName": null
},
"rowVersion": 826,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-12-01T17:40:12.204118+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
]
}
```
Illustrative values. With billing.read or loads.rates also rate, finalRate, otherCharges, autoCharges (as on Get a load).
---
# Change the status
> PATCH /api/public/v1/loads/{id}/status, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/change-the-status/
`PATCH /api/public/v1/loads/{id}/status`
**Scope:** `loads.write`. **MCP tool:** `update_load_status`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `status` | string | yes | One of `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered` |
| `rowVersion` | integer | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoadStatusResult` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `rowVersion` | integer | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/loads/$ID/status" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "AtPickup",
"rowVersion": 825
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/status`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"status": "AtPickup",
"rowVersion": 825
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/status",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"status": "AtPickup",
"rowVersion": 825
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"status": "AtPickup",
"rowVersion": 828
}
```
Illustrative values.
---
# Create a load
> POST /api/public/v1/loads, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/create-a-load/
`POST /api/public/v1/loads`
**Scope:** `loads.write` (`rate`, `otherCharges`: also `loads.rates`). **MCP tool:** `create_load`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Request body
Content type `application/json`. Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `customerId` | string (uuid) | yes | |
| `stops` | PublicLoadStopInput[] | yes | |
| `stops[].facilityId` | string (uuid) | no | |
| `stops[].address` | PublicStopAddress | no | |
| `stops[].address.name` | string | no | |
| `stops[].address.street` | string | no | |
| `stops[].address.city` | string | no | |
| `stops[].address.state` | string | no | |
| `stops[].address.zip` | string | no | |
| `stops[].address.country` | string | no | |
| `stops[].type` | string | no | One of `Shipper`, `Consignee` |
| `stops[].scheduledDate` | any (ISO 8601 date-time) | no | |
| `stops[].appointmentConfirmed` | boolean | no | Default `false` |
| `stops[].commodity` | string | no | |
| `stops[].quantity` | integer | no | |
| `stops[].weightLbs` | number | no | |
| `stops[].referenceNumber` | string | no | |
| `stops[].notes` | string | no | |
| `dispatcherId` | string (uuid) | no | |
| `workOrderNumber` | string | no | |
| `equipment` | string | no | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other` |
| `type` | string | no | One of `Spot`, `Dedicated`, `Contract` |
| `rate` | number | no | |
| `otherCharges` | PublicLoadChargeInput[] | no | |
| `otherCharges[].type` | string | no | |
| `otherCharges[].description` | string | no | |
| `otherCharges[].amount` | number | no | |
| `allowDuplicate` | boolean | no | Default `false` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicLoad` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/loads" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"workOrderNumber": "WO-4471",
"equipment": "Reefer",
"stops": [
{
"facilityId": "01a20943-7600-7c11-8a2e-111111111111",
"type": "Shipper",
"scheduledDate": "2026-12-01T09:00:00-06:00",
"commodity": "Produce",
"weightLbs": 38000
},
{
"address": {
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001"
},
"type": "Consignee",
"scheduledDate": "2026-12-02T09:00:00-07:00"
}
]
}'
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"workOrderNumber": "WO-4471",
"equipment": "Reefer",
"stops": [
{
"facilityId": "01a20943-7600-7c11-8a2e-111111111111",
"type": "Shipper",
"scheduledDate": "2026-12-01T09:00:00-06:00",
"commodity": "Produce",
"weightLbs": 38000
},
{
"address": {
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001"
},
"type": "Consignee",
"scheduledDate": "2026-12-02T09:00:00-07:00"
}
]
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/loads",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"workOrderNumber": "WO-4471",
"equipment": "Reefer",
"stops": [
{
"facilityId": "01a20943-7600-7c11-8a2e-111111111111",
"type": "Shipper",
"scheduledDate": "2026-12-01T09:00:00-06:00",
"commodity": "Produce",
"weightLbs": 38000
},
{
"address": {
"name": "FreshMart Phoenix",
"street": "9 Market St",
"city": "Phoenix",
"state": "AZ",
"zip": "85001"
},
"type": "Consignee",
"scheduledDate": "2026-12-02T09:00:00-07:00"
}
]
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Open",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "None",
"driverNames": [],
"truck": null,
"trailer": null,
"carrierName": null
},
"rowVersion": 824,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": false,
"commodity": "Produce",
"quantity": null,
"weightLbs": 38000,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-11-23T16:35:45.886322+00:00",
"isSample": false,
"notes": []
}
```
Illustrative values. A new load starts Open. Never with rate, finalRate or otherCharges, whatever the key's scopes.
---
# Get a load
> GET /api/public/v1/loads/{id}, scope loads.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/get-a-load/
`GET /api/public/v1/loads/{id}`
**Scope:** `loads.read`. **MCP tool:** `get_load`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/loads/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "Driver",
"driverNames": [
"Sam Lee"
],
"truck": "T-101",
"trailer": "R-22",
"carrierName": null
},
"rowVersion": 825,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-11-23T16:35:45.886322+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
],
"rate": 2400,
"finalRate": 2575,
"otherCharges": [
{
"id": "01a20943-7800-7b00-9309-8c400cddd801",
"type": "Lumper",
"description": "Lumper at pickup",
"amount": 75
}
],
"autoCharges": [
{
"id": "01a20943-7800-7b00-9309-8c400cddd802",
"type": "Detention",
"description": "Detention at Acme DC Dallas — 2.0h over 2.0h free",
"amount": 100
}
]
}
```
Illustrative values. rate, finalRate, otherCharges and autoCharges only for a key with billing.read or loads.rates.
---
# List loads
> GET /api/public/v1/loads, scope loads.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/list-loads/
`GET /api/public/v1/loads`
**Scope:** `loads.read`. **MCP tool:** `search_loads`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `status` | query | string | no | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `customerId` | query | string (uuid) | no | |
| `driverId` | query | string (uuid) | no | |
| `carrierId` | query | string (uuid) | no | |
| `pickupFrom` | query | string (date) | no | |
| `pickupTo` | query | string (date) | no | |
| `deliveryFrom` | query | string (date) | no | |
| `deliveryTo` | query | string (date) | no | |
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicLoadListItem` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicLoadListItem[] | |
| `items[].id` | string (uuid) | |
| `items[].loadNumber` | string | |
| `items[].workOrderNumber` | string | |
| `items[].status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `items[].equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `items[].customerName` | string | |
| `items[].dispatcherName` | string | |
| `items[].origin` | string | |
| `items[].destination` | string | |
| `items[].pickupDate` | string (date-time) | |
| `items[].pickupLocal` | string | |
| `items[].pickupTimeZoneId` | string | |
| `items[].deliveryDate` | string (date-time) | |
| `items[].deliveryLocal` | string | |
| `items[].deliveryTimeZoneId` | string | |
| `items[].assignmentMode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `items[].assignedTo` | string | |
| `items[].rowVersion` | integer | |
| `items[].isSample` | boolean | |
| `items[].finalRate` | number | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/loads" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/loads",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"equipment": "Reefer",
"customerName": "Acme Foods",
"dispatcherName": "Dana Ruiz",
"origin": "Acme DC Dallas",
"destination": "FreshMart Phoenix",
"pickupDate": "2026-12-01T15:00:00+00:00",
"pickupLocal": "2026-12-01T09:00:00-06:00",
"pickupTimeZoneId": "America/Chicago",
"deliveryDate": "2026-12-02T16:00:00+00:00",
"deliveryLocal": "2026-12-02T09:00:00-07:00",
"deliveryTimeZoneId": "America/Phoenix",
"assignmentMode": "Driver",
"assignedTo": "Sam Lee",
"rowVersion": 825,
"isSample": false,
"finalRate": 2475
}
],
"page": 1,
"pageSize": 2,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values. finalRate only for a key with billing.read or loads.rates.
---
# Record arrival at a stop
> PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/record-arrival-at-a-stop/
`PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival`
**Scope:** `loads.write`. **MCP tool:** `record_stop_arrival`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
| `stopId` | path | string (uuid) | yes | |
## Request body
Content type `application/json` (optional body). Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `at` | any (ISO 8601 date-time) | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PUT "https://tms-api.techvia.software/api/public/v1/loads/$ID/stops/$STOP_ID/arrival" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"at": "2026-12-01T09:05:00"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const stopId = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/stops/${stopId}/arrival`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"at": "2026-12-01T09:05:00"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
stopId = "..." # from a list or read call
res = requests.request(
"PUT",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/stops/{stopId}/arrival",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"at": "2026-12-01T09:05:00"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "Driver",
"driverNames": [
"Sam Lee"
],
"truck": "T-101",
"trailer": "R-22",
"carrierName": null
},
"rowVersion": 826,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": "2026-12-01T15:05:00+00:00",
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-12-01T17:40:12.204118+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
]
}
```
Illustrative values. arrivedAt is UTC (09:05 in Chicago). With billing.read or loads.rates also the billing fields, detention in autoCharges.
---
# Record departure from a stop
> PUT /api/public/v1/loads/{id}/stops/{stopId}/departure, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/record-departure-from-a-stop/
`PUT /api/public/v1/loads/{id}/stops/{stopId}/departure`
**Scope:** `loads.write`. **MCP tool:** `record_stop_departure`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
| `stopId` | path | string (uuid) | yes | |
## Request body
Content type `application/json` (optional body). Limits and rules for each field are in the [Loads guide](/docs/tms/guides/loads/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `at` | any (ISO 8601 date-time) | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PUT "https://tms-api.techvia.software/api/public/v1/loads/$ID/stops/$STOP_ID/departure" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"at": "2026-12-01T11:30:00"
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const stopId = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/stops/${stopId}/departure`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"at": "2026-12-01T11:30:00"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
stopId = "..." # from a list or read call
res = requests.request(
"PUT",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/stops/{stopId}/departure",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"at": "2026-12-01T11:30:00"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Covered",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "Driver",
"driverNames": [
"Sam Lee"
],
"truck": "T-101",
"trailer": "R-22",
"carrierName": null
},
"rowVersion": 826,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": "2026-12-01T15:05:00+00:00",
"departedAt": "2026-12-01T17:30:00+00:00"
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-12-01T17:40:12.204118+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
]
}
```
Illustrative values. departedAt is UTC (11:30 in Chicago). With billing.read or loads.rates also the billing fields, detention in autoCharges.
---
# Remove the assignment
> DELETE /api/public/v1/loads/{id}/assignment, scope loads.write. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/loads/remove-the-assignment/
`DELETE /api/public/v1/loads/{id}/assignment`
**Scope:** `loads.write`. **MCP tool:** `unassign_load`. Rules and edge cases: [Loads guide](/docs/tms/guides/loads/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
| `rowVersion` | query | integer | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicLoad` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `loadNumber` | string | |
| `workOrderNumber` | string | |
| `status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `customer` | PublicLoadCustomer | |
| `customer.id` | string (uuid) | |
| `customer.name` | string | |
| `dispatcherName` | string | |
| `assignment` | PublicLoadAssignment | |
| `assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `assignment.driverNames` | string[] | |
| `assignment.truck` | string | |
| `assignment.trailer` | string | |
| `assignment.carrierName` | string | |
| `rowVersion` | integer | |
| `stops` | PublicLoadStop[] | |
| `stops[].id` | string (uuid) | |
| `stops[].order` | integer | |
| `stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `stops[].facilityName` | string | |
| `stops[].scheduledDate` | string (date-time) | |
| `stops[].scheduledLocal` | string | |
| `stops[].timeZoneId` | string | |
| `stops[].appointmentConfirmed` | boolean | |
| `stops[].commodity` | string | |
| `stops[].quantity` | integer | |
| `stops[].weightLbs` | number | |
| `stops[].referenceNumber` | string | |
| `stops[].notes` | string | |
| `stops[].arrivedAt` | string (date-time) | |
| `stops[].departedAt` | string (date-time) | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
| `isSample` | boolean | |
| `notes` | PublicLoadNote[] | |
| `notes[].id` | string (uuid) | |
| `notes[].createdAt` | string (date-time) | |
| `notes[].by` | string | |
| `notes[].text` | string | |
| `rate` | number | |
| `finalRate` | number | |
| `otherCharges` | PublicLoadCharge[] | |
| `otherCharges[].id` | string (uuid) | |
| `otherCharges[].type` | string | |
| `otherCharges[].description` | string | |
| `otherCharges[].amount` | number | |
| `autoCharges` | PublicLoadCharge[] | |
| `autoCharges[].id` | string (uuid) | |
| `autoCharges[].type` | string | |
| `autoCharges[].description` | string | |
| `autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X DELETE "https://tms-api.techvia.software/api/public/v1/loads/$ID/assignment" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/loads/${id}/assignment`, {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"DELETE",
f"https://tms-api.techvia.software/api/public/v1/loads/{id}/assignment",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-75ec-7d91-9309-8c400cddd516",
"loadNumber": "LD-2026-000123",
"workOrderNumber": "WO-4471",
"status": "Open",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "None",
"driverNames": [],
"truck": null,
"trailer": null,
"carrierName": null
},
"rowVersion": 826,
"stops": [
{
"id": "01a20943-7611-7d01-9309-8c400cddd601",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-01T15:00:00+00:00",
"scheduledLocal": "2026-12-01T09:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": true,
"commodity": "Produce",
"quantity": 22,
"weightLbs": 38000,
"referenceNumber": "PO-88123",
"notes": "Check in at gate 4",
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7611-7d01-9309-8c400cddd602",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-02T16:00:00+00:00",
"scheduledLocal": "2026-12-02T09:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-11-23T16:35:45.886322+00:00",
"updatedAt": "2026-12-01T17:40:12.204118+00:00",
"isSample": false,
"notes": [
{
"id": "01a20943-7700-7a00-9309-8c400cddd700",
"createdAt": "2026-12-01T16:10:00+00:00",
"by": "API key: Claude",
"text": "Driver called: 30 min late"
}
]
}
```
Illustrative values. A Covered load goes back to Open. With billing.read or loads.rates also the billing fields (as on Get a load).
---
# Quotes API reference
> Quotes endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/quotes/
5 endpoints. Rules, limits and edge cases are in the [Quotes guide](/docs/tms/guides/quotes/).
| Endpoint | Call | Scope |
|---|---|---|
| [List quotes](/docs/tms/reference/quotes/list-quotes/) | `GET /api/public/v1/quotes` | `loads.rates` |
| [Create a quote](/docs/tms/reference/quotes/create-a-quote/) | `POST /api/public/v1/quotes` | `loads.rates` |
| [Get a quote](/docs/tms/reference/quotes/get-a-quote/) | `GET /api/public/v1/quotes/{id}` | `loads.rates` |
| [Set the status of a quote](/docs/tms/reference/quotes/set-the-status-of-a-quote/) | `PATCH /api/public/v1/quotes/{id}/status` | `loads.rates` |
| [Convert a quote to a load](/docs/tms/reference/quotes/convert-a-quote-to-a-load/) | `POST /api/public/v1/quotes/{id}/convert` | `loads.rates` |
---
# Convert a quote to a load
> POST /api/public/v1/quotes/{id}/convert, scope loads.rates. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/quotes/convert-a-quote-to-a-load/
`POST /api/public/v1/quotes/{id}/convert`
**Scope:** `loads.rates`. **MCP tool:** `convert_quote_to_load`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicQuoteConvertResult` |
| `201` | Created | `PublicQuoteConvertResult` |
| `404` | Not Found | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `outcome` | string | |
| `load` | PublicLoad | |
| `load.id` | string (uuid) | |
| `load.loadNumber` | string | |
| `load.workOrderNumber` | string | |
| `load.status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `load.type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `load.equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `load.customer` | PublicLoadCustomer | |
| `load.customer.id` | string (uuid) | |
| `load.customer.name` | string | |
| `load.dispatcherName` | string | |
| `load.assignment` | PublicLoadAssignment | |
| `load.assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `load.assignment.driverNames` | string[] | |
| `load.assignment.truck` | string | |
| `load.assignment.trailer` | string | |
| `load.assignment.carrierName` | string | |
| `load.rowVersion` | integer | |
| `load.stops` | PublicLoadStop[] | |
| `load.stops[].id` | string (uuid) | |
| `load.stops[].order` | integer | |
| `load.stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `load.stops[].facilityName` | string | |
| `load.stops[].scheduledDate` | string (date-time) | |
| `load.stops[].scheduledLocal` | string | |
| `load.stops[].timeZoneId` | string | |
| `load.stops[].appointmentConfirmed` | boolean | |
| `load.stops[].commodity` | string | |
| `load.stops[].quantity` | integer | |
| `load.stops[].weightLbs` | number | |
| `load.stops[].referenceNumber` | string | |
| `load.stops[].notes` | string | |
| `load.stops[].arrivedAt` | string (date-time) | |
| `load.stops[].departedAt` | string (date-time) | |
| `load.createdAt` | string (date-time) | |
| `load.updatedAt` | string (date-time) | |
| `load.isSample` | boolean | |
| `load.notes` | PublicLoadNote[] | |
| `load.notes[].id` | string (uuid) | |
| `load.notes[].createdAt` | string (date-time) | |
| `load.notes[].by` | string | |
| `load.notes[].text` | string | |
| `load.rate` | number | |
| `load.finalRate` | number | |
| `load.otherCharges` | PublicLoadCharge[] | |
| `load.otherCharges[].id` | string (uuid) | |
| `load.otherCharges[].type` | string | |
| `load.otherCharges[].description` | string | |
| `load.otherCharges[].amount` | number | |
| `load.autoCharges` | PublicLoadCharge[] | |
| `load.autoCharges[].id` | string (uuid) | |
| `load.autoCharges[].type` | string | |
| `load.autoCharges[].description` | string | |
| `load.autoCharges[].amount` | number | |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `outcome` | string | |
| `load` | PublicLoad | |
| `load.id` | string (uuid) | |
| `load.loadNumber` | string | |
| `load.workOrderNumber` | string | |
| `load.status` | enum LoadStatus | One of `PreBook`, `Open`, `Covered`, `AtPickup`, `EnRoute`, `AtDelivery`, `Delivered`, `Completed`, `Invoiced`, `Cancelled`, `TONU` |
| `load.type` | enum LoadType | One of `Spot`, `Dedicated`, `Contract` |
| `load.equipment` | string | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other`, `null` |
| `load.customer` | PublicLoadCustomer | |
| `load.customer.id` | string (uuid) | |
| `load.customer.name` | string | |
| `load.dispatcherName` | string | |
| `load.assignment` | PublicLoadAssignment | |
| `load.assignment.mode` | enum AssignmentMode | One of `None`, `Driver`, `Carrier` |
| `load.assignment.driverNames` | string[] | |
| `load.assignment.truck` | string | |
| `load.assignment.trailer` | string | |
| `load.assignment.carrierName` | string | |
| `load.rowVersion` | integer | |
| `load.stops` | PublicLoadStop[] | |
| `load.stops[].id` | string (uuid) | |
| `load.stops[].order` | integer | |
| `load.stops[].type` | enum StopType | One of `Shipper`, `Consignee` |
| `load.stops[].facilityName` | string | |
| `load.stops[].scheduledDate` | string (date-time) | |
| `load.stops[].scheduledLocal` | string | |
| `load.stops[].timeZoneId` | string | |
| `load.stops[].appointmentConfirmed` | boolean | |
| `load.stops[].commodity` | string | |
| `load.stops[].quantity` | integer | |
| `load.stops[].weightLbs` | number | |
| `load.stops[].referenceNumber` | string | |
| `load.stops[].notes` | string | |
| `load.stops[].arrivedAt` | string (date-time) | |
| `load.stops[].departedAt` | string (date-time) | |
| `load.createdAt` | string (date-time) | |
| `load.updatedAt` | string (date-time) | |
| `load.isSample` | boolean | |
| `load.notes` | PublicLoadNote[] | |
| `load.notes[].id` | string (uuid) | |
| `load.notes[].createdAt` | string (date-time) | |
| `load.notes[].by` | string | |
| `load.notes[].text` | string | |
| `load.rate` | number | |
| `load.finalRate` | number | |
| `load.otherCharges` | PublicLoadCharge[] | |
| `load.otherCharges[].id` | string (uuid) | |
| `load.otherCharges[].type` | string | |
| `load.otherCharges[].description` | string | |
| `load.otherCharges[].amount` | number | |
| `load.autoCharges` | PublicLoadCharge[] | |
| `load.autoCharges[].id` | string (uuid) | |
| `load.autoCharges[].type` | string | |
| `load.autoCharges[].description` | string | |
| `load.autoCharges[].amount` | number | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/quotes/$ID/convert" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Idempotency-Key: $(uuidgen)"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes/${id}/convert`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/quotes/{id}/convert",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"outcome": "Created",
"load": {
"id": "01a20943-7a10-7c11-8a2e-000000000080",
"loadNumber": "LD-2026-000124",
"workOrderNumber": null,
"status": "Open",
"type": "Spot",
"equipment": "Reefer",
"customer": {
"id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"name": "Acme Foods"
},
"dispatcherName": "Dana Ruiz",
"assignment": {
"mode": "None",
"driverNames": [],
"truck": null,
"trailer": null,
"carrierName": null
},
"rowVersion": 901,
"stops": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000081",
"order": 1,
"type": "Shipper",
"facilityName": "Acme DC Dallas",
"scheduledDate": "2026-12-08T06:00:00+00:00",
"scheduledLocal": "2026-12-08T00:00:00-06:00",
"timeZoneId": "America/Chicago",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
},
{
"id": "01a20943-7a10-7c11-8a2e-000000000082",
"order": 2,
"type": "Consignee",
"facilityName": "FreshMart Phoenix",
"scheduledDate": "2026-12-08T07:00:00+00:00",
"scheduledLocal": "2026-12-08T00:00:00-07:00",
"timeZoneId": "America/Phoenix",
"appointmentConfirmed": false,
"commodity": null,
"quantity": null,
"weightLbs": null,
"referenceNumber": null,
"notes": null,
"arrivedAt": null,
"departedAt": null
}
],
"createdAt": "2026-12-01T18:22:03.774512+00:00",
"updatedAt": "2026-12-01T18:22:03.774512+00:00",
"isSample": false,
"notes": []
}
}
```
Illustrative values. The first call is 201 Created; every later call 200 AlreadyConverted with the same load. The load is Open, Spot, and never shows rate, finalRate or otherCharges.
---
# Create a quote
> POST /api/public/v1/quotes, scope loads.rates. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/quotes/create-a-quote/
`POST /api/public/v1/quotes`
**Scope:** `loads.rates`. **MCP tool:** `create_quote`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).
## Request body
Content type `application/json`. Limits and rules for each field are in the [Quotes guide](/docs/tms/guides/quotes/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `customerId` | string (uuid) | no | |
| `originCity` | string | no | |
| `originState` | string | no | |
| `destCity` | string | no | |
| `destState` | string | no | |
| `quotedRate` | number | no | |
| `dispatcherId` | string (uuid) | no | |
| `originFacilityId` | string (uuid) | no | |
| `destFacilityId` | string (uuid) | no | |
| `equipment` | string | no | One of `DryVan`, `Flatbed`, `Reefer`, `Tanker`, `StepDeck`, `Other` |
| `commodity` | string | no | |
| `weightLbs` | number | no | |
| `pickupDate` | any (ISO 8601 date-time) | no | |
| `deliveryDate` | any (ISO 8601 date-time) | no | |
| `validUntil` | any (ISO 8601 date-time) | no | |
| `miles` | number | no | |
| `notes` | string | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `201` | Created | `PublicQuote` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `201` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `quoteNumber` | string | |
| `status` | string | |
| `customerId` | string (uuid) | |
| `customerName` | string | |
| `dispatcherName` | string | |
| `originCity` | string | |
| `originState` | string | |
| `destCity` | string | |
| `destState` | string | |
| `originFacilityId` | string (uuid) | |
| `originFacilityName` | string | |
| `destFacilityId` | string (uuid) | |
| `destFacilityName` | string | |
| `equipment` | string | |
| `commodity` | string | |
| `weightLbs` | number | |
| `pickupDate` | string (date) | |
| `deliveryDate` | string (date) | |
| `miles` | number | |
| `quotedRate` | number | |
| `suggestedRate` | number | |
| `validUntil` | string (date) | |
| `sentAt` | string (date-time) | |
| `wonAt` | string (date-time) | |
| `lostAt` | string (date-time) | |
| `lostReason` | string | |
| `lostNotes` | string | |
| `convertedLoadId` | string (uuid) | |
| `notes` | string | |
| `rowVersion` | integer | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X POST "https://tms-api.techvia.software/api/public/v1/quotes" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"quotedRate": 2400,
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08"
}'
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"quotedRate": 2400,
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08"
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"POST",
f"https://tms-api.techvia.software/api/public/v1/quotes",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"quotedRate": 2400,
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08"
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `201`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000060",
"quoteNumber": "QT-000045",
"status": "Draft",
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"customerName": "Acme Foods",
"dispatcherName": "Dana Ruiz",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"originFacilityId": null,
"originFacilityName": null,
"destFacilityId": null,
"destFacilityName": null,
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08",
"deliveryDate": null,
"miles": null,
"quotedRate": 2400,
"suggestedRate": null,
"validUntil": "2026-12-15",
"sentAt": null,
"wonAt": null,
"lostAt": null,
"lostReason": null,
"lostNotes": null,
"convertedLoadId": null,
"notes": null,
"rowVersion": 411,
"createdAt": "2026-12-01T14:02:31.118204+00:00",
"updatedAt": "2026-12-01T14:02:31.118204+00:00"
}
```
Illustrative values. A new quote is a Draft; validUntil left out is your workspace's default validity.
---
# Get a quote
> GET /api/public/v1/quotes/{id}, scope loads.rates. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/quotes/get-a-quote/
`GET /api/public/v1/quotes/{id}`
**Scope:** `loads.rates`. **MCP tool:** `get_quote`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicQuote` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `quoteNumber` | string | |
| `status` | string | |
| `customerId` | string (uuid) | |
| `customerName` | string | |
| `dispatcherName` | string | |
| `originCity` | string | |
| `originState` | string | |
| `destCity` | string | |
| `destState` | string | |
| `originFacilityId` | string (uuid) | |
| `originFacilityName` | string | |
| `destFacilityId` | string (uuid) | |
| `destFacilityName` | string | |
| `equipment` | string | |
| `commodity` | string | |
| `weightLbs` | number | |
| `pickupDate` | string (date) | |
| `deliveryDate` | string (date) | |
| `miles` | number | |
| `quotedRate` | number | |
| `suggestedRate` | number | |
| `validUntil` | string (date) | |
| `sentAt` | string (date-time) | |
| `wonAt` | string (date-time) | |
| `lostAt` | string (date-time) | |
| `lostReason` | string | |
| `lostNotes` | string | |
| `convertedLoadId` | string (uuid) | |
| `notes` | string | |
| `rowVersion` | integer | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/quotes/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/quotes/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000060",
"quoteNumber": "QT-000045",
"status": "Sent",
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"customerName": "Acme Foods",
"dispatcherName": "Dana Ruiz",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"originFacilityId": null,
"originFacilityName": null,
"destFacilityId": null,
"destFacilityName": null,
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08",
"deliveryDate": null,
"miles": null,
"quotedRate": 2400,
"suggestedRate": null,
"validUntil": "2026-12-15",
"sentAt": "2026-12-01T14:05:00+00:00",
"wonAt": null,
"lostAt": null,
"lostReason": null,
"lostNotes": null,
"convertedLoadId": null,
"notes": null,
"rowVersion": 412,
"createdAt": "2026-12-01T14:02:31.118204+00:00",
"updatedAt": "2026-12-01T14:02:31.118204+00:00"
}
```
Illustrative values.
---
# List quotes
> GET /api/public/v1/quotes, scope loads.rates. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/quotes/list-quotes/
`GET /api/public/v1/quotes`
**Scope:** `loads.rates`. **MCP tool:** `list_quotes`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `status` | query | string | no | |
| `customerId` | query | string (uuid) | no | |
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicQuoteListItem` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicQuoteListItem[] | |
| `items[].id` | string (uuid) | |
| `items[].quoteNumber` | string | |
| `items[].status` | string | |
| `items[].customerName` | string | |
| `items[].originCity` | string | |
| `items[].originState` | string | |
| `items[].destCity` | string | |
| `items[].destState` | string | |
| `items[].quotedRate` | number | |
| `items[].validUntil` | string (date) | |
| `items[].convertedLoadId` | string (uuid) | |
| `items[].createdAt` | string (date-time) | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/quotes" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/quotes",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000060",
"quoteNumber": "QT-000045",
"status": "Sent",
"customerName": "Acme Foods",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"quotedRate": 2400,
"validUntil": "2026-12-15",
"convertedLoadId": null,
"createdAt": "2026-12-01T14:02:31.118204+00:00"
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Set the status of a quote
> PATCH /api/public/v1/quotes/{id}/status, scope loads.rates. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/quotes/set-the-status-of-a-quote/
`PATCH /api/public/v1/quotes/{id}/status`
**Scope:** `loads.rates`. **MCP tool:** `set_quote_status`. Rules and edge cases: [Quotes guide](/docs/tms/guides/quotes/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Request body
Content type `application/json`. Limits and rules for each field are in the [Quotes guide](/docs/tms/guides/quotes/).
| Field | Type | Required | Notes |
|---|---|---|---|
| `status` | string | yes | One of `Draft`, `Sent`, `Won`, `Lost` |
| `rowVersion` | integer | yes | |
| `lostReason` | string | no | |
| `lostNotes` | string | no | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicQuote` |
| `404` | Not Found | `ProblemDetails` |
| `409` | Conflict | `ProblemDetails` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `quoteNumber` | string | |
| `status` | string | |
| `customerId` | string (uuid) | |
| `customerName` | string | |
| `dispatcherName` | string | |
| `originCity` | string | |
| `originState` | string | |
| `destCity` | string | |
| `destState` | string | |
| `originFacilityId` | string (uuid) | |
| `originFacilityName` | string | |
| `destFacilityId` | string (uuid) | |
| `destFacilityName` | string | |
| `equipment` | string | |
| `commodity` | string | |
| `weightLbs` | number | |
| `pickupDate` | string (date) | |
| `deliveryDate` | string (date) | |
| `miles` | number | |
| `quotedRate` | number | |
| `suggestedRate` | number | |
| `validUntil` | string (date) | |
| `sentAt` | string (date-time) | |
| `wonAt` | string (date-time) | |
| `lostAt` | string (date-time) | |
| `lostReason` | string | |
| `lostNotes` | string | |
| `convertedLoadId` | string (uuid) | |
| `notes` | string | |
| `rowVersion` | integer | |
| `createdAt` | string (date-time) | |
| `updatedAt` | string (date-time) | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl -X PATCH "https://tms-api.techvia.software/api/public/v1/quotes/$ID/status" \
-H "Authorization: Bearer $TMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "Won",
"rowVersion": 412
}'
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/quotes/${id}/status`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"status": "Won",
"rowVersion": 412
}),
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"PATCH",
f"https://tms-api.techvia.software/api/public/v1/quotes/{id}/status",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
json={
"status": "Won",
"rowVersion": 412
},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000060",
"quoteNumber": "QT-000045",
"status": "Won",
"customerId": "01a20943-75ec-78ad-9764-7a1d1cc95684",
"customerName": "Acme Foods",
"dispatcherName": "Dana Ruiz",
"originCity": "Dallas",
"originState": "TX",
"destCity": "Phoenix",
"destState": "AZ",
"originFacilityId": "01a20943-7600-7c11-8a2e-111111111111",
"originFacilityName": "Acme DC Dallas",
"destFacilityId": "01a20943-7a10-7c11-8a2e-000000000050",
"destFacilityName": "FreshMart Phoenix",
"equipment": "Reefer",
"commodity": "Produce",
"weightLbs": 38000,
"pickupDate": "2026-12-08",
"deliveryDate": null,
"miles": null,
"quotedRate": 2400,
"suggestedRate": null,
"validUntil": "2026-12-15",
"sentAt": "2026-12-01T14:05:00+00:00",
"wonAt": "2026-12-01T18:20:44.509112+00:00",
"lostAt": null,
"lostReason": null,
"lostNotes": null,
"convertedLoadId": null,
"notes": null,
"rowVersion": 413,
"createdAt": "2026-12-01T14:02:31.118204+00:00",
"updatedAt": "2026-12-01T18:20:44.509112+00:00"
}
```
Illustrative values.
---
# Trailers API reference
> Trailers endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/trailers/
2 endpoints. Rules, limits and edge cases are in the [Trailers guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List trailers](/docs/tms/reference/trailers/list-trailers/) | `GET /api/public/v1/trailers` | `directory.read` |
| [Get a trailer](/docs/tms/reference/trailers/get-a-trailer/) | `GET /api/public/v1/trailers/{id}` | `directory.read` |
---
# Get a trailer
> GET /api/public/v1/trailers/{id}, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/trailers/get-a-trailer/
`GET /api/public/v1/trailers/{id}`
**Scope:** `directory.read`. **MCP tool:** `get_trailer`. Rules and edge cases: [Trailers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicTrailer` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `unitNumber` | string | |
| `type` | string | |
| `status` | enum AssetStatus | One of `Active`, `Inactive`, `InMaintenance`, `OutOfService` |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/trailers/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/trailers/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/trailers/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000021",
"unitNumber": "R-22",
"type": "Reefer",
"status": "Active"
}
```
Illustrative values.
---
# List trailers
> GET /api/public/v1/trailers, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/trailers/list-trailers/
`GET /api/public/v1/trailers`
**Scope:** `directory.read`. **MCP tool:** `list_trailers`. Rules and edge cases: [Trailers guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicTrailer` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicTrailer[] | |
| `items[].id` | string (uuid) | |
| `items[].unitNumber` | string | |
| `items[].type` | string | |
| `items[].status` | enum AssetStatus | One of `Active`, `Inactive`, `InMaintenance`, `OutOfService` |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/trailers" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/trailers`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/trailers",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000021",
"unitNumber": "R-22",
"type": "Reefer",
"status": "Active"
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Trucks API reference
> Trucks endpoints of the Techvia TMS public API v1.
Source: https://techvia.software/docs/tms/reference/trucks/
2 endpoints. Rules, limits and edge cases are in the [Trucks guide](/docs/tms/guides/directory/).
| Endpoint | Call | Scope |
|---|---|---|
| [List trucks](/docs/tms/reference/trucks/list-trucks/) | `GET /api/public/v1/trucks` | `directory.read` |
| [Get a truck](/docs/tms/reference/trucks/get-a-truck/) | `GET /api/public/v1/trucks/{id}` | `directory.read` |
---
# Get a truck
> GET /api/public/v1/trucks/{id}, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/trucks/get-a-truck/
`GET /api/public/v1/trucks/{id}`
**Scope:** `directory.read`. **MCP tool:** `get_truck`. Rules and edge cases: [Trucks guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicTruck` |
| `404` | Not Found | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) | |
| `unitNumber` | string | |
| `type` | string | |
| `status` | enum AssetStatus | One of `Active`, `Inactive`, `InMaintenance`, `OutOfService` |
| `currentDriverName` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/trucks/$ID" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/trucks/${id}`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
id = "..." # from a list or read call
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/trucks/{id}",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"id": "01a20943-7a10-7c11-8a2e-000000000020",
"unitNumber": "T-101",
"type": "SleeperCab",
"status": "Active",
"currentDriverName": "Sam Lee"
}
```
Illustrative values.
---
# List trucks
> GET /api/public/v1/trucks, scope directory.read. Techvia TMS public API v1 reference.
Source: https://techvia.software/docs/tms/reference/trucks/list-trucks/
`GET /api/public/v1/trucks`
**Scope:** `directory.read`. **MCP tool:** `list_trucks`. Rules and edge cases: [Trucks guide](/docs/tms/guides/directory/).
## Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `search` | query | string | no | |
| `page` | query | integer | no | Default `1` |
| `pageSize` | query | integer | no | Default `50` |
## Responses
| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PagedResultOfPublicTruck` |
| `422` | Unprocessable Entity | `ProblemDetails` |
### `200` body
| Field | Type | Notes |
|---|---|---|
| `items` | PublicTruck[] | |
| `items[].id` | string (uuid) | |
| `items[].unitNumber` | string | |
| `items[].type` | string | |
| `items[].status` | enum AssetStatus | One of `Active`, `Inactive`, `InMaintenance`, `OutOfService` |
| `items[].currentDriverName` | string | |
| `page` | integer | |
| `pageSize` | integer | |
| `total` | integer | |
| `hasMore` | boolean | |
| `sort` | SortSpec[] | |
| `sort[].field` | string | |
| `sort[].dir` | string | |
Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).
**Example request**
**curl**
```bash
curl "https://tms-api.techvia.software/api/public/v1/trucks" \
-H "Authorization: Bearer $TMS_KEY"
```
**JavaScript**
```js
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/trucks`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TMS_KEY}`,
},
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```
**Python**
```python
res = requests.request(
"GET",
f"https://tms-api.techvia.software/api/public/v1/trucks",
headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```
**Example response** `200`
```json
{
"items": [
{
"id": "01a20943-7a10-7c11-8a2e-000000000020",
"unitNumber": "T-101",
"type": "SleeperCab",
"status": "Active",
"currentDriverName": "Sam Lee"
}
],
"page": 1,
"pageSize": 50,
"total": 1,
"hasMore": false,
"sort": []
}
```
Illustrative values.
---
# Use cases
> Step-by-step Techvia TMS recipes, each with a clear outcome: run dispatch from Claude, sync loads to a spreadsheet or n8n, and track stops.
Source: https://techvia.software/docs/tms/use-cases/
Each use case has an outcome, numbered steps, working code and next steps.
- [Run dispatch from Claude](/docs/tms/use-cases/run-dispatch-from-claude/): find loads, assign carriers, add notes and change status by chat.
- [Sync loads to your spreadsheet or n8n](/docs/tms/use-cases/sync-loads-to-a-spreadsheet/): pull every load into a CSV on a schedule.
- [Track stops](/docs/tms/use-cases/track-stops/): record when a truck arrived at and left a stop, and let detention work itself out.
---
# Run dispatch from Claude
> Connect Claude to Techvia TMS and find loads, assign a carrier, add notes and change load status by chatting, with a scoped key.
Source: https://techvia.software/docs/tms/use-cases/run-dispatch-from-claude/
**Outcome:** you ask Claude "which loads pick up tomorrow?" or "assign Swift Haul to LD-2026-000123" and it does it in your TMS, with every change shown in the load's History as "API key: Claude".
You need a TMS workspace with API access and admin rights to make a key.
## Steps
1. **Make a key for the assistant.** In **Settings > API keys** press **New key**, name it `Claude` and tick `loads.read`, `loads.write` and `directory.read`. Tick `directory.write` only if it may create or update customers, carriers and facilities. Leave `loads.rates` and `billing.read` off unless it should see or set rates. Copy the key; it is shown once.
2. **Connect Claude Code.** Replace `tms_YOUR_KEY` with your key:
```bash
claude mcp add --transport http techvia-tms https://tms-api.techvia.software/mcp \
--header "Authorization: Bearer tms_YOUR_KEY"
```
Using Cursor, VS Code or n8n instead? See [Use with your AI](/docs/tms/ai/): one-click install for Cursor, step-by-step setup for VS Code and n8n.
3. **Check the connection.** Ask: "List the tools of techvia-tms." You should see `search_loads`, `get_load`, `assign_load`, `add_load_note` and more. The assistant sees only the tools your key's scopes allow.
4. **Ask for work in plain words.** For example:
- "Show loads that are Covered and pick up on or after 2026-12-01." (`search_loads`)
- "Open load LD-2026-000123 and tell me when the first stop is, in local time." (`get_load`; the tool tells the assistant to show `scheduledLocal`, not the UTC time)
- "Assign carrier Swift Haul to that load." (`list_carriers`, then `assign_load`)
- "Add a note: driver called, 30 minutes late." (`add_load_note`)
- "Mark it AtPickup." (`update_load_status`)
5. **Review in the TMS app.** Open the load: the timeline and History show each change as made by "API key: Claude".
## What the assistant cannot do
- It cannot make payments, invoices or settlements, and it cannot delete anything.
- A key cannot set `PreBook`, `Cancelled`, `TONU`, `Completed` or `Invoiced`; a person does that in the TMS app. See [status values](/docs/tms/concepts/statuses/).
- A blacklisted or inactive carrier is refused, and a carrier with expired insurance is refused too; only a person can override insurance in the TMS app.
- A repeated create is recognised and does not make a second load ([idempotency](/docs/tms/concepts/idempotency/)).
When you ask an assistant about your loads, the data a tool returns is sent to that assistant's vendor under your own account with them, on their terms. Give the key only the scopes it needs.
## Next steps
- [MCP tools, scopes and limits](/docs/tms/ai/tools/): every tool and the scope it needs.
- [Track stops](/docs/tms/use-cases/track-stops/): have the assistant record arrivals and departures.
- [Rate limits and quota](/docs/tms/concepts/rate-limits/): one tool call is one request.
---
# Sync loads to your spreadsheet or n8n
> Pull every Techvia TMS load into a CSV for Excel or Google Sheets with a short script, or into n8n with the HTTP Request node, staying inside the rate limits.
Source: https://techvia.software/docs/tms/use-cases/sync-loads-to-a-spreadsheet/
**Outcome:** a CSV (or an n8n workflow) with your loads, refreshed whenever you run it, that you can open in Excel or Google Sheets or feed to Power BI.
## Steps
1. **Make a read-only key** in **Settings > API keys** with `loads.read`. Add `billing.read` only if the sheet needs `finalRate`. Store it as `TMS_KEY`.
2. **Read one page.** `GET /api/public/v1/loads` returns up to 50 loads, newest first, as `{ "items": [...], "page", "pageSize", "total", "hasMore" }`. Narrow it with filters such as `status`, `pickupFrom` and `pickupTo` (`YYYY-MM-DD`), or `search`.
3. **Loop until `hasMore` is `false`**, raising `page` by one. Keep the loop under the limit of 60 requests a minute per key.
4. **Write the rows.** Show people `pickupLocal` and `deliveryLocal` (the wall clock at the facility), not the UTC `pickupDate`. Skip loads with `isSample: true` if the sheet should hold only your own.
**Python**
```python
BASE = "https://tms-api.techvia.software/api/public/v1/loads"
headers = {"Authorization": f"Bearer {os.environ['TMS_KEY']}"}
columns = ["loadNumber", "workOrderNumber", "status", "customerName", "origin", "destination", "pickupLocal", "deliveryLocal"]
with open("loads.csv", "w", newline="", encoding="utf-8") as f:
out = csv.DictWriter(f, fieldnames=columns, extrasaction="ignore")
out.writeheader()
page = 1
while True:
res = requests.get(BASE, headers=headers, params={"page": page, "pageSize": 50, "pickupFrom": "2026-12-01"})
res.raise_for_status()
body = res.json()
out.writerows(l for l in body["items"] if not l["isSample"])
if not body["hasMore"]:
break
page += 1
```
**JavaScript**
```js
const base = 'https://tms-api.techvia.software/api/public/v1/loads';
const headers = { Authorization: `Bearer ${process.env.TMS_KEY}` };
const columns = ['loadNumber', 'workOrderNumber', 'status', 'customerName', 'origin', 'destination', 'pickupLocal', 'deliveryLocal'];
const cell = (v) => `"${String(v ?? '').replaceAll('"', '""')}"`;
const rows = [columns.join(',')];
for (let page = 1; ; page++) {
const res = await fetch(`${base}?page=${page}&pageSize=50&pickupFrom=2026-12-01`, { headers });
if (!res.ok) throw new Error(await res.text());
const body = await res.json();
for (const l of body.items.filter((l) => !l.isSample)) rows.push(columns.map((c) => cell(l[c])).join(','));
if (!body.hasMore) break;
}
writeFileSync('loads.csv', rows.join('\n'));
```
**curl**
```bash
curl -H "Authorization: Bearer $TMS_KEY" \
"https://tms-api.techvia.software/api/public/v1/loads?page=1&pageSize=50&pickupFrom=2026-12-01"
```
## In n8n
1. Add an **HTTP Request** node: method `GET`, URL `https://tms-api.techvia.software/api/public/v1/loads`.
2. Authentication: **Generic Credential Type > Header Auth**, name `Authorization`, value `Bearer tms_YOUR_KEY`.
3. Under **Options > Pagination**, step the `page` query parameter by one and stop when `hasMore` is `false`. Put a **Schedule Trigger** in front and a **Google Sheets** or **Spreadsheet File** node after it.
## Next steps
- All filters and fields: [Loads guide](/docs/tms/guides/loads/) and [List loads](/docs/tms/reference/loads/list-loads/).
- If a call returns `429`, wait the seconds in the `Retry-After` header: [rate limits and quota](/docs/tms/concepts/rate-limits/).
- Create loads from a sheet instead? Use [Create a load](/docs/tms/reference/loads/create-a-load/) with an `Idempotency-Key` per row.
---
# Track stops
> Record when a truck arrived at and left each stop of a Techvia TMS load through the API, and see detention worked out from the two times.
Source: https://techvia.software/docs/tms/use-cases/track-stops/
**Outcome:** your telematics, driver app or script reports arrivals and departures, the TMS timeline shows them, and detention is worked out from the two times by your workspace's detention settings.
## Steps
1. **Make a key** with `loads.read` and `loads.write`. Store it as `TMS_KEY`.
2. **Read the load** to get each stop's `id`: `GET /api/public/v1/loads/{id}` returns `stops[]` with `id`, `order`, `type`, `scheduledLocal`, `arrivedAt` and `departedAt`.
3. **Record the arrival** with `PUT /api/public/v1/loads/{id}/stops/{stopId}/arrival`. The body `{ "at": "2026-12-01T09:05:00" }` is optional: left out, it means now. With an offset it is that instant; without one it is the local time at the stop's facility. More than a day ahead is a `422`.
4. **Record the departure** the same way with `.../departure`. A departure before any arrival, or before the arrival, is a `422`.
5. **Read the load again.** `arrivedAt` and `departedAt` are filled (UTC), and any detention appears in `autoCharges` for a key with `billing.read` or `loads.rates`.
**curl**
```bash
curl -X PUT "https://tms-api.techvia.software/api/public/v1/loads/$LOAD_ID/stops/$STOP_ID/arrival" \
-H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"at":"2026-12-01T09:05:00"}'
curl -X PUT "https://tms-api.techvia.software/api/public/v1/loads/$LOAD_ID/stops/$STOP_ID/departure" \
-H "Authorization: Bearer $TMS_KEY" -H "Content-Type: application/json" \
-d '{"at":"2026-12-01T11:30:00"}'
```
**JavaScript**
```js
const base = 'https://tms-api.techvia.software/api/public/v1/loads';
const headers = { Authorization: `Bearer ${process.env.TMS_KEY}`, 'Content-Type': 'application/json' };
async function stamp(loadId, stopId, kind, at) {
const res = await fetch(`${base}/${loadId}/stops/${stopId}/${kind}`, {
method: 'PUT', headers, body: JSON.stringify(at ? { at } : {}),
});
if (!res.ok) throw new Error(await res.text());
return res.json(); // the load as GET returns it
}
await stamp(loadId, stopId, 'arrival', '2026-12-01T09:05:00');
await stamp(loadId, stopId, 'departure', '2026-12-01T11:30:00');
```
**Python**
```python
BASE = "https://tms-api.techvia.software/api/public/v1/loads"
headers = {"Authorization": f"Bearer {os.environ['TMS_KEY']}"}
def stamp(load_id, stop_id, kind, at=None):
res = requests.put(f"{BASE}/{load_id}/stops/{stop_id}/{kind}", headers=headers, json={"at": at} if at else {})
res.raise_for_status()
return res.json() # the load as GET returns it
stamp(load_id, stop_id, "arrival", "2026-12-01T09:05:00")
stamp(load_id, stop_id, "departure", "2026-12-01T11:30:00")
```
## Good to know
- The earliest arrival wins (a later one changes nothing) and a stop has one departure (a second changes nothing), so a repeated call is safe.
- These calls take no `rowVersion`. A call that collides with another change of the same load at that moment is a `409` ("Retry the call").
- An unknown stop or load is `404`. The timeline shows "Arrived @ facility (API key: your key name)".
## Next steps
- [Record arrival](/docs/tms/reference/loads/record-arrival-at-a-stop/) and [record departure](/docs/tms/reference/loads/record-departure-from-a-stop/) in the reference.
- The rules for the rest of a load: [Loads guide](/docs/tms/guides/loads/).
- Let an AI record them: [Run dispatch from Claude](/docs/tms/use-cases/run-dispatch-from-claude/).