POST
/
v5
/
app
/
notifications
curl --request POST \
  --url https://api.whop.com/api/v5/app/notifications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "topic_identifier": "<string>",
  "deep_link": "<string>",
  "target_app_view": "<string>",
  "targets": [
    {
      "users": [
        "<string>"
      ],
      "experiences": [
        "<string>"
      ],
      "products": [
        "<string>"
      ],
      "companies": [
        "<string>"
      ]
    }
  ],
  "notification_data": {
    "in_app": {
      "subject": "<string>",
      "content": "<string>"
    },
    "mobile": {
      "subject": "<string>",
      "content": "<string>"
    },
    "all": {
      "subject": "<string>",
      "content": "<string>"
    }
  }
}'
{
  "status": "created",
  "message": "We will attempt to send out your notification. This is processed in a background job, so we cannot confirm how many notifications were sent in this request."
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
topic_identifier
string
required
deep_link
string
target_app_view
string
default: customer_product_view
targets
object[]
required
notification_data
object
required

Response

201 - application/json
status
string
message
string