POST /api/push/send

Send a notification to every phone in a push group.

Body

FieldTypeInstructions
pushGroupIdstringRequired. The group to send to.
titlestringThe bold first line. Send a title, a message, or both.
subtitlestringThe line under the title.
messagestringThe body text. Send a title, a message, or both.
imageUrlstringA picture shown with the notification. WebP, PNG, or JPEG.
actionURLstringThe page a tap opens. Must start with http:// or https://. Without it, a tap opens the group in the app.
namestringA label for this message in the dashboard log. Phones never see it.

Example

1
2
3
4
5
6
7
8
9
10
11
12
curl -X POST https://api.webliveactivity.com/api/push/send \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: wla_your_key' \
  -d '{
  "pushGroupId": "acme-orders",
  "title": "Your order shipped!",
  "subtitle": "Order #1234",
  "message": "Your package is on the way. Expected delivery: tomorrow by 5 PM.",
  "imageUrl": "https://acme.example/shipped.webp",
  "actionURL": "https://acme.example/orders/1234",
  "name": "Shipping notice"
}'

Response

targeted is how many phones the notification was sent to. It is 0 when no one has joined, and then nothing is billed.

1
2
3
4
5
6
{
  "ok": true,
  "targeted": 42,
  "groupId": "pg-7hk3mzq2wd9x",
  "pushGroupId": "acme-orders"
}

Delivery

  • Sends go out right away. They are not combined like Live Activity updates: two sends are two notifications.
  • Every notification alerts the phone. There is no quiet send.
  • A phone that is off gets it when it comes back, up to 3 days later. iPhone keeps only the newest one.
  • Each phone that receives it counts as one push. See delivery and billing.

Errors

StatusMeaning
400No pushGroupId, no title or message, or an actionURL that is not http or https.
402FREE_TIER_LIMIT_REACHED: the Free plan's monthly pushes are used up. Only when someone has joined.
413The notification is over 4KB. Shorten the text.

All other errors are in errors and limits.

Ready To Start Building Live Activities Without “Building Them”?

Ready To Start Building Today?

No App Store submission, no native codebase to maintain. A link gets your activity onto your users’ screens, and an easy to use API keeps it live.

Includes: 7,000 Free Pushes per Month

Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
8 PM
Doing LaundryComplete This Task By 8:00 PM
Do LaundryClean FloorEat Lunch
Domino'sCooking
912
Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
Live
View LiveMoly’s Cat CamUpdated 3 Seconds AgoCat cam
In The Oven NowMat has your order in the oven.Domino's
CookingOn The WayDelivered
Thinking
Researching API EndpointPreparing changes to Foodscout
ThinkingWorkingComplete
Delivery in 30 MinutesMat is racing your way.Domino's
On The WayDelivered
GTA00:00
GTA00:00:00GTA VI
San Francisco ShockHome1
MapMidtown
3
Dallas FuelAwayOverwatch LeagueWatch Live
United 1423Gate B22 · Seat 14C · SFO → JFK
BoardingIn AirArrived
Boarding
Arriving in 6 MinutesMarcus · Toyota CamryToyota Camry
On The WayArrived
6 Min
Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
8 PM
Doing LaundryComplete This Task By 8:00 PM
Do LaundryClean FloorEat Lunch
Domino'sCooking
912
Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
Live
View LiveMoly’s Cat CamUpdated 3 Seconds AgoCat cam
In The Oven NowMat has your order in the oven.Domino's
CookingOn The WayDelivered
Thinking
Researching API EndpointPreparing changes to Foodscout
ThinkingWorkingComplete
Delivery in 30 MinutesMat is racing your way.Domino's
On The WayDelivered
GTA00:00
GTA00:00:00GTA VI
San Francisco ShockHome1
MapMidtown
3
Dallas FuelAwayOverwatch LeagueWatch Live
United 1423Gate B22 · Seat 14C · SFO → JFK
BoardingIn AirArrived
Boarding
Arriving in 6 MinutesMarcus · Toyota CamryToyota Camry
On The WayArrived
6 Min
Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
8 PM
Doing LaundryComplete This Task By 8:00 PM
Do LaundryClean FloorEat Lunch
Domino'sCooking
912
Movistar RidersMovistar RidersTerrorist9
MapOverpass
12HeroicHeroicCounter TerroristCSGOCSGO EsportsWatch Live
Live
View LiveMoly’s Cat CamUpdated 3 Seconds AgoCat cam
In The Oven NowMat has your order in the oven.Domino's
CookingOn The WayDelivered
Thinking
Researching API EndpointPreparing changes to Foodscout
ThinkingWorkingComplete
Delivery in 30 MinutesMat is racing your way.Domino's
On The WayDelivered
GTA00:00
GTA00:00:00GTA VI
San Francisco ShockHome1
MapMidtown
3
Dallas FuelAwayOverwatch LeagueWatch Live
United 1423Gate B22 · Seat 14C · SFO → JFK
BoardingIn AirArrived
Boarding
Arriving in 6 MinutesMarcus · Toyota CamryToyota Camry
On The WayArrived
6 Min