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

<p class="ep-caption">Illustrative values.</p>
