> ## Documentation Index
> Fetch the complete documentation index at: https://mage-staging.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Callback templates

## Base

```python theme={null}
if 'callback' not in globals():
    from mage_ai.data_preparation.decorators import callback


@callback('success')
def success_callback(**kwargs):
    pass


@callback('failure')
def failure_callback(**kwargs):
    pass
```
