Contents
Notifications
Notices for your organization and for you, as shown in the portal.
Examples marked as generated are built from the schema with synthetic values.
- GETList notifications
/api/v2/notifications - POSTMark all notifications as read
/api/v2/notifications/read-all - POSTMark a notification as read
/api/v2/notifications/{notification_id}/read
GET
/api/v2/notificationsList notifications
Returns the notices of the active organization and your own.
- Authentication
- API token or portal session
- Required permission
organization.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| limit | Query | integer | No |
|
| cursor | Query | string | No |
|
| status | Query | string | No |
|
Responses
200OKapplication/json
Fields (16)
Responses listNotifications 200 Field Type Required Rules data array<object> Yes data[].id string Yes data[].type string Yes data[].severity string Yes - One of: info, success, warning, critical
data[].message_key string Yes data[].params object Yes data[].resource object Yes - Can be null
data[].resource.type string Yes data[].resource.id string Yes data[].personal boolean Yes data[].created_at string Yes - Format: date-time
data[].read_at string Yes - Format: date-time
- Can be null
pagination object Yes pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes unread_count integer Yes - Minimum 0
Example (generated from the schema) { "data": [ { "id": "id_example", "type": "migration.site_never_deployed", "severity": "info", "message_key": "migration.notice.siteNeverDeployed", "params": {}, "resource": { "type": "string", "id": "id_example" }, "personal": false, "created_at": "2026-01-15T10:00:00Z", "read_at": "2026-01-15T10:00:00Z" } ], "pagination": { "next_cursor": "string", "has_more": false }, "unread_count": 0 }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/malformed_request", "title": "Malformed request", "status": 400, "code": "malformed_request", "request_id": "req_01EXAMPLE00000000000000000" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/notifications' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"POST
/api/v2/notifications/read-allMark all notifications as read
Marks every notice as read.
- Authentication
- API token or portal session
- Required permission
organization.read
Responses
200OKapplication/json
Fields (1)
Responses markAllNotificationsRead 200 Field Type Required Rules updated integer Yes - Minimum 0
Example (generated from the schema) { "updated": 0 }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/notifications/read-all' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"POST
/api/v2/notifications/{notification_id}/readMark a notification as read
Marks one notice as read. Marking it again changes nothing.
- Authentication
- API token or portal session
- Required permission
organization.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| notification_id | Path | string | Yes |
|
Responses
204No content
401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/notifications/ntf_0a1b2c3d4e5f67890a1b2c3d4e5f6789/read' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"