> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/notifications.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# Notifications

## GET /api/notifications/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedNotificationReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRead"}}}},"NotificationRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"type":{"type":"string","maxLength":100},"category":{"type":"string","nullable":true,"description":"Read from the registry, not stored: a property of the type, not the row.","readOnly":true},"context":{},"content_type":{"type":"integer","title":"Target type"},"target_model":{"type":"string","description":"Django model name; crud.ts maps it to a route through\nurlModelForDjangoName(). get_for_id is process-cached, so this costs no query.","readOnly":true},"object_id":{"type":"string","format":"uuid","title":"Target id"},"recipient_count":{"type":"integer","maximum":9223372036854776000,"minimum":0,"format":"int64","title":"Recipients"},"is_read":{"type":"boolean","title":"Read"},"read_at":{"type":"string","format":"date-time","nullable":true},"target_folder":{"type":"object","additionalProperties":{},"nullable":true,"description":"Targets resolve once per page: a GFK cannot be select_related.","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["category","content_type","created_at","id","object_id","target_folder","target_model","type","updated_at"]}}},"paths":{"/api/notifications/":{"get":{"operationId":"notifications_list","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["notifications"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedNotificationReadList"}}},"description":""}}}}}}
```

## POST /api/notifications/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"NotificationWrite":{"type":"object","description":"`is_read` is the whole write surface. Notifications are system-generated:\na writable `recipient` would let a user forge one for someone else.","properties":{"is_read":{"type":"boolean","title":"Read"}}}}},"paths":{"/api/notifications/":{"post":{"operationId":"notifications_create","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}}},"description":""}}}}}}
```

## GET /api/notifications/{id}/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"NotificationRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"type":{"type":"string","maxLength":100},"category":{"type":"string","nullable":true,"description":"Read from the registry, not stored: a property of the type, not the row.","readOnly":true},"context":{},"content_type":{"type":"integer","title":"Target type"},"target_model":{"type":"string","description":"Django model name; crud.ts maps it to a route through\nurlModelForDjangoName(). get_for_id is process-cached, so this costs no query.","readOnly":true},"object_id":{"type":"string","format":"uuid","title":"Target id"},"recipient_count":{"type":"integer","maximum":9223372036854776000,"minimum":0,"format":"int64","title":"Recipients"},"is_read":{"type":"boolean","title":"Read"},"read_at":{"type":"string","format":"date-time","nullable":true},"target_folder":{"type":"object","additionalProperties":{},"nullable":true,"description":"Targets resolve once per page: a GFK cannot be select_related.","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["category","content_type","created_at","id","object_id","target_folder","target_model","type","updated_at"]}}},"paths":{"/api/notifications/{id}/":{"get":{"operationId":"notifications_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRead"}}},"description":""}}}}}}
```

## PUT /api/notifications/{id}/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"NotificationWrite":{"type":"object","description":"`is_read` is the whole write surface. Notifications are system-generated:\na writable `recipient` would let a user forge one for someone else.","properties":{"is_read":{"type":"boolean","title":"Read"}}}}},"paths":{"/api/notifications/{id}/":{"put":{"operationId":"notifications_update","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}}},"description":""}}}}}}
```

## DELETE /api/notifications/{id}/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/{id}/":{"delete":{"operationId":"notifications_destroy","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/notifications/{id}/

> Answer with the new unread count: marking a row read from inside the inbox\
> does not navigate, so the badge has no other cue until the next poll.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PatchedNotificationWrite":{"type":"object","description":"`is_read` is the whole write surface. Notifications are system-generated:\na writable `recipient` would let a user forge one for someone else.","properties":{"is_read":{"type":"boolean","title":"Read"}}},"NotificationWrite":{"type":"object","description":"`is_read` is the whole write surface. Notifications are system-generated:\na writable `recipient` would let a user forge one for someone else.","properties":{"is_read":{"type":"boolean","title":"Read"}}}}},"paths":{"/api/notifications/{id}/":{"patch":{"operationId":"notifications_partial_update","description":"Answer with the new unread count: marking a row read from inside the inbox\ndoes not navigate, so the badge has no other cue until the next poll.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedNotificationWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedNotificationWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedNotificationWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWrite"}}},"description":""}}}}}}
```

## GET /api/notifications/{id}/cascade-info/

> A leaf: nothing cascades. The inherited version also asked for\
> \`delete\_notification\` on the target's folder, which a recipient need not hold.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/{id}/cascade-info/":{"get":{"operationId":"notifications_cascade_info_retrieve","description":"A leaf: nothing cascades. The inherited version also asked for\n`delete_notification` on the target's folder, which a recipient need not hold.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/{id}/neighborhood/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/{id}/neighborhood/":{"get":{"operationId":"notifications_neighborhood_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/{id}/object/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/{id}/object/":{"get":{"operationId":"notifications_object_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/autocomplete/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/autocomplete/":{"get":{"operationId":"notifications_autocomplete_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/notifications/batch-action/

> Narrower than the inherited version: the recipient-scoped queryset is the\
> whole permission check, so an id the caller does not own is simply absent.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/batch-action/":{"post":{"operationId":"notifications_batch_action_create","description":"Narrower than the inherited version: the recipient-scoped queryset is the\nwhole permission check, so an id the caller does not own is simply absent.","tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/category/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/category/":{"get":{"operationId":"notifications_category_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/is\_read/

> A plain boolean has no choices of its own; the batch modal needs a pair.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/is_read/":{"get":{"operationId":"notifications_is_read_retrieve","description":"A plain boolean has no choices of its own; the batch modal needs a pair.","tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/notifications/unread\_count/

> The inbox. Scoped on \`recipient\` alone, so every inherited folder-RBAC\
> enforcement point is replaced (ADR notification-recipient-scoped-access).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"notifications"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/notifications/unread_count/":{"get":{"operationId":"notifications_unread_count_retrieve","description":"The inbox. Scoped on `recipient` alone, so every inherited folder-RBAC\nenforcement point is replaced (ADR notification-recipient-scoped-access).","tags":["notifications"],"responses":{"200":{"description":"No response body"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
