Notifications
Send a Notification
Sends a notification to a user
POST
/
v5
/
app
/
notifications
Authorization
Body
curl --request POST \
--url https://api.whop.com/api/v5/app/notifications \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"notification_data": {
"all": {
"content": "<string>",
"subject": "<string>"
},
"in_app": {
"content": "<string>",
"subject": "<string>"
},
"mobile": {
"content": "<string>",
"subject": "<string>"
}
},
"targets": [
{
"companies": [],
"experiences": [],
"products": [],
"users": []
}
],
"topic_identifier": "<string>"
}'
{
"status": "created"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
notification_data
object
requiredtargets
object[]
requiredtopic_identifier
string
requiredResponse
201 - application/json
status
string
Was this page helpful?
curl --request POST \
--url https://api.whop.com/api/v5/app/notifications \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"notification_data": {
"all": {
"content": "<string>",
"subject": "<string>"
},
"in_app": {
"content": "<string>",
"subject": "<string>"
},
"mobile": {
"content": "<string>",
"subject": "<string>"
}
},
"targets": [
{
"companies": [],
"experiences": [],
"products": [],
"users": []
}
],
"topic_identifier": "<string>"
}'
{
"status": "created"
}