notifications

Notifications API

List all current user pending notifications

GET//www.data.gouv.fr/api/1/notifications/
Header parameters
Response

Success

Body
created_onstring (date-time)

The notification creation datetime

detailsobject

Key-Value details depending on notification type

typestring

The notification type

Request
const response = await fetch('//www.data.gouv.fr/api/1/notifications/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "created_on": "2024-10-03T11:30:45.286Z",
    "type": "text"
  }
]

Dernière mise à jour