Filtering collections
Messages are a central part of the Prepr for Radio module. The Messages API endpoint is part of the Content REST API.
GET https://api.eu1.prepr.io/messages?fields=sent,replied_at{sent}
{
"items": [{
"id": "caf5c136-f62a-4e65-b5b4-078d2bt73651",
"created_on": "2017-03-08T15:46:41+0000",
"changed_on": null,
"label": "AppMessage",
"nickname": null,
"body": "Hello world",
"audio_url": null,
"video_url": null,
"audio_source_url": null,
"video_source_url": null,
"photo_url": "2017/03/13/app_b054cef86d85b7031335ee1b8f53601f.jpg",
}],
"total": 98,
"after": "YWZ0ZXJfMg==",
"before": "YmVmb3JlXzA=",
"skip": 0,
"limit": 2
}
Supported fields
field | description |
---|---|
sent | Person or User profile that created the message |
replies | List of messages replied on the message |
replied_at | Parent message if the message is a reply |
replied_at{sent} | Original person that created the parent message |
Fields can be added as ?fields=
param.
Was this article helpful?
We’d love to learn from your feedback