# Company Events

Company Events are triggered by certain actions aimed at the company or elements related to it.&#x20;

**company.added** – occurs when an Organization adds a company to itself and its owner completes registration, not only invited (Listing 5.2).&#x20;

**Listing 5.2 – Example of company.added payload (JSON)**

```
// Some code
```

**company.deleted** – occurs when the Organization deletes its own company. The company must be confirmed and has a confirmed owner, not only invited (Listing 5.3).&#x20;

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

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

**company.updated** – occurs when certain data is updated in an organization's Company, such as a name or currency, for example (Listing 5.4).&#x20;

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

```
{
    "type":        "company.updated",
    "data":        {
        "company":     {...//Account Model}
    },
    "created_at":  {...//Date Time Model}
}
```


---

# 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-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.
