Skip to main content
GET
/
public
/
v1
/
notifications
/
cURL
curl -X GET "https://api.copera.app/public/v1/notifications" \
  -H "Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN"
{
  "notifications": [
    {
      "_id": "<string>",
      "type": "<string>",
      "owner": "<string>",
      "workspace": "<string>",
      "data": {},
      "status": "read",
      "sender": "<string>",
      "readAt": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "groupCount": 123,
      "groupStartedAt": "<string>",
      "groupSenderIds": [
        "<string>"
      ]
    }
  ],
  "unreadCount": 123,
  "count": 123
}

Query Parameters

  • after (optional): ObjectId cursor for newer notifications
  • before (optional): ObjectId cursor for older notifications

Response

Returns notifications scoped to the PAT user and workspace, plus total and unread counts.

Authorizations

Authorization
string
header
required

Bearer token

Query Parameters

after
string

Return notifications after this ObjectId cursor.

Pattern: ^[0-9a-fA-F]{24}$
before
string

Return notifications before this ObjectId cursor.

Pattern: ^[0-9a-fA-F]{24}$

Response

Default Response

notifications
object[]
required
unreadCount
number
required
count
number
required