> 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/job/_activityget.md).

# \_activityGet

Gather all of a Job's activity.

### Parameters

#### id

The ID of the Job to gather the activity of.

### Example

```
FM_api('Job_activityGet', ['id' => '772031']);
```

### Results

#### On Success

```
{"ok":1,"id":772031,"job":{"id":772031,"job_ref":"123458","created_at":"2026-05-26 11:07:24","created_at_ts":1779793644,"created_by":92447,"created_by_name":"api tests","status_id":1,"status_name":"Complete","assigned_user_id":92447,"assigned_user_name":"api tests","current_user_id":0,"current_user_name":"","form_id":760373,"form_name":"Name of Form","customer_id":982749,"customer_type":0,"meeting_time_e":1779880028,"date_started_e":0,"date_completed_e":1779883620,"last_edited":"2026-06-02 07:18:31","last_edited_ts":1780384711,"on_app":0,"edited_uuid":"Job_save"},"statuses":["Incomplete","Complete","Processed","Requires Customer Authorisation","Authorised","Cancelled"],"users":{"92447":{"id":"92447","name":"api tests","email":"jareth.verens+apitests@fieldmotion.com"}},"status_changes":[{"id":"922990","cdate":"1779793644","type_name":"job","type_name2":"is_complete","description":"status set to 0","user_id":"92447","meta":"{\"new_value\":0,\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:07 AM","userIP":"86.42.2.80","metaObj":{"new_value":0,"user_ip":"86.42.2.80"}},{"id":"922996","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed from <status>0<\/status> to <status>1<\/status>","user_id":"92447","meta":"{}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"N\/A","metaObj":[]},{"id":"922997","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed to Complete","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}}],"completion":{"current_completed_at":1779883620,"current_date":{"source":"times-edited","source_label":"Times Edited","timestamp":1779883620,"kind":"estimated","kind_label":"Estimated","is_canonical":true,"inferred":0,"display_label":"Estimated Completion"},"date_values":[{"source":"times-edited","source_label":"Times Edited","timestamp":1779883620,"kind":"estimated","kind_label":"Estimated","is_canonical":true,"inferred":0}],"times_completed":3,"events":[{"id":"922990","cdate":"1779793644","type_name":"job","type_name2":"is_complete","description":"status set to 0","user_id":"92447","meta":"{\"new_value\":0,\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:07 AM","userIP":"86.42.2.80","metaObj":{"new_value":0,"user_ip":"86.42.2.80"}},{"id":"922996","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed from <status>0<\/status> to <status>1<\/status>","user_id":"92447","meta":"{}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"N\/A","metaObj":[]},{"id":"922997","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed to Complete","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}}],"on_complete_log":[]},"assignments":{"current_user_id":92447,"current_user_name":"api tests","events":[]},"customer":{"current":{"id":"982749","name":"fj","account_number":"","street_address1":"","street_address2":"","town":"...","county":"Test county one","postcode":"","country":"IND","last_edited":"2026-05-27 16:37:16"},"cached_details":{"city":"","country":"","county":"","landline":"8","latitude":"53.828053","longitude":"-6.395845","mobile":"","name":"fj","parent_id":0,"postcode":"","state":"","street_address1":"","street_address2":"","town":""},"change_events":[],"address_history":[{"id":"180008","county":"Test county one","postcode":"","country":"IND","meta":"{\"city\": \"\", \"latitude\": \"53.828053\", \"longitude\": \"-6.395845\", \"name\": \"fj\", \"parent_id\": 0, \"parent_name\": \"\", \"state\": \"\", \"street_address1\": \"\", \"street_address2\": \"\", \"town\": \"...\"}","cdate":"1779893133506"},{"id":"180007","county":"","postcode":"","country":"","meta":"{\"city\": \"\", \"latitude\": \"53.828053\", \"longitude\": \"-6.395845\", \"name\": \"fj\", \"parent_id\": 0, \"parent_name\": \"\", \"state\": \"\", \"street_address1\": \"\", \"street_address2\": \"\", \"town\": \"\"}","cdate":"1779794042610"},{"id":"180006","county":"","postcode":"","country":"","meta":"{\"city\": \"\", \"latitude\": \"0\", \"longitude\": \"0\", \"name\": \"fj\", \"parent_id\": 0, \"parent_name\": \"\", \"state\": \"\", \"street_address1\": \"\", \"street_address2\": \"\", \"town\": \"\"}","cdate":"0"}]},"form":{"id":760373,"name":"Name of Form","last_edited":"2026-03-31 07:46:48","last_edited_ts":1774943208,"edited_after_completion":false,"structure":{"total_fields":3,"tables":[{"name":"test table","id":760374,"form_name":"Jable"}],"asset_fields":[],"media_fields":[{"name":"img","type":"image"}],"visibility_rules":[],"repeatable_sections":[]},"on_complete":{"count":0,"rules":[]},"edit_logs":[{"id":"922911","cdate":"1774943208","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"760373","name":"api tests","newDate":"MAR 31, 2026","newTime":"07:46 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"922907","cdate":"1774942923","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"760373","name":"api tests","newDate":"MAR 31, 2026","newTime":"07:42 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"922905","cdate":"1774942839","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"760373","name":"api tests","newDate":"MAR 31, 2026","newTime":"07:40 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"922904","cdate":"1774942745","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"760373","name":"api tests","newDate":"MAR 31, 2026","newTime":"07:39 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"922903","cdate":"1774942659","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"760373","name":"api tests","newDate":"MAR 31, 2026","newTime":"07:37 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"922898","cdate":"1774198809","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"760373","name":"api tests","newDate":"MAR 22, 2026","newTime":"05:00 PM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}},{"id":"922897","cdate":"1774198774","type_name":"form","type_name2":"edit","description":"edits made to form","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"760373","name":"api tests","newDate":"MAR 22, 2026","newTime":"04:59 PM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}}]},"user_activity":[],"logs":[{"id":"922989","cdate":"1779793644","type_name":"job","type_name2":"new","description":"job created","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:07 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}},{"id":"922990","cdate":"1779793644","type_name":"job","type_name2":"is_complete","description":"status set to 0","user_id":"92447","meta":"{\"new_value\":0,\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:07 AM","userIP":"86.42.2.80","metaObj":{"new_value":0,"user_ip":"86.42.2.80"}},{"id":"922996","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed from <status>0<\/status> to <status>1<\/status>","user_id":"92447","meta":"{}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"N\/A","metaObj":[]},{"id":"922997","cdate":"1779794699","type_name":"job","type_name2":"is_complete","description":"status changed to Complete","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:24 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}},{"id":"922998","cdate":"1779794733","type_name":"job","type_name2":"set pdf sent","description":"meta updated to show report was sent","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:25 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}},{"id":"922999","cdate":"1779795031","type_name":"job","type_name2":"set notes","description":"notes updated","user_id":"92447","meta":"{\"user_ip\":\"86.42.2.80\"}","obj_id":"772031","name":"api tests","newDate":"MAY 26, 2026","newTime":"11:30 AM","userIP":"86.42.2.80","metaObj":{"user_ip":"86.42.2.80"}},{"id":"923025","cdate":"1780384481","type_name":"job","type_name2":"save","description":"job updated from popup","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"772031","name":"api tests","newDate":"JUN 02, 2026","newTime":"07:14 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}},{"id":"923026","cdate":"1780384711","type_name":"job","type_name2":"save","description":"job updated from popup","user_id":"92447","meta":"{\"user_ip\":\"151.2.230.138\"}","obj_id":"772031","name":"api tests","newDate":"JUN 02, 2026","newTime":"07:18 AM","userIP":"151.2.230.138","metaObj":{"user_ip":"151.2.230.138"}}]}
```

#### On Failure

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

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

If the "id" parameter does not match the ID of an existing Job:

```
{'error':'Requested job does not exist'}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/job/_activityget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
