Configurable Activity Badges: Overview of Methods

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

A badge is an icon on the card of a CRM object in the kanban. The badge helps highlight entities that require attention. If multiple badges are added to an entity, only the most recently added badge will be displayed.

Last badge

Quick navigation: all methods

A badge is not linked to a CRM entity directly. First, the application registers the badge using the crm.activity.badge.add method, and then specifies its code in the badgeCode field of a configurable activity when calling crm.activity.configurable.add or crm.activity.configurable.update.

The badge is displayed on the kanban of the object to which the activity is linked until the activity is closed.

Considerations Before Calling Methods

How to Work with Badges

  1. Check the codes already in use with the crm.activity.badge.list method.
  2. Register the badge with the crm.activity.badge.add method.
  3. Check the badge by its code with the crm.activity.badge.get method.
  4. Specify the badge code in the badgeCode field of the configurable activity.
  5. Delete a badge you no longer need with the crm.activity.badge.delete method.

Badge Record Fields

Field

Description

code
string

Badge code, for example missedCall. The badge is specified in an activity, retrieved, and deleted by this code

title
string|array

Name of the badge. Can be a string or an array of strings for different languages

value
string|array

Text displayed inside the icon itself. It is shown in uppercase. Can be a string or an array of strings for different languages

type
string

Badge type, defines the color of the icon

If title or value contains an array, the keys should be language codes, and the values should be text in those languages, for example:

{
            "de": "Achtung",
            "en": "Alarm"
        }
        

If a translation for the current language is not found, the English version will be used. If the English translation is also not found, the first element of the array will be used.

Badge Type

In Bitrix24, there are several standard badges for different scenarios. The badge type can take the following values:

  • success — green background
  • failure — red background
  • warning — yellow background
  • primary — blue background
  • secondary — gray background

Overview of Methods

Scope: crm

Who can execute the method: a user with administrative access to the crm section — for crm.activity.badge.add and crm.activity.badge.delete, any user — for crm.activity.badge.get and crm.activity.badge.list

Method

Description

crm.activity.badge.add

Adds a new badge

crm.activity.badge.get

Retrieves information about a badge

crm.activity.badge.list

Retrieves a list of badges

crm.activity.badge.delete

Deletes a badge by code

Additional