get https://api.onesignal.com/notifications?app_id=&limit=&offset=&kind=&template_id=
View the details for a collection of messages.
Refer to View notification response for details on responses from this API.
Overview
Notification Retention Policy
Messages sent through the API and Automated Messages are only accessible 30 days after creation; however, messages sent using the OneSignal dashboard are accessible for the app's lifetime.
Example
curl --request GET \
--url 'https://api.onesignal.com/notifications?app_id=APP_ID' \
--header "Authorization: Basic <YOUR_REST_API_KEY>" \
--header 'accept: application/json'