# 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": []
}
```

<p class="ep-caption">Illustrative values. A new load starts <code>Open</code>. Never with <code>rate</code>, <code>finalRate</code> or <code>otherCharges</code>, whatever the key's scopes.</p>
