import co.novu.Novu import co.novu.dto.request.NotificationRequest import co.novu.extensions.notifications fun main() { val novu = Novu(apiKey = "<NOVU_SECRET_KEY>") val notificationRequest = NotificationRequest("<CHANNELS>", "<TEMPLATES>", "<EMAILS>", "<SEARCH>"); val notifications = novu.notifications(notificationRequest) println(notifications) }
{ "hasMore": true, "data": [ { "_id": "<string>", "_environmentId": "<string>", "_organizationId": "<string>", "transactionId": "<string>", "createdAt": "<string>", "channels": "in_app", "subscriber": { "firstName": "<string>", "_id": "<string>", "lastName": "<string>", "email": "<string>", "phone": "<string>" }, "template": { "_id": "<string>", "name": "<string>", "triggers": [ "<string>" ] }, "jobs": [ "<string>" ] } ], "pageSize": 123, "page": 123 }
Authorization
ApiKey 18d2e625f05d80e
API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
Show child attributes
The response is of type object.
object
Was this page helpful?