get
Get a single notification

https://CounterSocial.example/api/v1/notifications/:id

View information about a notification with a given ID.

Returns: Notification
OAuth: User token + read:notifications
Version history:
0.0.0 - added

Request

Path Parameters
:id
required
string
ID of the notification in the database.
Headers
Authorization
required
string
Bearer

Response

200: Success

A single Notification

{
  "id": "34975861",
  "type": "mention",
  "created_at": "2019-11-23T07:49:02.064Z",
  "account": {
    "id": "971724",
    "username": "zsc",
    "acct": "zsc",
    ...
  },
  "status": {
    "id": "103186126728896492",
    "created_at": "2019-11-23T07:49:01.940Z",
    "in_reply_to_id": "103186038209478945",
    "in_reply_to_account_id": "14715",
    ...
    "content": "

@trwnh sup!

"
, ... "account": { "id": "971724", "username": "zsc", "acct": "zsc", ... }, ... "mentions": [ { "id": "14715", "username": "trwnh", "url": "https://CounterSocial.social/@trwnh", "acct": "trwnh" } ], ... } },

401: Unauthorized

Invalid or missing Authorization header

{
  "error": "The access token is invalid"
}

post
Dismiss all notifications

https://CounterSocial.example/api/v1/notifications/clear

Clear all notifications from the server.

Returns: empty object
OAuth: User token + write:notifications
Version history:
0.0.0 - added

Request

Headers
Authorization
required
string
Bearer

Response

200: Success

Notifications successfully cleared

{}

401: Unauthorized

Invalid or missing Authorization header

{
  "error": "The access token is invalid"
}

post
Dismiss a single notification

https://CounterSocial.example/api/v1/notifications/:id/dismiss

Clear a single notification from the server.

Returns: empty object
OAuth: User token + write:notifications
Version history:
1.3.0 - added

Request

Path Parameters
:id
required
string
ID of the notification to be cleared
Headers
Authorization
required
string
Bearer

Response

200: Success

Notification with given ID successfully dismissed

{}

401: Unauthorized

Invalid or missing Authorization header

{
  "error": "The access token is invalid"
}

post
\(DEPRECATED\) Dismiss a single notification

https://CounterSocial.example/api/v1/notifications/dismiss

Delete a single notification from the server.

Returns: empty object
OAuth: User token + write:notifications
Version history:
0.0.0 - available
3.0.0 - removed

Request

Headers
Authorization
required
string
Bearer
Form Data Parameters
id
required
string
ID of the notification to be cleared, passed as a parameter

Response

200: Success

Notification with given ID successfully dismissed

{}

401: Unauthorized

Invalid or missing Authorization header

{
  "error": "The access token is invalid"
}

Last updated June 30, 2020 ?? Improve this page