# SSTI_SERV_EVENT_GROUP (SSTI API Event)

SSTI server sends us the group name (either by our request or after reading its config).

## Variables

The following table shows input values (you send them with the API call) and returned output values.

| Variable |     | Required | Description |
|----------|-----|----------|-------------|
| *link_message* parameters: |     |          |             |
|          | num |          | SSTI_SERV_EVENT_GROUP |
|          | str |          | the name of the group SSTI manages |
|          | id  |          | \-- not used -- |

## Comments

This event contains the group name being managed. The event can be fired either:

* by your request (see [SSTI_SERV_API_GET_GROUP](/doc/658f9c54-0ba9-4f6b-afc0-63cb9b8f8cbf))
* on server restart

The server initialization events order is the following:


1. *Server restarted*
2. [SSTI_SERV_EVENT_RESET](/doc/5abf00a4-c1e8-4cef-b441-30f0a531216b)
3. *Server starts reading config, this takes 10-20 seconds*
4. *Config notecard has been read, config is known now*
5. [SSTI_SERV_EVENT_INITIALIZED](/doc/45ce557b-3520-453e-8f21-3bf6deb1596f)
6. **SSTI_SERV_EVENT_GROUP** (sent without your request)
7. [SSTI_SERV_EVENT_CLOUD](/doc/a5b831dd-134a-4960-bc3d-fcdfa06246c5) (sent without your request)
8. *SSTI server starts doing its work*

**Important:** The server may send you the group name without your request, for example, on main script restart. Be prepared to get this event at any time (for example, customer may edit the configuration notecard).

## Example

This example demonstrates how you can get the group name from SSTI box.


:::warning
Code sample missing: the old wiki failed to render this code block, so it was not in the source. Restore it from the original source.

:::


:::warning
Code sample missing: the old wiki failed to render this code block, so it was not in the source. Restore it from the original source.

:::