# Get last updated transports (Poll vs. webhooks)

## Get last updated transports

There are two ways to get last updated transports:

### **1. Using a webhook**

You create a webservice we can use to send transport data in real-time when they are updated. With this solution, every time a transport is updated, we send a POST request to your webservice, and the body contains the whole transport JSON. The JSON includes everything you need (documents/photos url, status updates, loads etc.)

This is the best solution to have the minimal amount of requests, and the most up-to-date transports data.

To configure webhooks, please refer to the following page :

{% content-ref url="/pages/-MgktRrDCbnyr\_2wSS72" %}
[Webhooks](/docs/webhooks/webhooks-v2.md)
{% endcontent-ref %}

### **2. Using GET requests**

You can make an authenticated GET request every X minutes to the following URL:

```
https://www.dashdoc.eu/api/v3/transports/?updated__gte=yyyy-mm-ddThh:mm:ssZ
```

By replacing `yyyy-mm-ddThh:mm:ssZ` by the last time you made the request (UTC time), you will get all the transports that have been updated since your last request. Be careful, this request is paginated, and only 20 transports will be returned by request. See this page for more information about it:

{% content-ref url="/pages/-LU-jyQMBO8slJFU8FOL" %}
[Requests and filters](/docs/get-started/core-api-concepts/requests.md)
{% endcontent-ref %}

You can also add any available filter on the request, depending on your needs! All the filters are documented in the [API reference](https://www.dashdoc.eu/api/v4/docs/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.dashdoc.com/docs/use-cases-and-tutorials/retrieve-transport-tracking-data/get-last-updated-transports-poll-vs.-webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
