Mark notification as read
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/ \
--header 'Authorization: Bearer <token>'{
"scope": "project",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "unread",
"access_level": "admin",
"title": "Document processing completed",
"message": "Your document 'Q4 Report.pdf' has been processed successfully.",
"notification_type": "document_processed",
"actions": {
"primary": {
"label": "View Document",
"type": "navigate",
"url": "/documents/123"
}
},
"read_at": "2023-11-07T05:31:56Z",
"source_object_type": "document",
"source_object_id": "550e8400-e29b-41d4-a716-446655440000",
"relative_time": "2 hours ago",
"absolute_time": "2023-11-07T05:31:56Z"
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Notifications
Mark notification as read
Mark a single notification as read for the effective user.
Impersonation:
When using the X-Impersonate-Email header, marks the notification as read for the target user.
POST
/
projects
/
{project_id}
/
notifications
/
{notification_id}
/
mark-as-read
/
Mark notification as read
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/notifications/{notification_id}/mark-as-read/ \
--header 'Authorization: Bearer <token>'{
"scope": "project",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "unread",
"access_level": "admin",
"title": "Document processing completed",
"message": "Your document 'Q4 Report.pdf' has been processed successfully.",
"notification_type": "document_processed",
"actions": {
"primary": {
"label": "View Document",
"type": "navigate",
"url": "/documents/123"
}
},
"read_at": "2023-11-07T05:31:56Z",
"source_object_type": "document",
"source_object_id": "550e8400-e29b-41d4-a716-446655440000",
"relative_time": "2 hours ago",
"absolute_time": "2023-11-07T05:31:56Z"
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Headers
Path Parameters
Response
Notification marked as read
A project-scoped notification. Returned by project notification endpoints.
The scope is always "project" and project is always a non-null UUID.