> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fintoc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Objeto Event

## El objeto Event

Un `Event` representa algo que sucedió en tu cuenta de Fintoc, como la creación de un `Link` o el cambio de sus credenciales. El campo `data` contiene el recurso afectado. Fintoc genera el `Event` cuando ocurre un cambio relevante al que estás suscrito y lo envía a tus endpoints de webhook configurados.

```json Event Object theme={null}
{
  "id": "evt_a4xK32BanKWYn",
  "object": "event",
  "created_at": "2020-04-22T21:10:19.254Z",
  "data": {
    "id": "link_l6J0WLYbiABXxABN",
    "object": "link",
    "accounts": [
      {
        "id": "acc_XqNDRKQeTnKvpnW5",
        "object": "account",
        "balance": {
          "available": 51340323,
          "current": 51340323,
          "limit": 51340323
        },
        "currency": "CLP",
        "holder_id": "555555555",
        "holder_name": "Test Company 1",
        "name": "Cuenta Corriente",
        "number": "000000000",
        "official_name": "Cuenta Corriente",
        "refreshed_at": null,
        "type": "checking_account"
      }
    ],
    "created_at": "2020-12-27T19:06:45.986Z",
    "holder_id": "555555555",
    "holder_type": "business",
    "institution": {
      "id": "cl_banco_de_chile",
      "country": "cl",
      "name": "Banco de Chile"
    },
    "link_token": "link_l6J0WLYbiABXxABN_token_8ZX8ZKCctdRasshzUrWFNn9W",
    "mode": "test",
    "username": "111111111"
  },
  "mode": "test",
  "type": "link.created"
}
```

El objeto incluye estos atributos:

| Atributo     | Tipo     | Descripción                                                                              |
| :----------- | :------- | :--------------------------------------------------------------------------------------- |
| `id`         | `string` | Identificador único del `Event`.                                                         |
| `object`     | `string` | Identificador del tipo de objeto. El valor siempre es `event`.                           |
| `created_at` | `string` | Fecha y hora de creación del `Event`, en formato ISO 8601 y UTC.                         |
| `data`       | `object` | Recurso afectado por el evento.                                                          |
| `mode`       | `string` | Modo en que se generó el `Event`. Uno de `live` o `test`; `test` corresponde al sandbox. |
| `type`       | `string` | Tipo de evento.                                                                          |
