API reference

sendMarketingPushNotification

Required permission: WhiteLabelMarketingPushNotificationWrite

graphql
sendMarketingPushNotification(
  whiteLabelId: ID!
  message: String!
  filter: MarketingPushNotificationFilter
): MarketingPushNotification

Arguments

Name Type Description
whiteLabelId ID!
message String!
filter MarketingPushNotificationFilter

Returns

MarketingPushNotification

Example

graphql
mutation SendMarketingPushNotification($whiteLabelId: ID!, $message: String!) {
  sendMarketingPushNotification(whiteLabelId: $whiteLabelId, message: $message) {
    id
    createdAt
    deviceCount
    message
    userCount
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { sendMarketingPushNotification(...) { __typename } }"}'