App Icon Badge Count EndpointsView Markdown ↗
Set App Icon Badge Count
Shows a number on the ActivitySmith app icon.
POST https://activitysmith.com/api/badgeAuthentication#
Use your API key in the request header.
Authorization: Bearer $YOUR_API_KEYRequest examples#
await activitysmith.badgeCount(8333);Bodyapplication/json
badgeintegerrequired- The count to show on the ActivitySmith app icon. Send 0 to clear it.
- Minimum:
0Maximum:2147483647 targetChannelTarget
Additional Properties: false
set count
{ "badge": 8333}clear count
{ "badge": 0}channel targeted
{ "badge": 3, "target": { "channels": [ "sales", "customer-success" ] }}Responses#
200#
App Icon Badge Count updated
Content type: application/json
Schema: AppIconBadgeCountUpdateResponse#
successbooleanrequiredbadgeintegerrequired- Minimum:
0Maximum:2147483647 devices_updatedintegerrequired- Number of devices whose App Icon Badge Count was updated.
users_updatedintegerrequired- Number of account users with at least one updated device.
devices_notifiedinteger- Deprecated compatibility alias for devices_updated.
- Deprecated:
true users_notifiedinteger- Deprecated compatibility alias for users_updated.
- Deprecated:
true effective_channel_slugsarray of string or nullrequiredtimestampstring<date-time>required
Additional Properties: false
default
{ "success": true, "badge": 8333, "devices_updated": 2, "users_updated": 1, "effective_channel_slugs": null, "timestamp": "2026-07-10T12:00:00.000Z"}channel targeted
{ "success": true, "badge": 3, "devices_updated": 2, "users_updated": 1, "effective_channel_slugs": [ "sales", "customer-success" ], "timestamp": "2026-07-10T12:00:00.000Z"}400#
Bad request
Content type: application/json
Schema: BadRequestError#
errorstringrequiredmessagestringrequired
Additional Properties: true
403#
Forbidden
Content type: application/json
Schema: ForbiddenError#
errorstringrequiredmessagestringrequired
Additional Properties: true
422#
No matching devices found, or a targeted device needs to reconnect
Content type: application/json
oneOf
Schema: NoRecipientsError
Schema: AppIconBadgeCountUpdateError
429#
Rate limit exceeded
Content type: application/json
Schema: RateLimitError#
codestring- Enum:
["rate_limited"] errorstringrequiredmessagestringrequired
Additional Properties: false
502#
App Icon Badge Count could not be updated
Content type: application/json
Schema: AppIconBadgeCountUpdateError#
errorstringrequiredcodestringrequired- Enum:
["badge_device_disconnected","badge_update_failed"] messagestringrequiredbadgeintegerrequired- Minimum:
0Maximum:2147483647 devices_targetedintegerdevices_updatedintegerrequiredusers_updatedintegerdevices_notifiedinteger- Deprecated compatibility alias for devices_updated.
- Deprecated:
true effective_channel_slugsarray of string or null
Additional Properties: true