Create a Notification Topic
curl --request POST \
--url https://api.whop.com/api/v5/app/notification_topics \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"name": "<string>",
"notification_channel_identifiers": [
"email"
],
"send_once": true,
"status": "active",
"topic_identifier": "<string>",
"topic_type": "company"
}'
{
"app_id": "<string>",
"created_at": 123,
"description": "<string>",
"name": "<string>",
"notification_channel_identifiers": [
"email"
],
"send_once": true,
"status": "active",
"topic_identifier": "<string>",
"topic_type": "company",
"urgent": true,
"visibility": "visible"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The description of the notification topic
The name of the notification topic
email
, sms
, in_app
, discord_dm
, mobile
Whether or not the notification topic should only be sent once
The status of the notification topic
active
, inactive
The identifier of the notification topic
The type of the notification topic
company
, user
Response
The ID of the app, which will look like app_*************
The date the notification topic was created as a unix timestamp.
The description of the notification topic
The name of the notification topic
email
, sms
, in_app
, discord_dm
, mobile
Whether or not the notification topic should only be sent once
The status of the notification topic
active
, inactive
The identifier of the notification topic
The type of the notification topic
company
, user
Whether or not the notification topic is urgent
The visibility of the notification topic
visible
, hidden
Was this page helpful?
curl --request POST \
--url https://api.whop.com/api/v5/app/notification_topics \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"name": "<string>",
"notification_channel_identifiers": [
"email"
],
"send_once": true,
"status": "active",
"topic_identifier": "<string>",
"topic_type": "company"
}'
{
"app_id": "<string>",
"created_at": 123,
"description": "<string>",
"name": "<string>",
"notification_channel_identifiers": [
"email"
],
"send_once": true,
"status": "active",
"topic_identifier": "<string>",
"topic_type": "company",
"urgent": true,
"visibility": "visible"
}