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

# List Hooks For API • AI Agent SDK

> list_hooks_for_api: Flat hook list suitable for REST/UI consumers.

# list\_hooks\_for\_api

Function

> This function is defined in the [**registry**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/registry.md) module.

Flat hook list suitable for REST/UI consumers.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph TD
    event["Event Trigger"] --> hook["Hook: list_hooks_for_api"]
    hook --> decision{"Decision"}
    decision -- "Allow" --> proc["Process"]
    decision -- "Deny" --> block["Block"]
    style hook fill:#189AB4,color:#fff
    style event fill:#8B0000,color:#fff
    style proc fill:#8B0000,color:#fff
    style block fill:#8B0000,color:#fff
```

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def list_hooks_for_api() -> List[Dict]
```

### Returns

**Returns** `List[Dict]`

The result of the operation.

## Uses

* `get_default_registry`
* `registry.list_hooks`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/registry.py#L489)
>
> `praisonaiagents/hooks/registry.py` at line 489

***

## Related Documentation

> [card] [Hooks Concept](https://praison.ai/docs/docs/concepts/hooks)

> [card] [Hook Events](https://praison.ai/docs/docs/features/hook-events)

> [card] [Callbacks](https://praison.ai/docs/docs/features/callbacks)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.