Notifications

List Notification Topics

Changed on

Lists the platform's visible notification topics — the categories users can set notification preferences on. App-created topics are not returned.

get/notifications/topics

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/notifications/topics
  • Auth: HTTP bearer

Query parameters

topic_type'user' | 'account_team'

Only return topics of this scope: user (member notifications) or account_team (team notifications).

firstinteger

Number of results to return from the start of the range.

afterstring

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

Response

notification topics listed

Example response

{
  "data": [
    {
      "description": "A customer books and pays for a detail",
      "id": "topic_xxxxxxxxxxxxxx",
      "identifier": "notification_topic1_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "is_mention": true,
      "name": "New sales",
      "topic_type": "account_team"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • breaking

      for the query request parameter first, default value 20 was added

    • warning

      for the query request parameter first, the max was set to 100.00

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status