Menu
Get Activity
Retrieve an Activity Action
GET
/activity/{id}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Activity action (under Activity).
- Fill in the fields below, then reference the result from later steps as
{{getActivity.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getActivity.response.data.<field>}}.
{
"data": {
"id": 2,
"action": "update",
"user": "string",
"timestamp": "2019-12-05T22:52:09Z",
"ip": "127.0.0.1",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/78.0.3904.108 Safari/537.36",
"collection": null,
"item": "328",
"comment": null,
"origin": "https://directus.io",
"revisions": [
null
]
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?