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

# Events

> Learn about the different webhook events you can subscribe to and their data structures.

Webhooks let you subscribe to events and receive notice when an event occurs. For more information about webhooks, see [Webhooks Overview](/essentials/webhooks/overview).

By default, you are subscribed to all events.

## Webhook Structure

### Request Body

| Key     | Type                | Description                                                                      |
| ------- | ------------------- | -------------------------------------------------------------------------------- |
| id      | string              | Unique identifier for the event.                                                 |
| event   | string              | The type of the event.                                                           |
| data    | nullable dictionary | Event information. The content is different for each event.                      |
| created | timestamp           | Unix timestamp, in seconds, when this delivery payload was generated and signed. |

## Events

### listing.agent.video.created

Fired when we create a video for an agent associated with a listing.

#### Example

```json theme={null}
{
  "id": "evt_550e8400-e29b-41d4-a716-446655440000",
  "event": "listing.agent.video.created",
  "data": {
    "task_id": "task_01997785a0bf59dada39d7375f94d756",
    "listing_id": "L319878271",
    "agent_id": "A980294",
    "results": [
        {
            "id": "550e8400-e29b-41d4-a716-446655440001",
            "created_at": "2025-01-01T00:00:00.000000+00:00",
            "url": "https://cdn.infinitecreator.com/550e8400-e29b-41d4-a716-446655440001.mp4",
            "preview_url": "https://cdn.infinitecreator.com/550e8400-e29b-41d4-a716-446655440001.gif",
            "metadata": {}
        }
    ]
  },
  "created": 1751530086
}
```

#### Breakdown

| Key                     | Type                  | Description                                                                                                    |
| ----------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------- |
| task\_id                | string                | Unique identifier for [the task](/api-reference/tasks/create-a-task)                                           |
| listing\_id             | string                | Unique identifier for the listing                                                                              |
| agent\_id               | string                | Unique identifier for the agent associated with the listing                                                    |
| results                 | array of dictionaries | All results associated with the agent                                                                          |
| results\[].id           | string                | Unique identifier for the result                                                                               |
| results\[].created\_at  | timestamp             | The time at which the result was created. String in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. |
| results\[].url          | string                | Download URL of the result                                                                                     |
| results\[].preview\_url | optional string       | Download URL of the preview GIF, if requested                                                                  |
| results\[].metadata     | object                | [Metadata](/api-reference/introduction#metadata) of the result                                                 |
