> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/asset/_getlastvisited.md).

# \_getLastVisited

Returns the dates in epoch format, of an Asset's job history.

### Parameters

#### id

The ID of an Asset to retrieve the history of.

### Example

```
FM_api('Asset_getLastVisited', [
    'id'=>'30001'
    ]
);
```

#### On Success

Returns IDs of Jobs related to the Asset and their epoch times:

```
[{"id":"9","meeting_time_e":"1783407600"},{"id":"60002","meeting_time_e":"1781605680"}]
```

#### On Failure

If the "id" parameter is not set or has an integer value less than 1:

```
{"error":"missing or invalid parameter: id"}
```
