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

# Introduction to Argil's Webhook Events

> Learn what webhooks are, how they work, and how to set them up with Argil through our API.

## What are Webhooks?

Webhooks are automated messages sent from apps when something happens. In the context of Argil, webhooks allow you to receive real-time notifications about various events occurring within your environment, such as video generation successes and failures or avatar training successes and failures.

## How Webhooks Work

Webhooks in Argil send a POST request to your specified callback URL whenever subscribed events occur. This enables your applications to respond immediately to events within Argil as they happen.

### Available Events for subscription

<AccordionGroup>
  <Accordion title="Video Generation Success">
    This event is triggered when an avatar video generation is successful.<br />
    Check our [VIDEO\_GENERATION\_SUCCESS Event Documentation](/pages/webhook-events/video-generation-success) for more information about this event.
  </Accordion>

  <Accordion title="Video Generation Failed">
    This event is triggered when an avatar video generation is failed.<br />
    Check our [VIDEO\_GENERATION\_FAILED Event Documentation](/pages/webhook-events/video-generation-failed) for more information about this event.
  </Accordion>

  <Accordion title="Avatar Training Success">
    This event is triggered when an avatar training is successful.<br />
    Check our [AVATAR\_TRAINING\_SUCCESS Event Documentation](/pages/webhook-events/avatar-training-success) for more information about this event.
  </Accordion>

  <Accordion title="Avatar Training Failed">
    This event is triggered when an avatar training is failed.<br />
    Check our [AVATAR\_TRAINING\_FAILED Event Documentation](/pages/webhook-events/avatar-training-failed) for more information about this event.
  </Accordion>
</AccordionGroup>

<Tip>
  A single webhook can subscribe to multiple events.
</Tip>

## Managing Webhooks via API

You can manage your webhooks entirely through API calls, which allows you to programmatically list, register, edit, and unregister webhooks. Below are the primary actions you can perform with our API:

<AccordionGroup>
  <Accordion title="List All Webhooks">
    Retrieve a list of all your registered webhook.<br />
    [API Reference for Listing Webhooks](/api-reference/endpoint/webhooks.list)
  </Accordion>

  <Accordion title="Register to a Webhook">
    Learn how to register a webhook by specifying a callback URL and the events you are interested in.<br />
    [API Reference for Creating Webhooks](/api-reference/endpoint/webhooks.create)
  </Accordion>

  <Accordion title="Unregister a Webhook">
    Unregister a webhook when it's no longer needed.<br />
    [API Reference for Deleting Webhooks](/api-reference/endpoint/webhooks.delete)
  </Accordion>

  <Accordion title="Edit a Webhook">
    Update your webhook settings, such as changing the callback URL or events.<br />
    [API Reference for Editing Webhooks](/api-reference/endpoint/webhooks.update)
  </Accordion>
</AccordionGroup>
