Notifications
List Notifications
Query Parameters
Filter by status: unread, read, archived
Filter by category
Maximum number of items to return (1-100)
201 <= value <= 100Cursor for pagination (from previous response's next_cursor)
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/notifications"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"notifications": [
{
"notification_id": "string",
"scope": "string",
"scope_id": "string",
"recipient_id": "string",
"type": "string",
"priority": "string",
"category": "string",
"title": "string",
"message": "string",
"metadata": {},
"action_url": "string",
"action_label": "string",
"status": "string",
"read_at": "2019-08-24T14:15:22Z",
"source_service": "string",
"source_event": "string",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z"
}
],
"unread_count": 0
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Unread Count
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/notifications/unread-count"{
"unread_count": 0,
"by_category": {
"property1": 0,
"property2": 0
}
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Mark Notification Read
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/notifications/string/read"{
"notification_id": "string",
"scope": "string",
"scope_id": "string",
"recipient_id": "string",
"type": "string",
"priority": "string",
"category": "string",
"title": "string",
"message": "string",
"metadata": {},
"action_url": "string",
"action_label": "string",
"status": "string",
"read_at": "2019-08-24T14:15:22Z",
"source_service": "string",
"source_event": "string",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Mark All Notifications Read
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/notifications/read-all"null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Notification Preferences
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/notifications/preferences"{
"muted_categories": [
"string"
],
"available_categories": [
"string"
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Update Notification Preferences
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/v1/notifications/preferences" \ -H "Content-Type: application/json" \ -d '{ "muted_categories": [ "string" ] }'{
"muted_categories": [
"string"
],
"available_categories": [
"string"
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Archive Notification
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://loading/v1/notifications/string"null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}