Fetch notification by ID
GET {{baseUrl}}/notifications/:notification_id
Fetch a user's notification by its ID.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MAGICBELL-API-KEY | string | (Required) The (public) API key of your MagicBell project. | |
X-MAGICBELL-USER-EXTERNAL-ID | string | ID of the user. Provide the X-MAGICBELL-USER-EMAIL header instead if you identify users by email. | |
X-MAGICBELL-USER-EMAIL | string | Email address of the user. Provide the X-MAGICBELL-USER-EXTERNAL-ID header instead if you identify users by ID. | |
X-MAGICBELL-USER-HMAC | string | HMAC calculated with the API secret and ID, or email, of the user. Required if the project has HMAC enabled. | |
Accept | string |
RESPONSES
status: OK
{"notification":{"title":"\u003cstring\u003e","recipient":{"id":"\u003cstring\u003e","external_id":"\u003cstring\u003e","email":"\u003cstring\u003e","first_name":"\u003cstring\u003e","last_name":"\u003cstring\u003e","custom_attributes":{"et_fd":-94469011.48107569,"enim53":-11693469,"cupidatatd7a":true,"proident55f":false},"phone_numbers":["\u003cstring\u003e","\u003cstring\u003e"]},"id":"\u003cstring\u003e","content":"\u003cstring\u003e","action_url":"\u003curi\u003e","category":"\u003cstring\u003e","topic":"\u003cstring\u003e","custom_attributes":{"non_3c3":-35797487,"reprehenderit586":"ex culpa"},"sent_at":"\u003cnumber\u003e","seen_at":"\u003cnumber\u003e","read_at":"\u003cnumber\u003e","archived_at":"\u003cnumber\u003e"}}