> For the complete documentation index, see [llms.txt](https://docs.api.beefast.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.beefast.eu/endpoints/tracking-links.md). Agents can also search and read this documentation through its [MCP server](https://docs.api.beefast.eu/~gitbook/mcp).

# Tracking Links

Tracking links allows you to generate a public link that can be used to track the delivery.

## createTrackingLink

<mark style="color:green;">`POST`</mark> `https://api.beefast.eu/v2/trackingLink`

Create a new tracking link for a delivery

#### Headers

| Name          | Type   | Description                                              |
| ------------- | ------ | -------------------------------------------------------- |
| Authorization | string | <p>The authorization header.<br>Format: Bearer TOKEN</p> |

#### Request Body

| Name                                         | Type   | Description            |
| -------------------------------------------- | ------ | ---------------------- |
| deliveryID<mark style="color:red;">\*</mark> | string | The ID of the delivery |

{% tabs %}
{% tab title="200 The delivery was successfully created." %}

```json
{
    "createTrackingLink": {
        "deliveryID": "THE_DELIVERY_ID",
        "link": "PUBLIC_TRACKING_LINK",
        "createdAt": TIMESTAMP,
        "id": "THE_TRACKING_LINK_ID"
    }
}
```

{% endtab %}
{% endtabs %}
