Get notification

GET/v1/notifications/{notificationId}

Authorization

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

In: header

Path Parameters

notificationIdRequiredstring

Header Parameters

idempotency-keystring

A header for idempotency purposes

curl -X GET "https://api.novu.co/v1/notifications/<string>" \
  -H "idempotency-key: <string>" \
  -H "Authorization: <token>"

OK

{
  "_id": "string",
  "_environmentId": "string",
  "_organizationId": "string",
  "_subscriberId": "string",
  "transactionId": "string",
  "_templateId": "string",
  "_digestedNotificationId": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "channels": [
    "in_app"
  ],
  "subscriber": {
    "firstName": "string",
    "subscriberId": "string",
    "_id": "string",
    "lastName": "string",
    "email": "string",
    "phone": "string"
  },
  "template": {
    "_id": "string",
    "name": "string",
    "origin": "novu-cloud",
    "triggers": [
      {
        "type": "event",
        "identifier": "string",
        "variables": [
          {
            "name": "string"
          }
        ],
        "subscriberVariables": [
          {
            "name": "string"
          }
        ]
      }
    ]
  },
  "jobs": [
    {
      "_id": "string",
      "type": "in_app",
      "digest": {
        "digestKey": "string",
        "amount": 0,
        "unit": "seconds",
        "type": "regular",
        "events": [
          {}
        ],
        "backoff": true,
        "backoffAmount": 0,
        "backoffUnit": "seconds",
        "updateMode": true,
        "timed": {
          "atTime": "string",
          "weekDays": [
            "monday"
          ],
          "monthDays": [
            0
          ],
          "ordinal": "1",
          "ordinalValue": "day",
          "monthlyType": "each",
          "cronExpression": "string"
        }
      },
      "executionDetails": [
        {
          "_id": "string",
          "createdAt": "string",
          "status": "Success",
          "detail": "string",
          "isRetry": true,
          "isTest": true,
          "providerId": "emailjs",
          "raw": "string",
          "source": "Credentials"
        }
      ],
      "step": {
        "_id": "string",
        "active": true,
        "replyCallback": {},
        "controlVariables": {},
        "metadata": {},
        "issues": {},
        "filters": [
          {
            "isNegated": true,
            "type": "BOOLEAN",
            "value": "AND",
            "children": [
              {
                "field": "string",
                "value": "string",
                "operator": "LARGER",
                "on": "subscriber"
              }
            ]
          }
        ],
        "template": {},
        "variants": [
          {
            "_id": "string",
            "active": true,
            "replyCallback": {},
            "controlVariables": {},
            "metadata": {},
            "issues": {},
            "filters": [
              {
                "isNegated": true,
                "type": "BOOLEAN",
                "value": "AND",
                "children": [
                  {
                    "field": "string",
                    "value": "string",
                    "operator": "LARGER",
                    "on": "subscriber"
                  }
                ]
              }
            ],
            "template": {},
            "variants": [],
            "_templateId": "string",
            "name": "string",
            "_parentId": "string"
          }
        ],
        "_templateId": "string",
        "name": "string",
        "_parentId": "string"
      },
      "payload": {},
      "providerId": "emailjs",
      "status": "string",
      "updatedAt": "string"
    }
  ],
  "payload": {},
  "tags": [
    "string"
  ],
  "controls": {},
  "to": {}
}