GET
/
v1
/
notifications
/
{notificationId}
import co.novu.Novu
import co.novu.extensions.notification

fun main() {
    val novu = Novu(apiKey = "<NOVU_API_KEY>")
    val notification = novu.notification("<NOTIFICATION_ID>")
    println(notification)
}
{
  "data": {
    "_environmentId": "<string>",
    "_id": "<string>",
    "_organizationId": "<string>",
    "channels": "in_app",
    "createdAt": "<string>",
    "jobs": [
      {
        "_id": "<string>",
        "digest": {},
        "executionDetails": [
          {
            "_id": "<string>",
            "_jobId": "<string>",
            "detail": "<string>",
            "isRetry": true,
            "isTest": true,
            "providerId": {},
            "raw": "<string>",
            "source": "Credentials",
            "status": "Success"
          }
        ],
        "payload": {},
        "providerId": {},
        "status": "<string>",
        "step": {
          "_id": "<string>",
          "active": true,
          "filters": {
            "children": [
              {
                "field": "<string>",
                "operator": "LARGER",
                "true": "subscriber",
                "value": "<string>"
              }
            ],
            "isNegated": true,
            "type": "BOOLEAN",
            "value": "AND"
          },
          "template": {}
        },
        "type": "<string>"
      }
    ],
    "subscriber": {
      "_id": "<string>",
      "email": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "phone": "<string>"
    },
    "template": {
      "_id": "<string>",
      "name": "<string>",
      "triggers": [
        {
          "identifier": "<string>",
          "subscriberVariables": [
            {
              "name": "<string>"
            }
          ],
          "type": "event",
          "variables": [
            {
              "name": "<string>"
            }
          ]
        }
      ]
    },
    "transactionId": "<string>"
  }
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

Path Parameters

notificationId
string
required

Response

200 - application/json
data
object