# Company Staff Events

Company Staff Events are triggered by certain actions aimed at the company’s employees (staff).&#x20;

**company.staff.added** – occurs when the Company adds a Staff user to itself. The staff user must be registered, not only invited (Listing 5.5).&#x20;

**Listing 5.5 – Example of company.staff.added Payload (JSON)**

```
{
    "type":      "company.staff.added",
    "data":      {
        "user":     {...//User Model}
    },
    "created_at":  {...//Date Time Model}
}
```

**company.staff.deleted** – occurs when Company deletes its own Staff user. The user must be registered, not only invited (Listing 5.6).&#x20;

**Listing 5.6 – Example of company.staff.deleted Payload (JSON)**

```
{
    "type":      "company.staff.deleted",
    "data":      {
        "user":     {...//User Model}
    },
    "created_at":  {...//Date Time Model}
}
```

**company.staff.updated** – occurs when certain data is updated in an company’s Staff user, such as a name or email, for example (Listing 5.7).

**Listing 5.7 – Example of company.staff.updated Payload (JSON)**

<pre><code>{
    "type":      "company.staff.updated",
    "data":      {
        "user":     {...//User Model}
<strong>    },
</strong>    "created_at":  {...//Date Time Model}
}

</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://faq.droam.com/menu/webhooks/webhook-payload-types/event-payloads/company-staff-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
