# Web Hooks

## What are hooks?

Hooks are inbound and outbound HTTP requests that allow you to integrate Green Stack with other systems.

### Outbound Hooks

An **Outbound Hook** is an HTTP request initiated from Green Stack to remote system. Outbound hooks can be configured as a `GET`, `PUT`, or `POST` method. For `PUT` and `POST` methods, you may also configure a static or dynamic request body that can be included with the request.

### Inbound Hooks

An **Inbound Hook** is an HTTP request sent to Green Stack from a remote system. An inbound hook can be configured as a trigger for an [Algorithm ](broken://pages/ywq2iWQMyxGvpIup6863)and can be used to posture equipment in response to an external event, such as demand response, alarms, etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.greenstack.dev/integration/hooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
