Skip to main content
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.

GET/api/v2/notifications

List notifications

Returns the notices of the active organization and your own.

Authentication
API token or portal session
Required permission
organization.read

Parameters

Parameters listNotifications
NameInTypeRequiredRules
limitQueryintegerNo
  • Minimum 1
  • Maximum 200
  • Default: 50
cursorQuerystringNo
  • At most 512 characters
statusQuerystringNo
  • One of: all, unread
  • Default: all

Responses

  • 200OKapplication/json

    Fields (16)
    Responses listNotifications 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].idstringYes
    data[].typestringYes
    data[].severitystringYes
    • One of: info, success, warning, critical
    data[].message_keystringYes
    data[].paramsobjectYes
    data[].resourceobjectYes
    • Can be null
    data[].resource.typestringYes
    data[].resource.idstringYes
    data[].personalbooleanYes
    data[].created_atstringYes
    • Format: date-time
    data[].read_atstringYes
    • Format: date-time
    • Can be null
    paginationobjectYes
    pagination.next_cursorstringYes
    • Can be null
    pagination.has_morebooleanYes
    unread_countintegerYes
    • 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
curl 'https://api.cdnify.lat/api/v2/notifications' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/notifications/read-all

Mark 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
    FieldTypeRequiredRules
    updatedintegerYes
    • 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
curl -X POST 'https://api.cdnify.lat/api/v2/notifications/read-all' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/notifications/{notification_id}/read

Mark 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

Parameters markNotificationRead
NameInTypeRequiredRules
notification_idPathstringYes
  • Pattern: ^ntf_[0-9a-f]{32}$

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
curl -X POST 'https://api.cdnify.lat/api/v2/notifications/ntf_0a1b2c3d4e5f67890a1b2c3d4e5f6789/read' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"