Get a notification and mark it as read
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "announcement",
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"read": true,
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Notifications
Get a notification and mark it as read
Returns the underlying announcement and upserts
user_announcement_state.read = true for the current user.
The first GET creates the per-user state row.
Open to any authenticated user; rate-limited to 100 calls per minute.
GET
/
v1
/
notifications
/
{notificationId}
Get a notification and mark it as read
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/notifications/{notificationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "announcement",
"title": "<string>",
"summary": "<string>",
"content": "<string>",
"icon": "<string>",
"link": "<string>",
"read": true,
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
BearerAuthOrgApiKeyAuth
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Notification identifier - equal to the underlying announcement id (lazy model).
Maximum string length:
64Pattern:
^[a-zA-Z0-9_-]+$Was this page helpful?