List the notifications sent to your agents
/v1/whatsapp/agents/notificationsconst notifications = await bird.whatsapp.agents.notifications.list({
from: "+13124495648",
status: "skipped",
});
for (const notification of notifications.data ?? []) {
console.log(notification.name, notification.skipped_reason);
}notifications = client.whatsapp.agents.notifications.list(from_="+13124495648", status="skipped")
for notification in notifications.data or []:
print(notification.name, notification.skipped_reason)for notification, err := range client.Whatsapp.Agents.Notifications.List(context.Background(), bird.WhatsappAgentsNotificationsListParams{
From: "+13124495648",
Status: bird.WhatsAppAgentNotificationStatusSkipped,
}) {
if err != nil {
log.Fatal(err)
}
fmt.Println(*notification.Name, *notification.SkippedReason) // skipped always carries a reason
}foreach ($bird->whatsapp->agents->notifications->list(['from' => '+13124495648', 'status' => 'skipped']) as $notification) {
echo $notification->getName(), ' ', $notification->getSkippedReason(), PHP_EOL;
}bird whatsapp agents notifications listcurl -X GET "https://us1.platform.bird.com/v1/whatsapp/agents/notifications" \
-H "Authorization: Bearer $TOKEN" \
--url-query "limit=25"{
"data": [
{
"id": "waan_01krdgeqcxet5s7t44vh8rt9m7",
"from": "+13124495648",
"to": "+14155551234",
"name": "order_shipped",
"description": "Order 88213 left the warehouse and arrives on Thursday.",
"payload": "{\"order_id\":\"88213\",\"carrier\":\"ACME Courier\",\"eta\":\"2026-10-02\"}",
"status": "skipped",
"skipped_reason": "The contact's conversation is currently held by the business.",
"created_at": "2026-10-01T08:00:00Z"
},
{
"id": "waan_01krdgeqcxet5s7t44vh8rt9m6",
"from": "+13124495648",
"to": "+14155559876",
"name": "payment_received",
"description": "Payment of $42.00 for order 88190 was received.",
"payload": "{\"order_id\":\"88190\",\"amount\":\"42.00\",\"currency\":\"USD\"}",
"status": "success",
"created_at": "2026-10-01T07:30:00Z"
}
],
"next_cursor": null,
"prev_cursor": null,
"refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTEwLTAxVDA4OjAwOjAwWlwiIiwiaSI6IndhYW5fMDFrcmRnZXFjeGV0NXM3dDQ0dmg4cnQ5bTcifQ"
}
Returns the notifications you have sent your agents, newest first, each with what came of it. Filter by from for the agent on one business number, by status to find the ones the agent skipped or WhatsApp refused, or by to to follow one contact. A notification still in flight to WhatsApp is not listed yet.
Page through the full set with the response cursors.
Paramètres de requête
statusstringReturn only notifications in this state.
Possible values: accepted, success, skipped, failed
fromstringReturn only notifications sent to the agent on this business number, in E.164 format. A phone number is normalized before matching, so spacing does not matter.
tostringReturn only notifications about this contact, a phone number in E.164 format or a business-scoped user ID. A phone number is normalized before matching, so spacing does not matter.
limitintegerMaximum number of items to return per page.
starting_afterstringCursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
ending_beforestringCursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.
Contenu de la réponse
dataA page of the notifications sent to the agent.
Afficher les attributs enfants
data.idUnique identifier for the notification.
data.fromThe business number whose agent the notification was sent to, in E.164 format.
data.toThe contact the notification was about, as you addressed it: a phone number in E.164 format, or a business-scoped user ID.
data.nameYour own name for what happened, as you sent it.
data.descriptionWhat happened, as you sent it.
data.payloadThe data you attached, as you sent it.
data.statusWhere the notification stands. accepted from the moment Bird takes it, then one of the three final states once WhatsApp has answered.
data.skipped_reasonWhatsApp's own account of why the agent chose to say nothing, passed through. Present only when status is skipped. Show it to the person who sent the notification; never match on its text.
data.errorWhy the notification failed. Present only when status is failed.
data.created_atWhen Bird accepted the notification.
next_cursorCursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.
prev_cursorCursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.
refresh_cursorRefresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet.