SeoclerksDevelopers

Notifications

The account's alerts.

GET /notifications

Notifications

Scope: read. Newest first, by id.

Reading marks nothing read.

Parameters

NameWhereDescription
cursorquerymeta.next_cursor from the previous page. Up to 1024 characters.
limitqueryPage size. Above 100 is treated as 100. At least 1. Default 25.
unreadqueryOne of 0, 1.
If-None-MatchheaderAn ETag from an earlier response.

Example request

curl "https://www.seoclerk.com/api/v1/notifications" \
  -H "Authorization: Bearer $SEOCLERKS_API_KEY"

Response 200

A page of these in data, with meta.limit and meta.next_cursor.

FieldTypeDescription
idinteger
sender_idinteger
resource_typestring
resource_idinteger
actionstring
created_attimestamp or null
read_attimestamp or null
{
    "data": [
        {
            "id": 1024,
            "sender_id": 1024,
            "resource_type": "string",
            "resource_id": 1024,
            "action": "string",
            "created_at": "2026-10-10T14:03:22Z",
            "read_at": "2026-10-10T14:03:22Z"
        }
    ],
    "meta": {
        "limit": 1,
        "next_cursor": "string",
        "request_id": "9f2c4e1ab07d3351"
    }
}

Errors

PATCH /notifications

Mark every notification read

Scope: notifications:write, or the broad write. Idempotency-Key is optional.

Every unread notification, as the website's "mark all" does. One already read keeps its first read time.

Parameters

NameWhereDescription
Idempotency-KeyheaderMakes a retry safe. Must match ^[A-Za-z0-9_.-]{1,64}$.

Request body

FieldTypeDescription
read requiredbooleanMust be true. A notification cannot be marked unread. Always true.

Example request

curl -X PATCH "https://www.seoclerk.com/api/v1/notifications" \
  -H "Authorization: Bearer $SEOCLERKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"read":true}'

Response 200

FieldTypeDescription
markedintegerHow many were unread and are now read.
{
    "data": {
        "marked": 1
    },
    "meta": {
        "request_id": "9f2c4e1ab07d3351"
    }
}

Errors

PATCH /notifications/{id}

Mark a notification read

Scope: notifications:write, or the broad write. Idempotency-Key is optional.

The first read time is kept. A notification cannot be marked unread.

Parameters

NameWhereDescription
id requiredpathAt least 1.
Idempotency-KeyheaderMakes a retry safe. Must match ^[A-Za-z0-9_.-]{1,64}$.

Request body

FieldTypeDescription
read requiredbooleanMust be true. A notification cannot be marked unread. Always true.

Example request

curl -X PATCH "https://www.seoclerk.com/api/v1/notifications/1024" \
  -H "Authorization: Bearer $SEOCLERKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"read":true}'

Response 200

FieldTypeDescription
idinteger
read_attimestamp or null
{
    "data": {
        "id": 1024,
        "read_at": "2026-10-10T14:03:22Z"
    },
    "meta": {
        "request_id": "9f2c4e1ab07d3351"
    }
}

Errors