curl --request GET \
--url https://{defaultHost}/v1/apps/{app_id}/notifications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Authorization: <api-key>'{
"notification": {
"id": "<string>",
"app_id": "<string>",
"event_type": "verification.otp.sent",
"category": "verification",
"priority": "low",
"status": "pending",
"title": "Verification Code Sent",
"body": "<string>",
"app_user_id": "<string>",
"action_url": "<string>",
"action_text": "<string>",
"requires_action": true,
"dismissible": true,
"read": true,
"read_at": "2023-11-07T05:31:56Z",
"dismissed": true,
"dismissed_at": "2023-11-07T05:31:56Z",
"expired": true,
"expires_at": "2023-11-07T05:31:56Z",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Retrieve a single notification by ID
curl --request GET \
--url https://{defaultHost}/v1/apps/{app_id}/notifications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Authorization: <api-key>'{
"notification": {
"id": "<string>",
"app_id": "<string>",
"event_type": "verification.otp.sent",
"category": "verification",
"priority": "low",
"status": "pending",
"title": "Verification Code Sent",
"body": "<string>",
"app_user_id": "<string>",
"action_url": "<string>",
"action_text": "<string>",
"requires_action": true,
"dismissible": true,
"read": true,
"read_at": "2023-11-07T05:31:56Z",
"dismissed": true,
"dismissed_at": "2023-11-07T05:31:56Z",
"expired": true,
"expires_at": "2023-11-07T05:31:56Z",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Was this page helpful?