Menu
Get Notifications
List notifications
GET
/notificationsUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Notifications action (under Notifications).
- Fill in the fields below, then reference the result from later steps as
{{getNotifications.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getNotifications.response.data.<field>}}.
{
"data": [
{
"id": 2,
"timestamp": "2021-11-24T13:57:35Z",
"status": "inbox",
"recipient": "3EE34828-B43C-4FB2-A721-5151579B08EA",
"sender": "497a495e-5529-4e46-8feb-2f35e9b85601",
"subject": "inbox",
"message": "\\nHello admin@example.com,\\n\\rijk@directus.io has mentioned you in a comment:\\n\\n> Hello <em>admin@example.com</em>!\\n\\n<a href=\\\"http://localhost:8080/admin/content/articles/1\\\">Click here to view.</a>\\n",
"collection": "articles",
"item": "1"
}
],
"meta": {
"total_count": 0,
"filter_count": 0
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?